Medical AtlasPROJECT IMG
✎ Sketch Notes🏛️ 3D LibraryMy Desk

Correlation, r squared & regression

The correlation coefficient r (from -1 to +1) measures the strength and direction of a linear relationship between two continuous variables. The coefficient of determination r squared is the proportion of variation in one variable explained by the other. Correlation does not prove causation.

Overview

The Pearson correlation coefficient (r) describes how closely two continuous variables follow a straight line.

r valueMeaning
+1Perfect positive linear relationship
0No linear relationship
-1Perfect negative (inverse) linear relationship

The sign gives direction; the absolute value gives strength. An r of -0.8 is a stronger relationship than +0.5. Rough guide: |r| above 0.7 strong, 0.3-0.7 moderate, below 0.3 weak.

Coefficient of determination

r squared is the proportion of the variability in the outcome (y) that is explained by the predictor (x).

  • r = 0.6, r squared = 0.36: 36% of the variation in y is explained by x; 64% is due to other factors.
  • r = -0.9, r squared = 0.81: 81% explained (squaring removes the sign).

Correlation is not causation

A strong correlation may arise from:

  • Confounding: a third variable drives both (ice cream sales and drowning both rise in summer).
  • Reverse causation: the outcome causes the exposure.
  • Chance, especially with many comparisons.

Causation is supported by the Bradford Hill criteria: strength, consistency, specificity, temporality (exposure precedes outcome; the only essential criterion), biological gradient (dose-response), plausibility, coherence, experiment and analogy.

Pitfalls

  • r measures only linear relationships; a perfect U-shaped relationship (for example, alcohol intake vs mortality) can have r near 0.
  • Outliers can greatly change r.
  • Restricting the range of x (studying only adults 40-45) lowers r.
  • Statistical significance of r depends on sample size; a weak r can be significant in a large study.

Regression

  • Simple linear regression: fits the line y = a + bx; the slope b is the change in y per unit change in x.
  • Multiple linear regression: several predictors for one continuous outcome; adjusts for confounders.
  • Logistic regression: binary outcome (yes/no); gives adjusted odds ratios.
  • Cox proportional hazards regression: time-to-event outcome; gives adjusted hazard ratios.

Spearman correlation

For ordinal data, skewed data or nonlinear but consistently increasing relationships, the Spearman rank correlation (rho) is used. It correlates the ranks of values rather than the values themselves.

Worked example

A study of 300 adults finds r = 0.5 between body mass index and fasting insulin, p below 0.001. Interpretation: a moderate positive linear relationship; r squared = 0.25, so BMI explains 25% of the variation in insulin, and 75% is explained by other factors such as genetics and activity. The small p value means the correlation is unlikely to be due to chance, but it does not prove that BMI causes higher insulin; the study is cross-sectional, so temporality is unknown.

Exam vignette clue

A scatter plot showing points falling from upper left to lower right indicates a negative correlation. When asked how much of the variation is explained, square r. When asked whether the relationship is causal, the answer from a correlational study is almost always no.

🔥 Exam pearls

  • r ranges from -1 to +1; absolute value = strength, sign = direction.
  • r squared = proportion of variance explained (r = 0.7 means about 49%).
  • r = -0.8 is stronger than r = +0.5.
  • Correlation does not imply causation; temporality is the essential criterion for causation.
  • r near 0 does not exclude a nonlinear relationship.
  • Binary outcome with multiple predictors = logistic regression; time-to-event = Cox regression.
© 2026 Project IMG · Content from Project IMG labs and atlases · For education only, not medical advice.