Historical Context & Motivation
Humans have been studying relationships between two variables for centuries, from tracking how crop yields change with rainfall to charting how diseases spread over time. The challenge has always been the same: when you have data showing how one quantity relates to another, which linear model best describes the pattern? Two different data sets might both appear linear at first glance, but one relationship may be far stronger, steeper, or more reliable than the other. Choosing the wrong model — or failing to compare models carefully — leads to bad predictions and flawed conclusions.
The core question this lesson addresses is deceptively simple: given two scatter plots, each with a linear model, how do you decide which linear relationship is stronger or more appropriate? And just as importantly, how do you justify your choice with evidence rather than gut feeling? By the end of this lesson, you will be able to compare two linear bivariate relationships side by side and defend your model selection using residuals, correlation, and the shape of the data.
Core Principles & Definitions
Before comparing linear models, you need to understand the vocabulary and ideas that make comparison possible. A bivariate relationship is simply the connection between two variables — one independent (x) and one dependent (y). When we plot these pairs on a coordinate plane, we get a scatter plot, which reveals the overall shape, direction, and strength of the relationship.
Linear Model
Residual
Correlation Coefficient (r)
Coefficient of Determination (r²)
Residual Plot
Visual Explanation — Seeing the Difference
The most powerful first step in comparing bivariate relationships is to look at the data. The diagram below shows two different data sets, each with a linear model overlaid. Data Set A has points clustered tightly around the line, while Data Set B has points spread much more loosely around its line. Both relationships are linear, but one is clearly stronger than the other.
Simply eyeballing the graph already suggests that Data Set A has a stronger linear relationship, but in statistics we need to go beyond visual impression. That is why we use residual plots and the correlation coefficient r to back up our judgment with numerical evidence. In the next sections, we will build the mathematical framework to do exactly that.
Mathematical Framework
When comparing two linear models for different data sets, you rely on a small toolkit of formulas and checks. The most important numerical tools are the residual for each data point, the correlation coefficient (r) for measuring linear strength, and the coefficient of determination (r²) for gauging how well the linear model fits.
Residual Plots — The Smoking Gun
The residual plot is your most reliable tool for judging whether a linear model is appropriate. After fitting a linear model, you calculate the residual for every data point, then plot those residuals on the vertical axis against the x-values on the horizontal axis. If the linear model is a good fit, the residuals will appear randomly scattered — no curves, no fans, no obvious patterns. If you see a clear curved pattern, the relationship may not actually be linear, and the linear model is missing a structural feature of the data.
In the diagram above, both models are linear, but the residual plots and correlation values reveal a dramatic difference in fit quality. Data Set A's residuals are tightly clustered around zero (r = 0.97, r² = 0.94), meaning the linear model explains 94% of the variation. Data Set B's residuals are spread widely (r = 0.52, r² = 0.27), meaning the linear model accounts for only 27% of the variation — most of the variation in y is unexplained. Both pieces of evidence — the residual plot and r — point to Data Set A having the stronger, more reliable linear relationship.
- Random scatter close to zero in the residual plot → the linear model captures the underlying trend well.
- Wide random scatter in the residual plot → a linear relationship may exist but is weak; predictions will be unreliable.
- Curved pattern in the residual plot → the data is not linear; the linear model is systematically missing the true shape of the relationship.
Worked Example
A student collected data from two different classes. In Class 1, she recorded hours of sleep (x) and quiz score (y) for eight students. In Class 2, she recorded hours of homework completed (x) and quiz score (y) for eight students. She fit a linear model to each data set using her graphing calculator. The question: which linear relationship is stronger and more appropriate for making predictions?
| Student | Class 1: Sleep (x) / Score (y) | ŷ (Class 1 Linear) | Class 2: HW Hours (x) / Score (y) | ŷ (Class 2 Linear) |
|---|---|---|---|---|
| 1 | 5 hrs sleep / 62 | 63.1 | 1 hr HW / 58 | 55.4 |
| 2 | 6 hrs sleep / 68 | 67.8 | 2 hrs HW / 72 | 63.1 |
| 3 | 6 hrs sleep / 70 | 67.8 | 2 hrs HW / 65 | 63.1 |
| 4 | 7 hrs sleep / 74 | 72.5 | 3 hrs HW / 80 | 70.8 |
| 5 | 7 hrs sleep / 75 | 72.5 | 3 hrs HW / 61 | 70.8 |
| 6 | 8 hrs sleep / 79 | 77.2 | 4 hrs HW / 85 | 78.5 |
| 7 | 8 hrs sleep / 80 | 77.2 | 4 hrs HW / 70 | 78.5 |
| 8 | 9 hrs sleep / 85 | 81.9 | 5 hrs HW / 90 | 86.2 |
Interpreting Slope and Intercept in Context
Comparing two linear models also means interpreting what their slopes and intercepts mean in context. Two data sets can both have strong linear relationships but tell very different stories depending on what the slope represents.
| Component | What It Means | Example in Context |
|---|---|---|
| Slope (b) | The predicted change in y for each one-unit increase in x. A steeper slope means y changes more quickly as x increases. | Class 1: b ≈ 4.7 means each additional hour of sleep is associated with about 4.7 more points on the quiz. |
| y-intercept (a) | The predicted value of y when x = 0. This may or may not be meaningful depending on whether x = 0 is a realistic value. | Class 1: a ≈ 39.5 would predict a score of 39.5 for zero hours of sleep — plausible as a lower bound, but outside the data range. |
| Correlation direction | A positive r means y tends to increase as x increases. A negative r means y tends to decrease as x increases. | Both Class 1 and Class 2 have positive r values, meaning more sleep/homework is associated with higher scores. |
Connection to Advanced Topics
The comparison skills you are building now form the foundation for more advanced statistical modeling. In later courses — Math 2, Math 3, AP Statistics, or college-level data analysis — you will encounter tools that formalize and extend these ideas.
| What You Learn Now | Where It Leads |
|---|---|
| Comparing r values for two linear relationships | Comparing linear, quadratic, and exponential models (Math 2/3); adjusted r², AIC, and BIC model selection criteria (AP Statistics, college) |
| Checking residual plots for patterns vs. random scatter | Formal residual diagnostics: normality tests, heteroscedasticity checks, influence measures |
| Interpreting slope and intercept in context | Multiple regression with many predictors, polynomial regression, logistic regression for yes/no outcomes |
| Justifying your model choice with evidence | Hypothesis testing for regression coefficients, confidence intervals for predictions, cross-validation |
The key idea carries forward at every level: a model is only as good as the evidence supporting it. Whether you are a Math 1 student comparing two scatter plots or a data scientist choosing among dozens of algorithms, the process is the same — fit, check residuals, compare metrics, and justify.
Practice Problems
Lesson Summary
When comparing two bivariate relationships using linear models, you follow a three-step process. First, examine each scatter plot to confirm the data follows a roughly linear pattern. Second, compare the residual plots of each linear model: a good linear model produces randomly scattered residuals close to zero, while a poor fit shows large scatter or a systematic pattern. Third, compare the correlation coefficient r — a value closer to ±1 means a stronger linear relationship and a more reliable linear model.
Always justify your model choice with multiple pieces of evidence: the shape of the scatter plot, the pattern (or lack thereof) in the residual plot, and the correlation coefficient. Also interpret the slope and intercept in context to explain what the linear relationship actually means for the real-world situation. This skill — evaluating and comparing linear models — is at the heart of data analysis and will serve you in every statistics course you take.