Curriculum
Course: Statistics — Third Secondary
Login
Text lesson

Correlation

Statistics — Third Secondary

Correlation

Pearson’s formula and how to calculate r

Pearson’s formula and how to calculate r

  • The formula used in this course is:
  • r = (n Σxy − Σx Σy) ÷ √[ (n Σx² − (Σx)²) × (n Σy² − (Σy)²) ]
  • where n is the number of pairs, Σx is the sum of the x-values, Σy is the sum of the y-values, Σxy is the sum of the products of each pair, Σx² is the sum of the squares of the x-values, and (Σx)² is the square of the sum of the x-values.
  1. Make a table with columns x, y, xy, x² and y².
  2. Add each column to get Σx, Σy, Σxy, Σx² and Σy².
  3. Calculate the numerator (n Σxy − Σx Σy) first, then each part of the denominator separately.
  4. Divide the numerator by the square root. Check that the result lies between −1 and +1. If it does not, there is a calculation error.
Correlation · 3 / 7