Comparing Bivariate
Relationships
Learn to analyze scatter plots, compare linear and nonlinear models, and justify which regression is the best fit for real-world data.
What Is a Bivariate Relationship?
A bivariate relationship describes the connection between two variables. When we collect paired data points \((x, y)\), we can plot them on a scatter plot and look for a pattern: does one variable tend to increase as the other increases? Does it curve? Is there no pattern at all?
Direction, Form, and Strength
Linear vs Nonlinear Patterns
The left plot shows data following a straight-line trend: a linear model fits well. The right plot curves: a nonlinear model (such as quadratic) is more appropriate.
The Correlation Coefficient \( r \)
The correlation coefficient \( r \) measures the strength and direction of a linear relationship between two variables. It ranges from \(-1\) to \(1\).
The Key Metric: \( r^2 \)
The coefficient of determination \( r^2 \) tells us the proportion of variability in \( y \) that is explained by the model. It works for both linear and nonlinear regressions.
Residuals: The Error Check
A residual is the difference between an observed value and the value predicted by the model: \( \text{residual} = y_{\text{observed}} - y_{\text{predicted}} \). A residual plot graphs these errors against \( x \).
Linear vs Quadratic Models
| Linear | Quadratic | |
|---|---|---|
| Equation | \( y = mx + b \) | \( y = ax^2 + bx + c \) |
| Graph Shape | Straight line | Parabola (U or inverted U) |
| When \( r^2 \) is Higher | Data is roughly a line | Data curves up or down |
| Residual Plot | Random scatter | Random scatter (if fit is good) |
| Warning Sign | Curve in residuals | Data actually has a linear trend |
How to Compare Models
Example 1: Plant Growth
A biologist measures the height (cm) of a plant over 8 weeks. She fits both a linear and a quadratic model.
Example 1: Residual Analysis
Example 2: Car Depreciation
A data set tracks the value ($) of a car from age 0 to 10 years. Both a linear and an exponential model are fit to the data.
Example 3: Justifying Your Choice
A student collects data on hours studied vs test score. She fits a linear model and a quadratic model with these results:
\( r^2 = 0.94 \)
Residuals: random scatter
\( r^2 = 0.95 \)
Residuals: random scatter
Common Mistakes
Summary: Choosing the Best Model
| Evidence | Choose Linear | Choose Nonlinear |
|---|---|---|
| Scatter Plot | Points follow a line | Points follow a curve |
| \( r^2 \) Comparison | Similar or higher | Meaningfully higher |
| Residual Plot | Random scatter | Linear residuals show a curve |
| Simplicity | Simpler (fewer parameters) | Justified by better fit |
Question 1 of 5
A scatter plot shows data that curves upward. A linear model gives \( r^2 = 0.78 \) and a quadratic model gives \( r^2 = 0.97 \). The linear residual plot shows a U-shaped pattern. Which model is more appropriate?
Question 2 of 5
What does the coefficient of determination \( r^2 \) represent?
Question 3 of 5
A residual plot for a linear model shows a clear curved pattern. What does this indicate?
Question 4 of 5
A linear model has \( r^2 = 0.91 \) and a quadratic model has \( r^2 = 0.92 \). Both residual plots show random scatter. Which model should you choose and why?
Question 5 of 5
A data set has a perfect U-shaped pattern. The correlation coefficient is \( r = 0.02 \). What can you conclude?