Stellar Grove · Concrete Mathematical Modelling
Which inputs matter most?
The lake clean-up time depends on five inputs. Which ones need measuring carefully?
Chapter 8 · Using a model: choice and estimation. A worked example rebuilt from the chapter's topic in Mike Mesterton-Gibbons, *A Concrete Approach to Mathematical Modelling*; the scenario and numbers are our own illustration, not the book's text.
Headline: Flow and volume matter one-for-one (elasticities -1.0 and +1.0). The target and the inflow level matter less today (-0.80, +0.13), but the inflow's influence grows 11-fold as it nears the target.
- 6.2 yrsclean-up time at the best estimates
- 4.5–8.595% range with realistic input uncertainty (years)
- +1.4elasticity to the inflow level if it were 4 µg/L instead of 1
The problem
Chapter 1 gave the clean-up time . With the best estimates it is 6.23 years. Each input is uncertain. Where should the monitoring budget go?
Local sensitivity: elasticities
The elasticity of to an input is the percentage change in per 1% change in :
For this model they have closed forms. is proportional to , so and exactly. The concentration inputs act through the logarithm:
which grows without bound as : when the inflow is nearly as dirty as the target, a small error in it changes the clean-up time enormously.
Results
| Input | Best estimate | Elasticity | T at −20% | T at +20% |
|---|---|---|---|---|
| flow F | 3 | -1.00 | 7.79 | 5.19 |
| volume V | 12 | +1.00 | 4.99 | 7.48 |
| target c* | 5 | -0.80 | 7.38 | 5.34 |
| starting level c₀ | 20 | +0.68 | 5.29 | 7.00 |
| inflow level c_in | 1 | +0.13 | 6.08 | 6.40 |
A Monte Carlo run with realistic uncertainty (standard deviations 2, 0.3, 0.3 and 1.2 for ) gives a 95% range of 4.5–8.5 years around a median of 6.2.
Try it
Tornado explorer
Move the inflow level toward the 5 µg/L target and watch its bar take over.
Key findings
- Volume and flow set the scale: every 1% error in either is a 1% error in the answer, so they are worth measuring well.
- The most influential input over a ±20% swing is the flow F at today's values.
- Sensitivity is local: the inflow level barely matters at 1 µg/L (elasticity +0.13) but dominates at 4 µg/L (+1.35). Re-run a sensitivity analysis whenever the operating point moves.
from books.concrete_mathematics import estimation as es, growth as g
base = {'c0': 20.0, 'c_target': 5.0, 'c_in': 1.0, 'flow': 3.0, 'volume': 12.0}
print({k: round(v, 2) for k, v in es.elasticities(g.lake_cleanup_time, base).items()})
print([(k, round(lo, 2), round(hi, 2)) for k, lo, hi in es.tornado(g.lake_cleanup_time, base)][:2])
# → {'c0': 0.68, 'c_target': -0.8, 'c_in': 0.13, 'flow': -1.0, 'volume': 1.0}
# → [('flow', 7.79, 5.19), ('volume', 4.99, 7.48)]
Assumptions and extensions
- One at a time. Tornado bars move inputs separately; correlated errors (a wet year raises flow and lowers concentrations together) need a joint analysis like the Monte Carlo above.
- ±20% is arbitrary. Better: swing each input over its own plausible range.
- Global methods (Sobol indices) apportion output variance among inputs when interactions matter.