UNIHIVE

Study Hub UNIPORT CMS 303

CMS 303 · Data Analysis in Communication Research

Correlation and regression

Scatter plots, Pearson's r, Spearman's rho, simple linear regression, R², and why correlation is not causation.

Our notes

2 min read

Scatter plots first

Plot one variable against the other to see direction (positive or negative), form (straight or curved) and outliers before computing anything.

Pearson's correlation coefficient r

Measures the strength of a linear relation between two interval/ratio variables, from −1 to +1.

  • About 0.1 weak, 0.3 moderate, 0.5 or more strong (a common guide).
  • Positive: both rise together. Negative: one rises as the other falls.

Worked example

Exposure to a health campaign (number of ads recalled, x) and knowledge score (y) for 6 people:
x: 1, 2, 3, 4, 5, 6; y: 3, 2, 5, 4, 7, 8.
Computer result: r = 0.90, a strong positive relation.

Spearman's rank correlation (rho)

For ordinal data or when outliers distort Pearson. Rank each variable, then ρ = 1 − 6Σd² ÷ [n(n² − 1)].
Ranks of y: 3→2, 2→1, 5→4, 4→3, 7→5, 8→6, so y ranks are 2, 1, 4, 3, 5, 6 against x ranks 1-6.
d = −1, 1, −1, 1, 0, 0; Σd² = 4.
ρ = 1 − 6 × 4/(6 × 35) = 1 − 24/210 = 0.886.
(Checked by computer: r = 0.900, ρ = 0.886.)

Significance of r

Software gives a p-value for H₀: no correlation in the population. With small samples even a fairly large r may not be significant.

Simple linear regression

Fits the line ŷ = a + bx that predicts y from x with the smallest squared errors.

  • b (slope): the change in y for one unit more of x.
  • a (intercept): predicted y when x = 0.
  • R²: the share of variation in y explained by x (r² for one predictor). With r = 0.90, R² = 0.81: 81% of the variation in knowledge goes with exposure.

Multiple regression uses several predictors (exposure, education, age) to see each one's effect while holding the others constant.

Correlation is not causation

A relation can come from:

  • x causing y;
  • y causing x (people already interested in health may notice more health ads);
  • a third variable causing both (education raises both exposure and knowledge);
  • chance.

Experiments with random assignment, time order and controls are needed for causal claims.

SPSS paths

  • Graphs → Chart Builder → Scatter/Dot.
  • Analyze → Correlate → Bivariate (tick Pearson or Spearman).
  • Analyze → Regression → Linear.

Exams usually ask

  • Interpret r, ρ and R² values in words.
  • Compute Spearman's rho for small data.
  • Explain why correlation does not prove cause, with a media example.

Common mistake

Reading r = 0.9 as "90% of y is caused by x". r² (0.81) is the proportion of variation associated with x, and association is not cause.

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 CMS 303 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.