Karl Pearson Method
Linear Correlation — Chapter 3, GSEB Class 12 Statistics
The Formula
Karl Pearson's coefficient of correlation (r) measures the linear relationship between two variables using their actual deviations from mean.
Numerator
ΣXY
Sum of product of deviations
Denominator
√(ΣX² × ΣY²)
Geometric mean of squared deviations
Where
X = x − x̄, Y = y − ȳ
Deviations from respective means
Step-by-Step Procedure
Compute Means
Find x̄ = Σx / n and ȳ = Σy / n
Find Deviations
X = x − x̄ and Y = y − ȳ for each observation
Compute Products & Squares
Find XY, X², Y² for each row
Sum and Substitute
Find ΣXY, ΣX², ΣY² and plug into the formula
Worked Example
Given data: Find r for the following values
| x | y | X = x−6 | Y = y−18.4 | XY | X² | Y² |
|---|---|---|---|---|---|---|
| 6 | 18 | 0.0 | -0.4 | 0.0 | 0.0 | 0.2 |
| 2 | 12 | -4.0 | -6.4 | 25.6 | 16.0 | 41.0 |
| 10 | 26 | 4.0 | 7.6 | 30.4 | 16.0 | 57.8 |
| 4 | 14 | -2.0 | -4.4 | 8.8 | 4.0 | 19.4 |
| 8 | 22 | 2.0 | 3.6 | 7.2 | 4.0 | 13.0 |
| Total | 72.0 | 40.0 | 131.2 | |||
x̄ = 30/5 = 6, ȳ = 92/5 = 18.4
r = ΣXY / √(ΣX² × ΣY²) = 72.0 / √(40.0 × 131.2)
r = 72.0 / 72.44 = 0.9939
Strong positive correlation between x and y
Shortcut: Assumed Mean Method
When actual means are decimals, use an assumed mean to simplify calculations:
How it works
- Choose an assumed mean (A for x, B for y) — pick a convenient middle value
- Compute X = x − A and Y = y − B
- Find ΣX, ΣY, ΣXY, ΣX², ΣY² and substitute in the formula
- Result is the same — the formula corrects for the assumed mean automatically
Key Takeaways
Key Takeaways
- Karl Pearson r = Σ(x − x̄)(y − ȳ) / √[Σ(x − x̄)² × Σ(y − ȳ)²]
- Uses actual deviations from mean — the most accurate method.
- r always lies between −1 and +1, regardless of the units of measurement.
- Assumed mean method: X = x − A, Y = y − B — simplifies arithmetic, same result.
- The shortcut formula corrects for assumed mean: no need to adjust separately.
- r = 0 does NOT mean no relationship — only no LINEAR relationship.