Bivariate Statistics
Senior 5 · Mathematics
Bivariate Statistics
Lesson 3 of 4
40 min
Lesson 2 ended with a problem: the covariance of the revision data was 29 in hours and marks, but 3480 in minutes and percentages, although nothing about the pupils had changed. To compare the strength of different relationships, a measure must not depend on units. Karl Pearson's coefficient, introduced in the 1890s, divides the covariance by the two standard deviations, and the units cancel. It is the most widely used number in statistics for a linear relationship.
Definition
Pearson's (linear) coefficient of correlation of and is
Multiplying the numerator and denominator by gives a form that uses only the column totals:
Important
Properties of
Reason for property 3. By lesson 2, , while and . The factors cancel except for the sign of . Property 1 follows from the Cauchy–Schwarz inequality of unit 7, applied to the vectors of deviations and : is the cosine of the angle between them.
The bands are a common guide, not a law: in a physics experiment may be disappointing, while in a survey of people it may be remarkable. Always look at the scatter diagram as well.
Worked example 1: for the revision data
Solution. From lesson 2: , , . So
A strong positive linear correlation, as the scatter diagram suggested.
Worked example 2: using the column totals
The age (years) and resale value (hundred thousand FRW) of five motorcycles are (illustrative). Find .
Solution. , , , , , .
A strong negative correlation: older motorcycles are worth less.
Worked example 3: the households
For the 40 households of lesson 2, , and . So : a moderate positive correlation. Bigger households tend to own more phones, but with many exceptions.
Worked example 4: a perfect relationship with
Find for the points .
Solution. , , , so and . Yet every point lies exactly on . The relationship is perfect but not linear: the falling left half and rising right half cancel.
Warning
Tip
The numerator of the column-totals formula has the same sign as the covariance. Check its sign against the scatter diagram before finishing the calculation.
StatQuest with Josh Starmer: Pearson's Correlation, Clearly Explained (about 20 min). Watch how r measures how close the points are to a line, and why it says nothing about the line's slope.
Practice
Questions 1 to 3 are routine; 4 to 6 need more care; 7 asks for a judgement.
Sources and credits