Representing Relationships
Between Two Variables
Learn to visualize, describe, and model the relationship between two quantitative variables using scatterplots, correlation, and regression.
What Is a Bivariate Relationship?
A bivariate relationship describes how two quantitative variables are connected. We collect paired data: each observation has an explanatory variable \( x \) and a response variable \( y \).
The Scatterplot: Your Primary Tool
A scatterplot displays paired \( (x, y) \) data as individual points on a coordinate plane. It reveals the direction, form, and strength of a relationship at a glance.
Describe a Scatterplot: D-F-S-O
When you describe a scatterplot on the AP exam, always address four characteristics:
The Correlation Coefficient: \( r \)
The correlation coefficient \( r \) quantifies the direction and strength of a linear relationship between two quantitative variables.
Computing \( r \): The Formula
The correlation coefficient is computed from the standardized values (z-scores) of each variable:
Where \( \bar{x}, \bar{y} \) are the sample means and \( s_x, s_y \) are the sample standard deviations. Each term is a product of the z-scores: \( z_{x_i} \cdot z_{y_i} \).
Key Properties of \( r \)
Correlation vs. Causation
A strong correlation between \( x \) and \( y \) does not prove that \( x \) causes \( y \). There may be a lurking variable or the relationship may be coincidental.
The Least-Squares Regression Line
The least-squares regression line (LSRL) is the line that minimizes the sum of the squared vertical distances (residuals) from each data point to the line:
Understanding Residuals
A residual is the difference between an observed value and its predicted value from the regression line:
Coefficient of Determination: \( r^2 \)
\( r^2 \) tells us the proportion of variation in the response variable \( y \) that is explained by the linear relationship with \( x \).
How to Analyze a Relationship
Example 1: Height vs. Shoe Size
A sample of 10 adults yields \( \bar{x} = 68 \) inches, \( s_x = 3.5 \), \( \bar{y} = 10.2 \), \( s_y = 1.8 \), and \( r = 0.92 \). Find the LSRL.
Example 2: Interpreting a Residual Plot
After fitting a linear model to data on tree age \( (x) \) vs. tree height \( (y) \), a residual plot shows a clear curved pattern:
Example 3: Making a Prediction
Using our earlier LSRL: \( \hat{y} = -21.96 + 0.473x \). Predict the shoe size for a person who is 72 inches tall.
Common Mistakes to Avoid
Summary: Key Concepts
| Concept | Symbol | What It Tells You |
|---|---|---|
| Correlation | \( r \) | Direction and strength of linear association |
| Coefficient of Determination | \( r^2 \) | Proportion of variation in \( y \) explained by \( x \) |
| Slope | \( b \) | Predicted change in \( y \) for 1-unit increase in \( x \) |
| Intercept | \( a \) | Predicted \( y \) when \( x = 0 \) |
| Residual | \( y - \hat{y} \) | How far an observed point is from the predicted value |
| LSRL | \( \hat{y} = a + bx \) | Best-fit line minimizing squared residuals |
Question 1 of 5
A scatterplot of hours worked per week vs. weekly earnings shows a strong, positive, linear pattern. Which value of \( r \) is most plausible?
Question 2 of 5
If \( r^2 = 0.64 \) for a regression of study time on test score, what does this mean?
Question 3 of 5
A LSRL is \( \hat{y} = 12.5 + 3.2x \), where \( x \) is years of experience and \( \hat{y} \) is hourly wage in dollars. What is the best interpretation of the slope?
Question 4 of 5
A residual plot of a linear model shows a clear U-shaped pattern. What does this suggest?
Question 5 of 5
A researcher finds a strong positive correlation (\( r = 0.88 \)) between ice cream sales and number of sunburns. Which conclusion is most appropriate?