UNIHIVE

Study Hub UNIPORT EDU 303.2

EDU 303.2 · Research Methods and Statistics

Correlation

Measuring how two variables move together with Pearson's r and Spearman's rho.

Our notes

2 min read

What correlation measures

The strength and direction of a linear relationship between two variables. The coefficient lies from −1 to +1.

ValueMeaning
+1Perfect positive
About 0.7 to 0.9Strong positive
About 0.4 to 0.6Moderate
Near 0Little or no linear relation
NegativeAs one rises, the other falls

Labels vary between books; state the one your lecturer uses.

Scatter diagrams

Plot one variable against the other first. The pattern shows direction, strength and whether the relation is a straight line at all.

Pearson's r (interval or ratio data)

r = Σdxdy ÷ √(Σdx² × Σdy²), where dx = x − x̄ and dy = y − ȳ.

Worked example

Hours of study (x) and test score out of 10 (y) for five students:

xydxdydxdydx²dy²
23−4−312169
45−2−1241
640−2004
8822444
101044161616
Σ 30Σ 30344034

Means: x̄ = 6, ȳ = 6.
r = 34 ÷ √(40 × 34) = 34 ÷ √1,360 ≈ 34 ÷ 36.88 ≈ 0.92: strong positive.

Spearman's rho (ranks, ordinal data)

ρ = 1 − 6Σd² ÷ (n(n² − 1)), where d is the difference in ranks.

Using the same data as ranks:

x ranky rankdd²
1100
23−11
3211
4400
5500

Σd² = 2. ρ = 1 − (6 × 2) ÷ (5 × 24) = 1 − 12 ÷ 120 = 0.90.

Second check: the two methods agree closely (0.92 and 0.90), as expected for data with no extreme values.

Tied ranks

Give tied scores the average of the ranks they share: two scores tied for 3rd and 4th both get 3.5.

Coefficient of determination

r² gives the share of variation in one variable linked to the other. r = 0.92 → r² ≈ 0.85: about 85% of the variation in scores goes with study hours in this sample.

Correlation is not causation

Shoe size and reading ability correlate in primary pupils, because both grow with age. A third variable can produce a correlation.

Uses in education

  • Reliability of a test (test-retest correlation).
  • Predictive validity (WAEC scores against first-year GPA).

Exams usually ask

  • Calculate Pearson's r or Spearman's rho and interpret.
  • Explain why correlation does not prove cause.

Common mistake

Using Pearson's r for ranked data or for clearly curved relations.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All EDU 303.2 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.