Educerie · AP · Precalculus
AP Precalculus 2.6
Competing Function Model Validation
How do you decide which model fits a data set, and how do you know the model is any good?
What you will learn
- Understand how differences, ratios and context choose between linear, quadratic and exponential models
- Know that a residual is actual minus predicted and what its sign means
- Know that a residual plot with no pattern supports a model and a pattern does not
You must be able to
- Choose a model type from a table and a context clue
- Compute a residual and say whether the model over- or underestimates
- Read a residual plot and decide whether the model is justified
- Write a claim and a reason that names the residual plot
- Distinguish signed from unsigned error
- Explain why a model may fail outside the data
In the exam. Section I multiple choice, usually Part B (calculator): read a residual plot and pick the claim and reason ("the model is appropriate because the residuals have no pattern"), or choose the model type from a table plus a context clue. In Free-response 1 you give a function type with a reason that cites the table, and in Free-response 2 you comment on a model's limits. The reason, not the claim, is where the marks are.
1Which model? A table test
Take inputs a fixed distance apart (equal-length intervals).
| What stays constant | Model |
|---|---|
| The differences of the outputs | linear |
| The second differences (differences of the differences) | quadratic |
| The ratios of the outputs | exponential |
Real data is never exactly constant, so look for which pattern is closest to constant.
Worked example 1. An invented data set.
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| 3 | 6 | 12 | 24 | 48 |
- Differences: . Not constant.
- Second differences: . Not constant.
- Ratios: . Constant.
So the best model is exponential, .
2Context clues
The numbers can fit more than one model. The context breaks the tie.
- A quadratic has a vertex, so it eventually turns round. If the quantity can only keep rising, a quadratic is a poor long-run model.
- An exponential function with never turns round, and is always positive. It suits a quantity that grows by a percent.
- A linear function adds the same amount per unit forever, which suits steady, constant change.
A sentence such as "the number of followers doubles every month" settles it: exponential. "The ball is above the ground for a short time and returns" suggests a quadratic.
3Residuals
For a given value of the input,
The sign tells you what the model did.
- Positive residual: the actual value is above the prediction, so the model underestimates.
- Negative residual: the actual value is below the prediction, so the model overestimates.
Worked example 2. The table is an invented data set, with the exponential model from a calculator.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |
|---|---|---|---|---|---|---|---|---|
| actual | 5 | 8 | 10 | 14 | 20 | 27 | 40 | 56 |
At the model predicts . The residual is . The negative sign means the model overestimates at by about .
4The residual plot
A residual plot has the input on the horizontal axis and the residual on the vertical axis.
- No pattern: points scatter above and below , with no trend, curve or growing spread. The model is justified as appropriate.
- A pattern (a curve such as a U or an arch, a long run of the same sign, or a fan that widens): the model is missing something, and a different model would fit better.
Figure 1 shows the residuals for the data above under two models.
Compare the two panels.
- In (a), the line's residuals start positive, fall to about in the middle, then rise to about . That is a U-shape. A line cannot follow growth that speeds up, so linear is not appropriate.
- In (b), the exponential model's residuals are small (note the different vertical scale) and fall on both sides of without a trend. This supports the exponential model.
A reason that earns the mark names the plot: "The residual plot for the exponential model shows no pattern, so the model is appropriate."
5Errors
Errors in a model can be viewed two ways.
- Signed: actual minus predicted, as in the residual. It shows whether the model underestimates or overestimates on an interval.
- Unsigned: the absolute value of the residual. It shows the size of the error, ignoring direction.
The context can say which kind of mistake is worse. A model for how many chairs to buy for an event does less harm if it overestimates a little than if it underestimates. A model of how much fuel a rocket needs is the opposite way round.
Worked example 3. In Example 2, the residuals for are . Both signs appear and all are small, so the model overestimates at some inputs and underestimates at others. No single side is favoured.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.