AP Precalculus · Study guide

Competing Function Model Validation

AP® Precalculus · Unit 2 · Exponential and Logarithmic Functions

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.

The idea in one paragraph

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

ModelOver equal input stepsChange is
LinearDifferences roughly constantAdditive
QuadraticDifferences change by a roughly constant amountRates changing linearly
ExponentialRatios roughly constantMultiplicative
Worked Example 1 Reading the change pattern

Which model fits each table? (Inputs 0, 1, 2, 3, 4.)

x = 01234
A37111519
B25101726
C51545135405
  1. 1
    A: differences 4, 4, 4, 4, constant. Linear.
  2. 2
    B: differences 3, 5, 7, 9; their differences 2, 2, 2 are constant, so the rates change linearly. Quadratic.
  3. 3
    C: ratios 3, 3, 3, 3, constant. Exponential.
Answer: A linear, B quadratic, C exponential.
Common Mistake 1 · Using differences to rule out 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

\[ \text{residual} = \text{actual value} - \text{predicted value} \]

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.

Figure 1. Both regressions are the best of their kind, but only one kind matches how the data change.
Figure 2. Same data, same scale. The linear model misses in a systematic way (too low at the ends, too high in the middle). The exponential model’s misses are small and random, which is what an appropriate model looks like.
Worked Example 2 Which model is appropriate?

Linear and exponential regressions are fit to the data in Figure 1. Use the change pattern and the residuals to choose.

\(x\)01234567
\(y\)212637496789122164
  1. 1
    Differences 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.
  2. 2
    Linear residuals: 18.1, 3.4, \(-5.3\), \(-13.0\), \(-14.7\), \(-12.4\), 0.9, 23.2. Positive, then negative, then positive: a pattern.
  3. 3
    Exponential residuals: 0.8, \(-1.2\), 0.3, \(-0.5\), 0.3, \(-1.0\), 0.7, 0.5. Small, mixed signs, no pattern.
Answer: The exponential model \(y \approx 20.21(1.348)^x\) is appropriate; its residual plot has no pattern (Figure 2).
Write it like this

“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.”

Common Mistake 2 · Choosing the model with the line that looks close

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.

Worked Example 3 Over or under?

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.

  1. 1
    Residual = actual − predicted. First: \(31.6 - 34.0 = -2.4\). Second: \(40.3 - 38.5 = 1.8\).
  2. 2
    Negative residual: the prediction was too high, an overestimate. Positive residual: the prediction was too low, an underestimate.
Answer: \(-2.4\) (overestimate by 2.4) and \(1.8\) (underestimate by 1.8).
Worked Example 4 When one kind of error is worse

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?

  1. 1
    Positive residuals mean actual fuel use is more than predicted: the model underestimates.
  2. 2
    Underestimating fuel could leave a plane short; overestimating only means carrying extra.
Answer: The range with positive residuals (underestimates) is the dangerous one. Here an overestimating model is preferred.
Common Mistake 3 · Flipping the subtraction

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?

Worked Example 5 Context can rule a model out

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?

  1. 1
    The ratios are 1.3 and 1.3, so exponential fits the pattern so far.
  2. 2
    But 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.
  3. 3
    Neither model is safe far ahead; the context says growth must slow eventually.
Answer: Exponential fits the early years; for long-range predictions, the context argues against both.

Quick reference

CheckWhat to look for
Change patternConstant differences, linear differences, or constant ratios
ResidualActual − predicted
Residual plotNo pattern means the model is appropriate
Positive residualUnderestimate
Negative residualOverestimate
ContextWhich error is worse; what happens beyond the data