Comparing and Checking Models
Several kinds of function can be fit to the same data. This guide shows how to choose between them from the pattern of change, from residual plots, and from the context, and how to describe a model’s errors as overestimates or underestimates.
A linear model fits roughly constant changes (additive), a quadratic model fits changes that themselves change roughly linearly, and an exponential model fits roughly constant ratios (multiplicative). A residual is actual minus predicted. Plot residuals against the input: if the plot shows no pattern, the model is appropriate; a curve or trend in the residuals means the model misses in a systematic way. A positive residual is an underestimate and a negative one is an overestimate; the context decides which kind of error is less harmful.
1Three change patterns
| Model | Over equal input steps | Change is |
|---|---|---|
| Linear | Differences roughly constant | Additive |
| Quadratic | Differences change by a roughly constant amount | Rates changing linearly |
| Exponential | Ratios roughly constant | Multiplicative |
Which model fits each table? (Inputs 0, 1, 2, 3, 4.)
| x = 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| A | 3 | 7 | 11 | 15 | 19 |
| B | 2 | 5 | 10 | 17 | 26 |
| C | 5 | 15 | 45 | 135 | 405 |
- 1A: differences 4, 4, 4, 4, constant. Linear.
- 2B: differences 3, 5, 7, 9; their differences 2, 2, 2 are constant, so the rates change linearly. Quadratic.
- 3C: ratios 3, 3, 3, 3, constant. Exponential.
Table C’s differences (10, 30, 90, 270) are far from constant, but that only rules out linear. Check ratios before deciding.
2Residuals and residual plots
Fit each candidate model, compute its residuals, and plot them against the input. A good model leaves residuals that bounce above and below 0 with no shape. A shape (a U, an arch, a steady drift) means the model consistently misses in one direction over some interval, so a different type of function would fit better.
Linear and exponential regressions are fit to the data in Figure 1. Use the change pattern and the residuals to choose.
| \(x\) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|---|
| \(y\) | 21 | 26 | 37 | 49 | 67 | 89 | 122 | 164 |
- 1Differences 5, 11, 12, 18, 22, 33, 42 keep growing; ratios 1.24, 1.42, 1.32, 1.37, 1.33, 1.37, 1.34 stay near 1.35. Roughly proportional growth points to exponential.
- 2Linear residuals: 18.1, 3.4, \(-5.3\), \(-13.0\), \(-14.7\), \(-12.4\), 0.9, 23.2. Positive, then negative, then positive: a pattern.
- 3Exponential residuals: 0.8, \(-1.2\), 0.3, \(-0.5\), 0.3, \(-1.0\), 0.7, 0.5. Small, mixed signs, no pattern.
“The residual plot for the exponential model shows no pattern, while the linear model’s residuals are positive, then negative, then positive. The exponential model is more appropriate.”
In Figure 1 the straight line passes near most points, but its residuals have a clear U shape. Judge by the residual pattern, not by how close the line looks at a glance.
3Overestimates and underestimates
The sign of a residual tells you which way the model missed. Positive: the actual value is above the prediction, so the model underestimates. Negative: the model overestimates. The size, or absolute value, tells you by how much.
A model predicts 34.0 when the actual value is 31.6, and 38.5 when the actual value is 40.3. Find each residual and say what it means.
- 1Residual = actual − predicted. First: \(31.6 - 34.0 = -2.4\). Second: \(40.3 - 38.5 = 1.8\).
- 2Negative residual: the prediction was too high, an overestimate. Positive residual: the prediction was too low, an underestimate.
A pilot uses a model to estimate the fuel a flight needs. Over one range of distances the model’s residuals are positive; over another they are negative. Which range is a concern?
- 1Positive residuals mean actual fuel use is more than predicted: the model underestimates.
- 2Underestimating fuel could leave a plane short; overestimating only means carrying extra.
Residual is actual minus predicted, never predicted minus actual. Flipping it reverses every over and under conclusion.
4Letting the context decide
Data cover a limited range. When two models fit about equally well, ask which one behaves sensibly where the data stop: Does the quantity have a ceiling? Can it go negative? Does it keep a constant rate or a constant percent?
A lake’s fish population was 400, 520, 676 in three years. Exponential and linear models both fit those three points well. Which is more believable for the next 20 years?
- 1The ratios are 1.3 and 1.3, so exponential fits the pattern so far.
- 2But a lake holds limited food and space. An exponential model predicts \(400(1.3)^{22} \approx 128{,}000\) fish after 22 years, which the lake cannot support.
- 3Neither model is safe far ahead; the context says growth must slow eventually.
Quick reference
| Check | What to look for |
|---|---|
| Change pattern | Constant differences, linear differences, or constant ratios |
| Residual | Actual − predicted |
| Residual plot | No pattern means the model is appropriate |
| Positive residual | Underestimate |
| Negative residual | Overestimate |
| Context | Which error is worse; what happens beyond the data |