01 / 20

Comparing
Models

Learn to evaluate competing models for the same data set and justify which model fits better based on residuals, \( R^2 \), and real-world reasonableness.

Math 3

What Is a Mathematical Model?

A mathematical model is an equation or function that approximates a real-world pattern in data. We choose model types: linear, quadratic, exponential, logarithmic, and others: to capture the shape of the trend.

Linear
\( y = mx + b \): constant rate of change
Quadratic
\( y = ax^2 + bx + c \): changing rate, one turn
Exponential
\( y = ab^x \): multiplicative growth or decay

Why Compare Models?

Multiple functions may pass close to the same data points, but they can make very different predictions outside the observed range. Choosing the wrong model leads to unreliable forecasts and flawed conclusions.

Time Value Linear Exponential

Key Tools for Comparison

Residuals
The difference \( e_i = y_i - \hat{y}_i \) between each observed value and the model's prediction. Smaller and more random residuals indicate a better fit.
\( R^2 \) Value
The coefficient of determination: the proportion of variance in \( y \) explained by the model. Closer to 1 means a stronger fit.

Reading Residual Plots

Good Fit Random scatter Poor Fit Curved pattern

The \( R^2 \) Coefficient

The coefficient of determination is defined as:

Numerator
Sum of squared residuals: total error left after using the model.
Denominator
Total variance around the mean \( \bar{y} \): error with no model at all.

Beyond Numbers: Reasonableness

A model might have a great \( R^2 \) but still be wrong for the situation. You must ask: does the model make sense in context?

1
End behavior: Does the model predict negative populations? Infinite temperatures? Unrealistic values signal a poor model choice.
2
Domain constraints: An exponential model might fit short-term data but explode unreasonably over long time horizons.
3
Known behavior: If a physical process has a known ceiling (like carrying capacity), a logistic or bounded model is more appropriate than exponential.

Linear vs. Exponential

Linear \( y = mx + b \) Exponential \( y = ab^x \)
Rate of Change Constant (additive) Proportional (multiplicative)
Graph Shape Straight line J-curve or decay curve
Best For Steady increase/decrease Growth/decay by percentage
End Behavior \( \to \pm\infty \) \( \to \infty \) or \( \to 0 \)
Key Test Constant first differences Constant ratios in \( y \)-values

Step-by-Step: Comparing Models

1
Plot the data. Look at the overall shape: is it linear, curved upward, S-shaped, or leveling off?
2
Fit two (or more) models using regression (calculator or software). Record each equation.
3
Compare \( R^2 \) values. The model with the higher \( R^2 \) explains more variability.
4
Examine residual plots. Choose the model whose residuals show random scatter, not a pattern.
5
Check reasonableness. Does the model make sense for predictions beyond the data?

Example 1: Bacteria Growth

A biologist measures a bacteria colony every hour. Two models are fitted to the data:

Linear
\( y = 48x + 10 \)
\( R^2 = 0.923 \)
Exponential
\( y = 12(1.58)^x \)
\( R^2 = 0.998 \)
Hours Population 1 2 3 4 5 6

Example 1: Analysis

1
\( R^2 \) comparison: Exponential \( R^2 = \) 0.998 vs. Linear \( R^2 = \) 0.923. The exponential model explains more variability.
2
Residuals: The linear residual plot shows a clear curved pattern (under-predicts in the middle, over-predicts at extremes). The exponential residuals are randomly scattered.
3
Reasonableness: Bacteria reproduce by splitting, so population grows by a constant factor each hour: multiplicative, not additive.

Example 2: Projectile Height

A ball is launched upward and its height (meters) is recorded over time (seconds). Two regressions are produced:

Linear
\( y = -1.2x + 18 \)
\( R^2 = 0.61 \)
Quadratic
\( y = -4.9x^2 + 14x + 2 \)
\( R^2 = 0.994 \)
Time (s) Height (m)

Example 2: Analysis

1
\( R^2 \) comparison: Quadratic \( R^2 = \) 0.994 dominates linear \( R^2 = \) 0.61.
2
Residuals: The linear model's residuals form a clear U-shape, indicating it misses the curvature entirely. The quadratic residuals are randomly scattered.
3
Reasonableness: Gravity produces a parabolic trajectory. A linear model would predict the ball never comes down: physically impossible.

Example 3: When \( R^2 \) Misleads

A student models the temperature of a cooling cup of coffee. Both models score similarly on \( R^2 \):

Quadratic
\( y = 0.03x^2 - 3.1x + 90 \)
\( R^2 = 0.97 \)
Exponential Decay
\( y = 70(0.96)^x + 22 \)
\( R^2 = 0.98 \)

Common Mistakes

✕ Only Checking \( R^2 \)
A high \( R^2 \) doesn't guarantee the right model type. Always examine residual plots and context.
✕ Ignoring Context
Choosing a model purely by numbers without asking "Does this make sense for the real situation?"
✕ Over-extrapolating
Using a model to predict far beyond the data range, where its assumptions may break down.

Model Comparison Cheat Sheet

Criterion Better Model Shows... Warning Sign
\( R^2 \) Value Higher (closer to 1) Much lower than competitor
Residual Plot Random scatter Curved or fan-shaped pattern
End Behavior Matches physical reality Predicts impossible values
Predictions Reasonable extrapolation Diverges wildly outside data
Context Fit Matches known behavior Contradicts the science/situation

Question 1 of 5

A linear model has \( R^2 = 0.89 \) and an exponential model has \( R^2 = 0.97 \) for the same data. The linear residual plot shows a curved pattern. Which model is the better fit?

Question 2 of 5

A residual plot shows points randomly scattered above and below zero with no visible pattern. What does this indicate?

Question 3 of 5

A quadratic model for a city's population predicts the population will eventually become negative. An exponential model predicts continued growth. Neither has a perfect \( R^2 \). What should you do?

Question 4 of 5

Two models both have \( R^2 \approx 0.95 \) and both show random residual scatter. How should you decide between them?

Question 5 of 5

Which of the following is not a valid reason to prefer one model over another?