Stellar Grove · Concrete Mathematical Modelling
Does the stopping-distance model fit?
Braking physics says stopping distance grows with speed squared. Do real cars agree?
Chapter 4 · Validation: accept, improve, or reject. 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. Data: speed and stopping distance of 50 cars recorded in the 1920s (Ezekiel 1930), as shipped with R.
Headline: 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 confidence.
- 0.84 sfitted reaction time (the linear term)
- 0.37 gfitted braking deceleration (the squared term)
- 0.76Akaike weight for the physics model vs. a straight line
The problem
Chapter 2's tunnel model assumed stopping distance = reaction distance + braking distance, . Before trusting any conclusion built on it, test it against measurements. The classic data set: 50 cars of the 1920s, each braked from a known speed (4–25 mph) with the distance to stop recorded (2–120 ft).
The rival models
A model is validated against alternatives, not in isolation. The physics model has no intercept (a stationary car needs no distance) and a quadratic term; the empirical rival is a straight line:
Both are fitted by least squares. Then three checks: compare fit with a penalty for parameters (the Akaike information criterion), look for pattern in the residuals (a runs test on their signs, in order of speed), and predict cars the fit didn't see (10-fold cross-validation).
Results
| Check | Physics: av + kv² | Straight line |
|---|---|---|
| Parameters | a = 1.24 ± 0.56, k = 0.0901 ± 0.0294 | β₀ = -17.6 ± 6.8, β₁ = 3.93 ± 0.42 |
| R² | 0.667 | 0.651 |
| AIC (lower is better) | 274.9 | 277.3 |
| Akaike weight | 0.76 | 0.24 |
| Cross-validated error (ft) | 15.1 | 15.4 |
| Runs test p (pattern if small) | 0.74 | 0.41 |
| Distance at 0 mph | 0 ft (by design) | -17.6 ft (impossible) |
In physical units the fit says a reaction time of s (95% interval 0.08 to 1.61 s) and a deceleration of : believable for 1920s brakes and drivers, though the interval is wide.
Try it: fit by eye
Choose a reaction time and braking power
Move the sliders to bring the curve through the cars; the error falls to its minimum at the least-squares fit.
Key findings
- Accept the form. The physics model is preferred (Akaike weight 0.76) with one fewer implausibility: the line predicts a negative stopping distance at walking pace.
- But the evidence is modest. R² differs by only 0.016, and cross-validated errors (15.1 vs 15.4 ft) are close: 50 noisy cars cannot strongly separate the two shapes on fit alone. The physics argument does much of the work.
- The residual spread is not detectably related to speed (Breusch-Pagan p = 0.10).
- Neither model leaves sign runs in its residuals (runs test p = 0.74 and 0.41), so neither misses obvious curvature over this speed range.
from books.concrete_mathematics import validation as va
d = va.cars_data()
fit = va.fit(va.stopping_model, d.speed, d.dist, p0=[1, 0.05], names=["a", "k"])
print({k: round(float(v), 4) for k, v in fit.as_dict()["params"].items()}, round(fit.aic, 1))
print(va.runs_test(fit.residuals))
# → {'a': 1.239, 'k': 0.0901} 274.9
# → (27, 0.3336776421039314, 0.7386228225704905)
Assumptions and extensions
- Old cars, one driver mix. The parameters describe 1920s vehicles; the model's form, not its numbers, carries over to today.
- Measurement. Distances were recorded to the foot and speeds rounded to whole mph, which adds noise to both axes.
- Model choice is not model truth. A weight of 0.9 says which of *these two* is better supported, not that either is right.