S1 4.3 - Measuring correlation
Calculate the product moment correlation coefficient from paired-data summaries and interpret a linear relationship's strength and direction in context. Recognise what correlation can establish and where its evidence stops.
Calculating the product moment coefficient
Changing a height measurement from centimetres to metres changes a regression gradient. Should it change how closely the points follow a straight line? Correlation measures that closeness without depending on the choice of positive measurement units.
Product moment correlation coefficient
The product moment correlation coefficient, often abbreviated PMCC, is a number measuring the direction and strength of a linear association between two variables. It is dimensionless and lies between and , inclusive.
The centred summaries used for regression also supply the coefficient.
Product moment correlation
For paired observations,
where
These results are printed on page 15 of the S1 formula booklet. Both variables must vary: if either centred sum of squares is zero, r is undefined by this formula. A derivation or a significance test is not required in S1.
The numerator records whether paired deviations from the two means tend to have the same or opposite signs. The positive denominator scales this by the variability of both variables. Do not use uncentred sums of squares or round the centred sums early.
Worked example 1
Five paired observations have , , , , . Find r.
Plan. Calculate all three centred sums, then substitute into the PMCC formula.
Answer. , indicating a strong positive linear association.
Check. These are the summaries of . The deviations from give products , summing independently to ; each squared-deviation sum is . The result is within .
Change only the response scale by reflecting every y-value: set . Distances from the mean are unchanged in size but reversed in sign.
Worked example 2
For the same x-values, the reflected data have , and . Find the PMCC between x and z.
Plan. Recalculate the response and cross-product summaries using z rather than y.
Answer. . The linear association has the same strength and the opposite direction.
Check. Since , every deviation product reverses sign, while every squared deviation is unchanged. Hence the original must change from to .
Adding a constant to either variable does not change its deviations from its own mean. Multiplying by a positive constant scales the numerator and denominator equally, so r stays the same. A negative multiplier for exactly one variable reverses r's sign; negative multipliers for both leave it unchanged. Swapping x and y leaves r unchanged too, unlike swapping the regression direction.
For example, coding , preserves r. If centred summaries are needed, the same deviation reasoning gives , , . A zero multiplier makes one variable constant, so correlation then becomes undefined.
Interpreting strength and direction
The sign describes direction; the magnitude describes closeness to a straight line.
When , larger values of one variable tend to accompany larger values of the other. When , larger values of one tend to accompany smaller values of the other. Values with close to indicate a strong linear association; values close to zero indicate a weak linear association. There is no universal set of numerical cut-offs separating words such as moderate and strong.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account