01 / 20

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.

AP Statistics

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

Direction
Positive: both variables increase together. Negative: one increases while the other decreases.
Form
Linear: points follow a straight line. Nonlinear: points follow a curve (quadratic, exponential, etc.).
Strength
Strong: points cluster tightly to the model. Weak: points are spread far from the model.

Linear vs Nonlinear Patterns

Linear Pattern Nonlinear Pattern

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\).

\( r \) near \( +1 \)
Strong positive linear relationship: as \( x \) increases, \( y \) increases.
\( r \) near \( -1 \)
Strong negative linear relationship: as \( x \) increases, \( y \) decreases.
\( r \) near \( 0 \)
Weak or no linear relationship: but a nonlinear pattern might still exist!

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 \).

Good: Random Scatter 0 Bad: Curved Pattern 0

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

1
Plot the data. Create a scatter plot and visually identify whether the pattern looks linear, curved, or random.
2
Fit both models. Run a linear regression (\( y = mx + b \)) and a nonlinear regression (e.g., quadratic \( y = ax^2 + bx + c \)).
3
Compare \( r^2 \) values. The model with the higher \( r^2 \) explains more variability in the data.
4
Examine residual plots. The appropriate model should show randomly scattered residuals, not a pattern.
5
Justify your choice. State which model is better, citing \( r^2 \) and the residual plot as evidence.

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.

Week Height (cm) 1 2 3 4 5 6 7 8 0 5 10 15 20 Linear Quadratic

Example 1: Residual Analysis

Linear Residuals 0 Quadratic Residuals 0

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.

Age (years) Value ($1000s) 0 1 2 3 4 5 6 7 8 9 0 10 20 30 Linear Exponential

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:

Linear Model
\( y = 6.2x + 52 \)
\( r^2 = 0.94 \)
Residuals: random scatter
Quadratic Model
\( y = -0.1x^2 + 7x + 50 \)
\( r^2 = 0.95 \)
Residuals: random scatter

Common Mistakes

✕ Ignoring Residuals
Only comparing \( r^2 \) without checking if the residual plot has a pattern. A high \( r^2 \) does not guarantee the model is appropriate.
✕ Using \( r \) for Nonlinear Data
The correlation coefficient \( r \) only measures linear association. Reporting \( r \) for curved data is misleading.
✕ Always Picking Higher \( r^2 \)
A more complex model will always have a higher \( r^2 \), but if the increase is tiny, the simpler model is preferred.

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?