Stellar Grove · Research

Stellar Grove · Concrete Mathematical Modelling

A Concrete Approach to Mathematical Modelling

Mathematical models you can play with.

Worked, interactive examples for every chapter of Mike Mesterton-Gibbons's book, rebuilt from its topics with our own scenarios and numbers. Each page has the model, the derivation (typeset), a chart, a live slider chart that re-runs the model, and Python using the books.concrete_mathematics module.

Headline: 25 explainers across 12 chapters, from a polluted lake to chaos.

Part I · The deterministic view

Chapter 1 · Growth and decay: dynamical systems

ExplainerWhat it finds
Dosing a drug on a scheduleFor a drug with a 6-hour half-life and a window of 10–25 mg/L, doses can be at most 7.9 hours apart. On a 6-hourly schedule a dose of 12.5 mg/L settles at 12.5–25.0 …
Fishing to a fixed quotaThe stock can sustain at most 12.5 thousand tonnes a year. A quota of 10 is safe while the stock stays above 28; a quota of 13, just 4% over the maximum, wipes the …
Cleaning up a polluted lakeWith the discharge stopped, the lake falls from 20 to 5 µg/L in 6.2 years. If the inflow is only cut to 6 µg/L, it never gets there.

Chapter 2 · Equilibrium

ExplainerWhat it finds
Competition: coexist or exclude?Both species survive when each limits itself more than it limits its rival. With competition coefficients 0.5 and 0.6, they settle at 86 and 29, a stable node. Make …
The best speed through a tunnelThroughput peaks at a surprisingly low 31 km/h (19 mph), carrying 1,491 cars an hour per lane. Greenberg's classic fit to Lincoln Tunnel data puts the best speed at …

Chapter 3 · Optimal control and utility

ExplainerWhat it finds
Harvesting a fishery optimallyAt a 5% discount rate the owner should hold the stock at 56.8 thousand tonnes, above the maximum-yield level of 50 and far above the 20 that open access drives it …
How many workers to hireHire until the last worker's output is worth exactly the wage: 100 workers. A 10% pay rise cuts that to 79, a 21% drop, because labour demand has elasticity -2.5 …

Part II · Validating a model

Chapter 4 · Validation: accept, improve, or reject

ExplainerWhat it finds
Does the stopping-distance model fit?The physics model fits the 50 cars better than a straight line (Akaike weight 0.76), and its fitted reaction time, 0.84 s, is plausible. Accept it, with modest …
Three traffic laws, one data setAll three laws track the data closely (R² 0.91–0.99), yet AIC picks Greenberg decisively (weight 1.00), and residual patterns rule out the straight line. The choice …

Part III · The probabilistic view

Chapter 5 · Birth and death: probabilistic dynamics

ExplainerWhat it finds
Why small populations die outWith 25% more births than deaths, a colony of 5 still dies out with probability 33%. Getting that risk under 5% takes 14 founders.
Random arrivals at the checkoutEven at a steady average of 1.8 a minute, 17% of minutes see nobody and 4% see five or more. One simulated day pins the rate to 1.84 (1.72–1.96), and the Poisson …

Chapter 6 · Stationary distributions

ExplainerWhat it finds
Should the barber hire an assistant?Alone, the barber turns away 38% of customers. An assistant cuts that to 9%, adding 0.90 haircuts an hour worth $22.41, against a $30 wage: don't hire (net −$7.59 …
How many checkouts to openThe work needs 3.6 cashiers on average, but 4 lanes leave customers waiting 3.9 minutes on average. Opening one more cuts that to 0.6; meeting '80% start within 2 …

Chapter 7 · Optimal decision and reward

ExplainerWhat it finds
Which worms should a bird eat?Rank worms by energy per second of handling: big worms (5 J/s) beat small ones (2 J/s). The bird should still eat small worms now, and ignore them once big worms …
When to replace a machineReplace the machine once it reaches condition 4 of 9. That rule cuts the discounted cost of a new machine by 65% compared with running it into the ground, and …

Part IV · The art of application

Chapter 8 · Using a model: choice and estimation

ExplainerWhat it finds
How sure is the predicted wait?Rates estimated to within about ±16% give a predicted wait of 2.7 minutes, but the 95% interval runs from 1.4 to 6 minutes: each 1% error in λ moves the wait by …
Which inputs matter most?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 …

Chapter 9 · Building a model: adapting, extending, and combining

ExplainerWhat it finds
Dimensional analysisUnits alone force the period of a pendulum to be T=Cl/g: mass cannot matter, and doubling the length multiplies the period by √2. The experiment then …
The yellow-light dilemmaAt 60 km/h with a 3-second amber, a driver between 25 m and 63 m from the line can do neither: a 38 m dilemma zone. Removing it takes an amber of 5.3 s at this speed.

Part V · Toward more advanced models

Chapter 10 · Further dynamical systems

ExplainerWhat it finds
From order to chaos in one lineAs the growth rate r rises the population goes from steady, to alternating every other year at r = 3, to 4-, 8-, 16-year cycles, and into chaos past r ≈ 3.5700. …
Predators, prey and the paradox of enrichmentBelow a carrying capacity of 3.0 the populations settle down; above it the equilibrium turns into an unstable spiral and the system locks onto a limit cycle. At K = …

Chapter 11 · Further flow and diffusion

ExplainerWhat it finds
A spill drifting downstreamThe pollution peaks at the intake 5.5 hours after the spill, at 3.89 mg/L, 78 times the 0.05 mg/L limit. The intake should close for about 3.6 hours (4.0 to 7.6 h …
The queue at a red lightDuring a 45 s red, the back of the queue moves upstream at 3 m/s even though every car moves forward or stands still. It keeps growing after green, peaking at 169 …

Chapter 12 · Further optimization

ExplainerWhat it finds
When to cut the forestAt a 3% interest rate, cut every 36 years (Faustmann), not at the 48 years that maximise timber yield. Waiting for maximum yield would cost 10% of the land's value; …
The workshop's product mixMake 20 tables and 60 chairs for $1,800 a week. An extra carpentry hour is worth $10, an extra finishing hour $10, and more chair demand $0: that constraint has 10 …