Correlation &
Regression
Measuring how two variables move together with Pearson's \( r \), fitting a line of best fit, and interpreting slope, intercept, and residuals.
What Is Correlation?
Correlation measures the strength and direction of a linear relationship between two numerical variables, \( x \) and \( y \). We visualise it with a scatter plot: each point is one observation \( (x, y) \).
Direction & Strength
Pearson's \( r \)
The Pearson correlation coefficient \( r \) puts strength and direction into a single number computed by technology (GDC):
The sign of \( r \) gives the direction; the size of \( |r| \) gives the strength.
Interpreting \( |r| \)
The Regression Line
When correlation is reasonably strong, we fit the least-squares regression line of \( y \) on \( x \):
It always passes through the mean point \( (\bar{x}, \bar{y}) \).
Residuals: The Vertical Gaps
Correlation ≠ Causation
A strong \( r \) shows two variables move together, but does not prove that one causes the other. Three possibilities exist:
Reading Slope & Intercept
Using Your GDC: Step by Step
Example 1: Interpreting \( r \)
A study of 8 students gives hours studied \( x \) and test score \( y \). The GDC reports \( r = 0.91 \) and the line \( y = 6.2x + 41 \).
Example 2: Predicting
Using \( y = 6.2x + 41 \), predict the score for a student who studies 5 hours. The data ranged from 1 to 9 hours.
Example 3: Residual
A student who studied 5 hours actually scored 78. The line predicts 72. Find and interpret the residual.
Common Mistakes
Quick Summary
| Correlation \( r \) | Regression \( y=ax+b \) | |
|---|---|---|
| Purpose | Measure linear association | Model & predict \( y \) |
| Output | A number in \( [-1, 1] \) | Slope \( a \), intercept \( b \) |
| Sign meaning | Direction of trend | Sign of slope \( a \) |
| Best when | Always describes spread | \( |r| \) is reasonably strong |
Question 1 of 5
A data set gives \( r = -0.88 \). Which best describes the relationship?
Question 2 of 5
For \( y = 3.5x + 20 \), what does the slope \( 3.5 \) mean?
Question 3 of 5
A point lies below the regression line. Its residual is:
Question 4 of 5
Ice-cream sales and drowning incidents have \( r = 0.85 \). The best conclusion is:
Question 5 of 5
Using \( y = 2x + 5 \), predict \( y \) when \( x = 8 \).