01 / 20

Comparing
Model Fits

Learn to decide whether a linear or quadratic model better represents a data set: by examining residuals, \( R^2 \) values, and the shape of the data.

Math 2

What Is a Model?

A model is a mathematical equation we use to approximate real-world data. In this course we focus on two types:

Linear Model
\( y = ax + b \)
Produces a straight line. Best when data grows at a constant rate.
Quadratic Model
\( y = ax^2 + bx + c \)
Produces a parabola. Best when data curves or has a turning point.

Why Compare Models?

Data doesn't always tell you which model to use at first glance. A straight line might look "okay," but a curve might fit much better. Comparing models lets you:

1
Improve predictions: A better-fitting model gives more accurate forecasts.
2
Reveal hidden patterns: Curvature in data might indicate acceleration, decay, or a peak.
3
Avoid over-simplifying: Forcing a line through curved data ignores important structure.

Seeing the Difference

Below, the same data is fit with both a line and a parabola. Notice how the linear fit misses the curvature that the quadratic fit captures.

\(x\)
\(y\)
Linear Quadratic

Tool 1: Residuals

A residual is the difference between an observed value and the value predicted by the model:

If the model fits well, residuals should be small and randomly scattered around zero: no pattern.

Good fit
Residual plot shows random scatter above and below zero.
Poor fit
Residual plot shows a U-shape or pattern: the model is missing curvature.

Reading a Residual Plot

Linear Residuals 0 ✕ Pattern detected Quadratic Residuals 0 ✓ Random scatter

Tool 2: \( R^2 \) Value

The coefficient of determination \( R^2 \) tells you what fraction of the variation in \( y \) is explained by the model.

\( R^2 \) close to 1
The model explains nearly all the variation: excellent fit.
\( R^2 \) close to 0
The model explains little variation: poor fit.

Linear vs Quadratic

Linear \( y = ax + b \) Quadratic \( y = ax^2 + bx + c \)
Shape Straight line Parabola (U or ∩)
Rate of change Constant Increasing or decreasing
Best for Steady growth / decline Acceleration, peaks, valleys
Residual hint Random scatter ✓ Use when linear shows U-shape
Parameters 2 (\( a, b \)) 3 (\( a, b, c \))

Contextual Justification

Numbers alone aren't enough. You must also think about what the data represents and whether the model makes sense in the real world.

1
Does the context suggest curvature? Projectile motion, stopping distances, and area problems are inherently quadratic.
2
Is the rate of change constant? If each additional unit of \( x \) produces a different change in \( y \), a line is insufficient.
3
Can you identify a vertex? If the data has a clear peak or valley, a parabola is the natural choice.

Step-by-Step Comparison

1
Plot the data. Look for curvature, clusters, or a turning point.
2
Fit both models (linear and quadratic) using your calculator or software.
3
Compare \( R^2 \) values. A higher \( R^2 \) means the model explains more variation.
4
Examine residual plots. Look for patterns: a U-shape in the linear residuals signals the need for a quadratic.
5
Justify with context. Explain why the data's real-world behaviour matches the chosen model.

Example 1: Braking Distance

A driving instructor records speed (mph) vs braking distance (ft).

Speed (mph)
Distance (ft)
0 20 40 60 80 Linear Quadratic

Example 2: Plant Growth

A student measures plant height (cm) every week for 8 weeks. The growth is roughly constant per week.

Week
Height (cm)
Linear Quadratic

Example 3: Projectile Height

A ball is launched straight up. Time \( t \) (seconds) vs height \( h \) (metres) is recorded.

Time (s)
Height (m)
Vertex: peak height

Common Mistakes

✕ Only checking \( R^2 \)
A high \( R^2 \) doesn't guarantee good fit. You must also check residual plots for patterns.
✕ Ignoring context
Just because a quadratic has a higher \( R^2 \) doesn't mean it's appropriate. Consider whether the situation logically involves curvature.
✕ Over-fitting
Using a quadratic when a linear model fits equally well adds unnecessary complexity without improving predictions.

Decision Checklist

Criterion Favours Linear Favours Quadratic
Scatter plot Points follow a straight path Points curve or have a turning point
Residual plot Random scatter for both U-shape in linear residuals
\( R^2 \) comparison Nearly equal Quadratic is notably higher
Rate of change Constant first differences Changing first differences (constant second differences)
Context Steady growth / decline Acceleration, area, projectile motion

Question 1 of 5

A linear model is fit to a data set. Its residual plot shows a clear U-shaped pattern. What does this suggest?

Question 2 of 5

A linear model gives \( R^2 = 0.97 \) and a quadratic model gives \( R^2 = 0.98 \). Both residual plots show random scatter. Which model should you choose?

Question 3 of 5

Which real-world scenario is best modelled by a quadratic function?

Question 4 of 5

The first differences of a data set are: 3, 3, 3, 3, 3. The second differences are all 0. Which model best fits this data?

Question 5 of 5

A student says: "The quadratic model has \( R^2 = 0.99 \), so it must be the correct model." What is the flaw in this reasoning?