Understand the idea.
Pearson correlation measures linear association
Pearson's correlation satisfies when both numerical variables vary. The sign describes linear direction and describes linear strength. Values near zero rule out a strong straight-line tendency, but do not rule out a curved association.
The centred sums compare deviations from each variable's own mean: , and . Keep corresponding observations paired when calculating or entering them into technology.
Interpret r-squared in the fitted linear model
For ordinary least-squares regression with an intercept, is the coefficient of determination. The percentage describes the observed response variation accounted for by that fitted linear relationship. It is a measure of sample fit, not a guarantee for new predictions.
Squaring removes the sign, so cannot tell you whether the association rises or falls. It also does not measure causation, a percentage of the response amount, or the proportion of individual predictions that are correct.
See the method in action.
Calculate from centred sums
A data set has Sxx=20, Syy=45 and Sxy=-24. Calculate r and r².
Worked solution
- 1
Find the denominator from the two sums of squares.
Both sums are positive, so the correlation denominator is nonzero.
- 2
Calculate the signed correlation.
The negative cross-product sum gives a negative linear association.
- 3
Square the correlation.
The coefficient of determination is nonnegative even when the correlation is negative.
- 4
Interpret the result in the fitted model.
For a least-squares line with an intercept, 64% of the observed response variation is accounted for by the fitted linear relationship.
r=-0.8 and r²=0.64; negative linear association.
Use paired measurements
Calculate the correlation for the supplied data.
| x | y |
|---|---|
| 1 | 3 |
| 2 | 4 |
| 3 | 4 |
| 4 | 6 |
| 5 | 8 |
Worked solution
- 1
Calculate the two means.
Each mean uses all five observations of its own variable.
- 2
List the paired deviations.
Keeping the order ensures that each cross-product uses measurements from the same row.
- 3
Form the centred sums.
Square deviations for the two variation sums and multiply paired deviations for the cross-product sum.
- 4
Calculate correlation and its square.
The positive value indicates a strong positive linear association. Squaring the unrounded value avoids rounding error in the 90% determination coefficient.
Positive linear correlation; r≈0.9487, r²≈0.9.
Try it yourself.
Check your understanding
For r=-0.6, find the coefficient of determination.
Show answer & reasoning
0.36, or 36%.
Square the signed correlation: . Thus the coefficient of determination is , or ; the original negative direction is no longer visible in the square.
Keep practising
6 worksheet questions · 18 marks
Read the questions online
- Given and , calculate and .3 marks
- A fit has . State its direction and percentage of response variation explained.3 marks
- A student reports . Explain the problem.3 marks
- A fitted model has and a negative slope. Find .3 marks
- If every -value is converted from metres to centimetres, what happens to ?3 marks
- All five response values are 7. Why is Pearson undefined?3 marks
Read the worked solutions
Equivalent correct methods earn the corresponding marks. Include units where asked.
- Given and , calculate and .3 marks
The denominator is .
Divide 18 by 20 and square the result.
; . - A fit has . State its direction and percentage of response variation explained.3 marks
The sign gives negative association.
.
Negative direction; 56.25% explained. - A student reports . Explain the problem.3 marks
The theoretical range is .
Check data pairing, entry and the calculation.
A Pearson correlation cannot exceed 1. - A fitted model has and a negative slope. Find .3 marks
Take the square root, giving magnitude 0.7.
Use the slope direction to choose the negative sign.
. - If every -value is converted from metres to centimetres, what happens to ?3 marks
Multiplication by a positive constant changes scale, not linear correlation.
It stays the same. - All five response values are 7. Why is Pearson undefined?3 marks
A standardised measure of shared variation cannot be calculated.
The response has zero variation, so and the denominator is zero.
Curriculum reference & lesson scope
SACE Board of South Australia
Stage 2 General Mathematics: statistical models. Original lessons and assessment practice; not an official SACE assessment.
Official curriculum source ↗