Choosing a model for data
Quick review (2 minutes)
Before fitting a formula to data, read its shape.
Equal x-steps with constant differences: linear. Equal x-steps with positive y and a constant ratio other than 1: exponential. Positive x multiplied by a fixed factor other than 1, with equal nonzero additions in y: logarithmic. Slow, then fast, then leveling off at a ceiling: an S-shape, for which a logistic model is a candidate; a logistic formula that matches the data fits those observations.
For the linear and exponential tests, use x-values in equal steps.
Compute differences of consecutive y-values; constant differences fit a linear model.
If every y is positive, compute ratios of consecutive y-values; a constant ratio other than 1 fits an exponential model.
For the logarithmic test, use positive x-values that multiply by a fixed factor other than 1 and look for equal nonzero additions in y; otherwise look for an S-shape that bends toward a ceiling (logistic).
For x = 0, 1, 2, 3 the data are y = 5, 7.5, 11.25, 16.875. Choose a model and write it. In plain words: test differences, then ratios.
exponential: y = 5 ·
Calling every curve that bends exponential. Data of the form y = a · have a constant ratio at equal x-steps (a shifted model such as 20 + 70 has constant ratios in y − 20 instead); logarithmic and logistic data bend too, and linear, exponential and logarithmic data can fall as well as rise (a negative slope, exponential decay, a negative coefficient on log x); only the logistic growth model of this unit always rises.
logistic model
P(t) = with c, a, b > 0: growth that levels off at c; when it starts far below c (a much larger than 1) it begins nearly exponential.
1 In plain words
Before fitting a formula to data, read its shape. Equal steps in x that add the same amount to y point to a linear model. Equal steps in x that multiply a positive y by the same factor other than 1 point to an exponential model. A y that rises quickly and then more and more slowly, adding the same amount each time x is multiplied by the same factor, points to a logarithmic model. A y that rises slowly, then quickly, then levels off at a ceiling points to a logistic model. It is like telling birds apart by their song before you look for their names: the pattern comes first.
2 Picture it
equal x-steps, constant differences: linear
equal x-steps, positive y, a constant ratio other than 1: exponential
positive x multiplied by a fixed factor other than 1, equal nonzero additions: logarithmic
an S-shape toward a ceiling: try a logistic model
Reminder
Reminder: Ratios of consecutive values, Logarithms of powers of 2
- Ratios of consecutive values. Divide each y-value by the one before it: 9 ÷ 6 = 1.5.
- Logarithms of powers of 2. lo 1 = 0, lo 2 = 1, lo 4 = 2, lo 8 = 3.
3 Why
Each model has a signature. a + mx adds m for each unit step in x. a · multiplies by b for each unit step. a + c log x adds c log k whenever x is multiplied by k. A logistic model's growth is fastest at half its ceiling, or at the start if it starts at or above half, and fades toward 0 near the ceiling. Testing differences, ratios and the behavior near the top checks those signatures.
4 The rule
Equal x-steps with constant differences: linear.
Equal x-steps with positive y and a constant ratio other than 1: exponential. Positive x multiplied by a fixed factor other than 1, with equal nonzero additions in y: logarithmic. Slow, then fast, then leveling off at a ceiling: an S-shape, for which a logistic model is a candidate; a logistic formula that matches the data fits those observations.
The same idea, other ways
For x = 0, 1, 2, 3: y = 4, 7, 10, 13 has differences 3, 3, 3: linear. y = 4, 6, 9, 13.5 has ratios 1.5, 1.5, 1.5: exponential.
For x = 1, 2, 4, 8: y = 2, 5, 8, 11 adds 3 each time x doubles. That is y = 2 + 3 lo x, a logarithmic model.
y ≈ 10, 23.2, 45.1, 69.1, 85.8, 94.3 for x = 0 to 5 grows slowly, then fast, then slows. Neither differences nor ratios are steady, and the values bend toward a ceiling: they are values of , a logistic model with ceiling 100.
5 How
- For the linear and exponential tests, use x-values in equal steps.
- Compute differences of consecutive y-values; constant differences fit a linear model.
- If every y is positive, compute ratios of consecutive y-values; a constant ratio other than 1 fits an exponential model.
- For the logarithmic test, use positive x-values that multiply by a fixed factor other than 1 and look for equal nonzero additions in y; otherwise look for an S-shape that bends toward a ceiling (logistic).
6 Worked example
Worked example
Ratios point to a formula
For x = 0, 1, 2, 3 the data are y = 5, 7.5, 11.25, 16.875. Choose a model and write it. In plain words: test differences, then ratios.
Show the steps and the answer
- Differences: 2.5, 3.75, 5.625, not constant.So the model is not linear.
- Ratios: , constant.Equal x-steps, positive y and a constant ratio other than 1 fit an exponential model.
- .The value at x = 0 is a = 5 and the ratio is b = 1.5.
- exponential: y = 5
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 4
Linear
x = 0, 1, 2, 3 and y = 3, 7, 11, 15. Which model fits?
Show the steps and the answer
- Differences: 4, 4, 4.Subtract consecutive y-values.
- Constant differences mean linear: .Start 3, slope 4.
Rung 2 of 4
Logarithmic
x = 1, 2, 4, 8 and y = 2, 5, 8, 11. Which model fits?
Show the steps and the answer
- Each time x doubles, y goes up by 3.Consecutive x-values have the ratio 2 (1, 2, 4, 8), and consecutive y-values have the difference 3 (2, 5, 8, 11).
- lo x.At x = 1, lo 1 = 0, so the constant is 2; each doubling adds 3.
Rung 3 of 4
Logistic
x = 0 to 5 and y ≈ 10, 23.2, 45.1, 69.1, 85.8, 94.3. Which kind of model fits?
Show the steps and the answer
- Differences: 13.2, 21.9, 24.0, 16.7, 8.5: they rise and then fall.At equal steps of x a linear model has equal differences. These are unequal, so a line does not fit.
- Ratios: about 2.32, 1.94, 1.53, 1.24, 1.10: falling toward 1.At equal steps of x an unshifted exponential model a · has equal ratios. These are unequal, so it does not fit.
- Slow, then fast, then slowing toward a ceiling.An S-shape makes a logistic model a candidate; the check shows a logistic formula fits the table.
Rung 4 of 4
Exponential decay
x = 0, 1, 2, 3 and y = 64, 48, 36, 27. Choose a model and write it.
Show the steps and the answer
- Ratios: .Constant ratios.
- , a decay because 0.75 < 1.a = 64 and b = 0.75.
- y = 64
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Equal x-steps, constant differences: a linear fit.
- Equal x-steps, a constant positive ratio other than 1: an exponential fit.
- Doubling a positive x adds the same nonzero amount: try a logarithmic model.
7 The trap
Calling every curve that bends exponential. Data of the form y = a · have a constant ratio at equal x-steps (a shifted model such as 20 + 70 has constant ratios in y − 20 instead); logarithmic and logistic data bend too, and linear, exponential and logarithmic data can fall as well as rise (a negative slope, exponential decay, a negative coefficient on log x); only the logistic growth model of this unit always rises.
Flash cards
Say the answer out loud, then flip.
y = 2, 6, 18, 54 at x = 0, 1, 2, 3. Which model?
- Exponential: the ratio is 3, so y = 2
y = 1, 3, 5, 7 at x = 1, 10, 100, 1,000. Which model?
What shape suggests a logistic model?
- An S-shape: slow growth, then fast, then a leveling off at a ceiling. A logistic formula that matches the data fits those observations
- other S-shaped models exist.