Stellar Grove · Research

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.

The problem

Chapter 2's tunnel model assumed stopping distance = reaction distance + braking distance, d=τv+v2/2b. 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:

physics: d=av+kv2,line: d=β0+β1v

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).

AIC=nln(RSSn)+2(k+1),wi=e−Δi/2∑je−Δj/2

Results

CheckPhysics: av + kv²Straight line
Parametersa = 1.24 ± 0.56, k = 0.0901 ± 0.0294β₀ = -17.6 ± 6.8, β₁ = 3.93 ± 0.42
R²0.6670.651
AIC (lower is better)274.9277.3
Akaike weight0.760.24
Cross-validated error (ft)15.115.4
Runs test p (pattern if small)0.740.41
Distance at 0 mph0 ft (by design)-17.6 ft (impossible)

In physical units the fit says a reaction time of τ=a/1.467=0.84 s (95% interval 0.08 to 1.61 s) and a deceleration of b=0.37g: believable for 1920s brakes and drivers, though the interval is wide.

Both curves pass through the cloud; only the physics model starts at zero and bends upward
Both curves pass through the cloud; only the physics model starts at zero and bends upward
Residuals of the physics model: a hint of wider scatter at speed, but not significant (p = 0.10)
Residuals of the physics model: a hint of wider scatter at speed, but not significant (p = 0.10)

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

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