AP Precalculus · Unit 2: Exponential and Logarithmic Functions · Lesson 2.6

Deep Dive: Competing Function Model Validation

🔬 Deep Dive
This is your textbook for this topic. Take your time. Read it more than once.
2.6.A2.6.A.1Concept

Three Candidate Models for One Data Set

Two variables in a data set that demonstrate a slightly changing rate of change can be modeled by linear, quadratic, and exponential functions. Real data is never perfect, so you look for the pattern that is nearlythere. A calculator's regression then builds the model for each type.

Look forSuggestsModel
nearly constant first differenceslineary = mx + b
nearly constant second differencesquadraticy = ax² + bx + c
nearly constant ratiosexponentialy = a·bx

Example. The values 3.1, 4.4, 7.2, 10.4, 15.2, 20.4, 27.1 have first differences 1.3, 2.8, 3.2, 4.8, 5.2, 6.7. They keep growing, so linear is not a good fit. The second differences 1.5, 0.4, 1.6, 0.4, 1.5 stay small and show no steady trend, which points to a quadratic model.

Real data has a rate of change that changes slightly. Pick a data set and a model type. The tool fits the model like a calculator's regression, and the table shows the first differences, second differences, and ratios that hint at which model fits.

01234560510152025xy
x0123456
y4.26.910.312.816.119.221.8
1st differences—2.73.42.53.33.12.6
2nd differences——0.7-0.90.8-0.2-0.5
ratios—1.641.491.241.261.191.14
Linear model: y ≈ 2.971x + 4.129sum of squared residuals ≈ 0.23 (smaller means closer to the data)Nearly constant first differences suggest linear. Nearly constant second differences suggest quadratic. Nearly constant ratios suggest exponential. Try all three models on each data set and compare.
🔑“Nearly constant” is a judgment. Build all three models, look at how closely each one follows the data, and then use the context and the residuals (next sections) to decide.
2.6.A2.6.A.2Math

Let the Context Pick the Model

Models can be compared based on contextual clues and applicability to determine which is the most appropriate. Two models can both pass through the data. Only one may make sense for the situation.

Context clueBest model
the same amount is added each steplinear
rises then falls, or falls then rises (a turning point)quadratic
each step multiplies by about the same factorexponential

Example. A ball is thrown upward and its heights are recorded. A linear model cannot go up and then come down, and an exponential model cannot turn around either. The quadratic h(t) = −16t² + 40t + 5 matches the situation. But a quadratic is only valid while the ball is in the air: at t = 4 it predicts a height of −91 feet, which is below the ground.

Several models can fit the same data. The context decides which one makes sense. Pick a situation, read the clues, and compare what each model predicts far beyond the data.

00.511.522.5051015202530secondsfeet
Quadratic model: y ≈ -16x² + 40x + 5At seconds = 4:   linear ≈ 18.3,   quadratic ≈ -91,   exponential ≈ 14.5Context clues:• The ball goes up, then comes down.• Its height cannot keep rising or keep falling in one direction.• Only a quadratic function can turn around.✓ The quadratic model is the best match for this context.A negative height is below the ground, so the quadratic model only applies until the ball lands.
⚠️Check predictions against the context. A model can fit the data well and still give impossible values (negative heights) or unrealistic growth (a video with more views than people on Earth) when you extend it too far.
2.6.B2.6.B.1Concept

Residuals and Residual Plots

To validate a model, measure how far each data point is from it. A residual is the actual value minus the predicted value:

residual = actual − predicted

A residual plot graphs the residuals on the vertical axis against the independent variable on the horizontal axis. A model is justified as appropriate when the residual plot appears without pattern: the points scatter above and below 0, with no curve or long one-sided stretch.

Example. The line y = 3x + 4 predicts 4, 7, 10, 13, 16 for x = 0 to 4. The actual values are 4.3, 6.8, 10.4, 12.9, 16.2, so the residuals are +0.3, −0.2, +0.4, −0.1, +0.2. They bounce above and below 0, so the line is justified.

A residual is the actual value minus the predicted value. The residual plot puts the residuals on the vertical axis and the input on the horizontal axis. A model is justified as appropriate when the residual plot appears without pattern.

0123456-3-2-10123xresidual
x0123456
actual3.14.47.210.415.220.427.1
predicted0.544.548.5412.5416.5420.5424.54
residual+2.56-0.14-1.34-2.14-1.34-0.14+2.56
Linear model: y ≈ 4x + 0.543✗ The residuals stay on one side of 0 for long stretches. That is a pattern, so this model is not justified as appropriate. Try another type of model.A curved or one-sided residual plot means the model type does not match the shape of the data. Positive residual: the model underestimates. Negative residual: the model overestimates.
🔑A curved residual plot is a message: the model type does not match the shape of the data. A line fitted to quadratic data leaves residuals that are positive at both ends and negative in the middle, a U shape. Switch to a different type of model.
2.6.B2.6.B.2Math

Errors, Underestimates, and Overestimates

The error in a model at an input can be reported two ways: as a signed difference(the residual) or as an unsigned absolute value of the residual.

ResidualMeaning
positive (actual > predicted)the model underestimates
negative (actual < predicted)the model overestimates
zerothe model matches the data point exactly

Errors can show that a model underestimates or overestimates on a given interval. The data set and context may tell you which kind of error is preferred. A baker ordering flour would rather overestimate. A company promising a minimum delivery would rather underestimate.

Example. A line fitted to Data set 2 from the tool above has residuals +2.56, −0.14, −1.34, −2.14, −1.34, −0.14, +2.56. The line underestimates at the ends and overestimates in the middle, which is another sign that a line is the wrong type.

The error at an input can be the signed difference (the residual) or its unsigned absolute value. A positive residual means the model underestimates. A negative residual means it overestimates. The context can tell you which kind of error you prefer.

x0123456
signed error+0.05-0.14+0.16-0.13+0.16-0.14+0.05
unsigned error0.050.140.160.130.160.140.05
the modelunderoverunderoverunderoverunder
Quadratic model: y ≈ 0.502x² + 0.986x + 3.055mean unsigned error ≈ 0.12[0, 2]: 1 overestimate, 2 underestimates, largest error 0.16 — does not match the preference[2, 4]: 1 overestimate, 2 underestimates, largest error 0.16 — does not match the preference[4, 6]: 1 overestimate, 2 underestimates, largest error 0.16 — does not match the preferenceRunning short is worse than having extra. Prefer overestimates (negative residuals). Where the model does not match the preference, you could add or subtract a margin.
💡Signed errors keep the direction (over or under), but positives and negatives can cancel when added. Unsigned errors measure the size of the miss, so they never cancel. Use the one that answers your question.
← Back to Lesson 2.6Try Guided Practice →