Educerie

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

  1. Choose a model type from a table and a context clue
  2. Compute a residual and say whether the model over- or underestimates
  3. Read a residual plot and decide whether the model is justified
  4. Write a claim and a reason that names the residual plot
  5. Distinguish signed from unsigned error
  6. 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 constantModel
The differences of the outputslinear
The second differences (differences of the differences)quadratic
The ratios of the outputsexponential

Real data is never exactly constant, so look for which pattern is closest to constant.

Worked example 1. An invented data set.

xx01234
yy36122448
  • Differences: 3,6,12,243, 6, 12, 24. Not constant.
  • Second differences: 3,6,123, 6, 12. Not constant.
  • Ratios: 2,2,2,22, 2, 2, 2. Constant.

So the best model is exponential, y=3⋅2xy = 3\cdot 2^x.

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 b>1b>1 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,

residual=actual value−predicted value\text{residual} = \text{actual value} - \text{predicted value}

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 y≈3.720 (1.4005)xy \approx 3.720\,(1.4005)^{x} from a calculator.

xx12345678
actual yy58101420274056

At x=6x = 6 the model predicts 3.720⋅1.40056≈28.073.720\cdot 1.4005^6 \approx 28.07. The residual is 27−28.07=−1.0727 - 28.07 = -1.07. The negative sign means the model overestimates at x=6x = 6 by about 1.071.07.

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 00, 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.

Figure 1. Two residual plots for the same data. For the linear model the residuals are positive, then negative, then positive again, a U-shaped pattern. For the exponential model they are small and scattered above and below zero with no pattern (a) linear model 0 2 4 6 8 −10 −5 0 5 10 residual x Figure 1. Two residual plots for the same data. For the linear model the residuals are positive, then negative, then positive again, a U-shaped pattern. For the exponential model they are small and scattered above and below zero with no pattern (b) exponential model 0 2 4 6 8 −2 −1 0 1 2 residual x
Figure 1 · Residual plots for a linear and an exponential model of the same data

Compare the two panels.

  • In (a), the line's residuals start positive, fall to about −6-6 in the middle, then rise to about +10+10. 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 00 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 x=1,2,3,4,5x = 1, 2, 3, 4, 5 are −0.21,0.70,−0.22,−0.31,−0.04-0.21, 0.70, -0.22, -0.31, -0.04. 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.