SECTION 1
Historical Context & Motivation
Throughout history, scientists and mathematicians have faced a recurring challenge: when multiple equations can describe the same phenomenon, how do you decide which one to trust? The practice of model comparison has roots stretching back centuries, arising naturally whenever people tried to predict eclipses, population growth, or economic trends. The core question has always been the same: does this equation actually capture what is happening in the real world, or is there a better one?
1609 • Kepler vs. Ptolemy
1805 • Legendre's Least Squares
1885 • Galton's Regression Line
1973 • Akaike Information Criterion
Today, model comparison is everywhere — from choosing between a linear and exponential model for COVID case data to deciding whether a quadratic or logarithmic curve best predicts a company's revenue. The central question this lesson addresses is: given the same data set, how do you rigorously compare two models and justify which is better?
SECTION 2
Core Principles of Model Comparison
Before you can compare two models, you need a shared vocabulary and a set of criteria. Model comparison rests on several foundational ideas that guide you from raw data to a justified conclusion. Understanding these principles will prevent you from simply picking whichever equation "looks right" and instead give you tools to defend your choice with evidence.
Residuals
Coefficient of Determination (R²)
Residual Patterns
Reasonableness
Parsimony (Simplicity)
KEY TAKEAWAY
SECTION 3
Visualizing Two Models on the Same Data
The most powerful first step in comparing models is to graph them both on the same set of axes alongside the original data. The diagram below shows a scatter plot of data points representing the number of subscribers to a streaming service over its first eight months, with both a linear model and an exponential model overlaid.
From the graph alone you can see that the linear model consistently misses the data in the later months — it predicts too few subscribers at month 7 and too many at month 1. The exponential curve tracks the upward acceleration more faithfully. But visual inspection is only the beginning; in the next sections you will learn how to quantify this difference.
SECTION 4
Mathematical Framework for Model Comparison
Visuals help build intuition, but a rigorous comparison requires numbers. The two primary quantitative tools are residual analysis and the coefficient of determination. Both give you concrete evidence you can cite when justifying your model choice.
RESIDUAL
where eᵢ is the residual for data point i, yᵢ is the observed value, and ŷᵢ is the predicted value from the model.
SUM OF SQUARED RESIDUALS (SSR)
The SSR totals the squared residuals across all data points. A smaller SSR means the model's predictions are collectively closer to the actual data. Squaring ensures negative and positive errors don't cancel out.
COEFFICIENT OF DETERMINATION
where SST = Σ(yᵢ − ȳ)² is the total sum of squares (total variation in the data around its mean ȳ). R² ranges from 0 to 1; values closer to 1 indicate a better fit.
R² Is Not Everything
SECTION 5
Residual Plots — Reading the Pattern
A residual plot graphs the residuals (vertical axis) against the independent variable or predicted values (horizontal axis). If the model is appropriate, residuals should look like a random cloud of points centered on zero. A clear curve or pattern tells you the model is systematically missing something. The diagram below compares the residual plots for the linear and exponential models from Section 3.
The curved pattern on the left is the smoking gun. Even though the linear model might have a decent R² value, the residual plot reveals that a linear equation is the wrong type of model for this data. The random scatter on the right confirms that the exponential model captures the underlying trend without systematic error.
- ✓ Random scatter around zero → the model type is appropriate.
- ✓ Curved pattern → try a different model type (e.g., switch from linear to quadratic or exponential).
- ✓ Fanning pattern (residuals grow larger as x increases) → the model's accuracy varies across the data range and may need a transformation.
SECTION 6
Worked Example — Choosing the Better Model
A biology class measured the area (cm²) of a bacterial colony over 6 hours. Two regression models were generated: a linear model y = 3.2x + 0.5 (R² = 0.91) and a quadratic model y = 0.4x² + 0.8x + 1.0 (R² = 0.98). Which model is better, and why?
| Hour (x) | Observed Area (y) | Linear ŷ | Quadratic ŷ |
|---|---|---|---|
| 0 | 1.0 | 0.5 | 1.0 |
| 1 | 2.1 | 3.7 | 2.2 |
| 2 | 3.8 | 6.9 | 4.2 |
| 3 | 7.0 | 10.1 | 7.0 |
| 4 | 10.5 | 13.3 | 10.6 |
| 5 | 15.2 | 16.5 | 15.0 |
| 6 | 20.8 | 19.7 | 20.2 |
Bacterial colony area data with predictions from both models
Comparing Linear vs. Quadratic Models
- 1
Step 1 — Compare R² Values
The linear model has R² = 0.91, meaning it explains 91% of the variation in the data. The quadratic model has R² = 0.98, explaining 98% of the variation. The quadratic model explains more of the data's variability.Quadratic R² = 0.98 > Linear R² = 0.91 - 2
Step 2 — Calculate Residuals and SSR
For the linear model, compute each residual eᵢ = yᵢ − ŷᵢ: (0.5, −1.6, −3.1, −3.1, −2.8, −1.3, 1.1). Then SSR = 0.25 + 2.56 + 9.61 + 9.61 + 7.84 + 1.69 + 1.21 = 32.77. For the quadratic model, residuals are: (0, −0.1, −0.4, 0, −0.1, 0.2, 0.6). SSR = 0 + 0.01 + 0.16 + 0 + 0.01 + 0.04 + 0.36 = 0.58.SSR(linear) = 32.77 vs. SSR(quadratic) = 0.58 - 3
Step 3 — Examine Residual Patterns
The linear residuals (0.5, −1.6, −3.1, −3.1, −2.8, −1.3, 1.1) start positive, swing strongly negative, then return toward positive — a classic U-shape. The quadratic residuals hover near zero with no systematic curve. This pattern confirms the linear model is the wrong type.Linear residuals show a curved pattern; quadratic residuals show random scatter. - 4
Step 4 — Check Reasonableness
At x = 0, the quadratic gives y = 1.0 (matching the observed starting area), while the linear gives y = 0.5 (below the actual). Predicting ahead to x = 8: the quadratic gives y = 0.4(64) + 0.8(8) + 1.0 = 33.0 cm², which is a plausible growth amount. The linear gives y = 3.2(8) + 0.5 = 26.1, likely an underestimate given the accelerating trend. Both produce positive values, which is physically reasonable for area.Both models produce reasonable values, but the quadratic's predictions align better with the accelerating growth trend. - 5
Step 5 — State Your Justified Conclusion
The quadratic model y = 0.4x² + 0.8x + 1.0 is the better model. It has a higher R² (0.98 vs. 0.91), a dramatically lower SSR (0.58 vs. 32.77), residuals that scatter randomly rather than showing a curved pattern, and predictions that more accurately reflect the accelerating growth of the bacterial colony.The quadratic model is the better fit based on R², SSR, residual pattern, and reasonableness.
SECTION 7
Comparison Criteria — Strengths & Limitations
No single criterion tells the whole story. The table below summarizes the tools you have for comparing models, along with what each one does well and where it falls short. A strong justification references multiple criteria rather than relying on just one.
| Criterion | Strength | Limitation |
|---|---|---|
| R² value | Easy to compute and interpret; gives a quick sense of overall fit quality. | Always increases (or stays the same) when you add more terms, so it can reward overly complex models. |
| SSR | Directly measures total prediction error; lower is always better for the same data set. | Hard to interpret in isolation without context — a SSR of 10 could be great or terrible depending on the data scale. |
| Residual plot | Reveals whether the model type is appropriate; detects patterns that R² alone cannot. | Subjective — what counts as a "pattern" versus random noise can be debatable with small data sets. |
| Reasonableness | Ensures the model makes real-world sense; catches models that fit data but produce absurd predictions. | Requires domain knowledge — you need to understand the context to judge what counts as "reasonable." |
| Parsimony | Guards against overfitting; simpler models tend to generalize better to new data. | Sometimes a more complex model is genuinely needed — simplicity for its own sake can mean poor fit. |
Summary of model comparison criteria
KEY TAKEAWAY
SECTION 8
Connection to Advanced Model Selection
The comparison techniques you have learned — R², residual analysis, and reasonableness checks — form the foundation for more sophisticated methods used in statistics, data science, and machine learning. As you progress in mathematics, you'll encounter tools that formalize the trade-off between fit and complexity.
| What You Know Now | Where It Leads |
|---|---|
| R² — measures explained variation | Adjusted R² — penalizes adding unnecessary variables so you can compare models with different numbers of terms fairly |
| Visual residual plots — look for patterns | Statistical tests (e.g., Durbin-Watson test) that quantify whether residual patterns are statistically significant |
| Parsimony — prefer simpler models | AIC and BIC — information criteria that mathematically balance fit against the number of parameters |
| Reasonableness — check predictions | Cross-validation — splitting data into training and test sets to see how well the model predicts unseen values |
From Grade 11 techniques to advanced model selection
The key insight that carries forward is this: a model is only as good as its predictions. Whether you're fitting a line in Grade 11 math or training a neural network in college, the fundamental question remains: does this model capture the real pattern in the data, or is it just memorizing noise? The skills you're building now — checking fit, spotting patterns in residuals, and asking whether predictions make sense — are exactly the skills that professional data scientists use every day.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
Comparing models means going beyond gut feeling to use quantitative criteria and contextual reasoning. Start by computing the R² value for each model to see how much variation each explains. Then calculate residuals and examine them in a residual plot — random scatter means the model type is appropriate, while a curved or fanning pattern means it is not.
Always check reasonableness: does the model give sensible predictions within and slightly beyond the data range? When two models fit similarly, apply the principle of parsimony and prefer the simpler one. A complete justification cites multiple criteria — R², SSR, residual patterns, and real-world context — never just one number. These skills form the foundation for advanced techniques like adjusted R², cross-validation, and information criteria that you will encounter in future statistics and data science courses.