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.
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:
Produces a straight line. Best when data grows at a constant rate.
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:
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.
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.
Reading a Residual Plot
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.
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.
Step-by-Step Comparison
Example 1: Braking Distance
A driving instructor records speed (mph) vs braking distance (ft).
Example 2: Plant Growth
A student measures plant height (cm) every week for 8 weeks. The growth is roughly constant per week.
Example 3: Projectile Height
A ball is launched straight up. Time \( t \) (seconds) vs height \( h \) (metres) is recorded.
Common Mistakes
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?