Pearson Correlation Analysis: Quantifying Linear Relationships

Pearson correlation (Pearson's r) is the most widely used statistic for measuring the strength and direction of a linear relationship between two continuous variables. From examining the link between study time and exam scores to investigating the relationship between anxiety and performance, Pearson correlation provides a standardized, interpretable metric of association.


Table of Contents

  1. What Is Pearson Correlation?
  2. The Correlation Coefficient Formula
  3. Interpreting the Correlation Coefficient
  4. Key Assumptions
  5. Statistical Significance and Confidence Intervals
  6. Effect Size Interpretation
  7. Common Pitfalls and Misinterpretations
  8. When Not to Use Pearson Correlation
  9. Practical Applications in Psychology
  10. Reporting Pearson Correlation
  11. Key Takeaways
  12. Further Reading

What Is Pearson Correlation?

The Pearson product-moment correlation coefficient (r) quantifies the linear association between two continuous variables. It answers the question:

To what extent do two variables change together in a linear fashion?

Key Characteristics

Property Description
Range −1.00 to +1.00
Direction Positive (+) or negative (−)
Magnitude Strength of association
Unit-free Standardized measure
  • r = +1.00: Perfect positive linear relationship
  • r = −1.00: Perfect negative linear relationship
  • r = 0.00: No linear relationship

The Correlation Coefficient Formula

The Pearson correlation coefficient is calculated as:

$$r = \frac{\sum(X_i - \bar{X})(Y_i - \bar{Y})}{\sqrt{\sum(X_i - \bar{X})^2 \sum(Y_i - \bar{Y})^2}}$$

Or equivalently, using covariance:

$$r = \frac{\text{Cov}(X, Y)}{s_X \cdot s_Y}$$

Where:

  • $\bar{X}$, $\bar{Y}$ = sample means
  • $s_X$, $s_Y$ = sample standard deviations
  • $\text{Cov}(X, Y)$ = covariance between X and Y

Intuitive Understanding

Pearson's r can be understood as:

  1. Standardized covariance: It scales the covariance by the product of standard deviations
  2. Regression slope: The slope of the standardized regression line
  3. Proportion of variance: $r^2$ represents the proportion of shared variance

Interpreting the Correlation Coefficient

Direction of Relationship

Direction Interpretation Example
Positive (r > 0) As X increases, Y tends to increase Study time and exam scores
Negative (r < 0) As X increases, Y tends to decrease Anxiety and test performance
Zero (r ≈ 0) No linear association Shoe size and IQ

Visual Interpretation

The scatterplot is essential for understanding correlation:

  • Strong positive: Points cluster tightly along an upward diagonal line
  • Strong negative: Points cluster tightly along a downward diagonal line
  • Weak correlation: Points are loosely scattered around the line
  • No correlation: Points form a circular or random cloud

Always visualize your data before computing correlations. The same r value can correspond to very different patterns.


Key Assumptions

Pearson correlation requires several assumptions for valid inference:

1. Linearity

The relationship between variables must be linear. Non-linear relationships (e.g., U-shaped, exponential) will be underestimated or missed entirely.

Check: Scatterplot inspection

2. Bivariate Normality

Both variables should be approximately normally distributed, and their joint distribution should be bivariate normal.

Check: Histograms, Q-Q plots, Shapiro-Wilk test

3. Homoscedasticity

The variance of Y should be constant across all levels of X (and vice versa).

Check: Residual plots, visual inspection of scatterplot

4. Independence of Observations

Each observation should be independent of others. Paired or clustered data violate this assumption.

Check: Study design, intraclass correlation

5. Continuous Variables

Both variables should be measured on an interval or ratio scale.

Note: Pearson correlation can be computed on ordinal data, but Spearman's ρ may be more appropriate.


Statistical Significance and Confidence Intervals

Hypothesis Testing

Null hypothesis (H₀): ρ = 0 (no population correlation)

Alternative hypothesis (H₁): ρ ≠ 0 (two-tailed)

The test statistic:

$$t = r\sqrt{\frac{n-2}{1-r^2}}$$

with df = n − 2

Confidence Intervals

A 95% confidence interval for the population correlation ρ is computed using Fisher's z transformation:

  1. Transform r to z: $z = 0.5 \ln\left(\frac{1+r}{1-r}\right)$
  2. Compute CI for z: $z \pm 1.96 \times \frac{1}{\sqrt{n-3}}$
  3. Transform back to r

Sample Size Considerations

Desired Power Small Effect (r = .10) Medium Effect (r = .30) Large Effect (r = .50)
80% (α = .05) ~780 ~85 ~26

Effect Size Interpretation

Cohen's Guidelines (1988)

r Interpretation % Shared Variance (r²)
.10 Small 1%
.30 Medium 9%
.50 Large 25%

Context-Specific Interpretation

These benchmarks should be interpreted within the research context:

  • Personality psychology: Correlations of .20–.30 are often meaningful
  • Test validation: Criterion validity correlations of .30+ are desirable
  • Medical research: Even small correlations can have public health significance

Important: A "small" correlation does not mean "unimportant." In large samples or consequential domains, small effects can be practically significant.


Common Pitfalls and Misinterpretations

1. Correlation ≠ Causation

The most fundamental error is inferring causality from correlation.

Example: Ice cream sales and drowning deaths are positively correlated, but ice cream does not cause drowning. Both are influenced by a third variable: hot weather.

2. Outliers Can Distort Correlations

A single extreme outlier can dramatically change r, even reversing the direction of correlation.

Solution: Always inspect scatterplots; consider robust correlation methods.

3. Restriction of Range

When the range of one or both variables is restricted, the observed correlation will be attenuated.

Example: If you only study university students (restricted IQ range), the correlation between IQ and GPA will be underestimated.

4. Ecological Fallacy

Correlations at the group level do not necessarily apply at the individual level.

5. Simpson's Paradox

A correlation can reverse direction when data from different groups are combined.

6. Multiple Comparisons

When computing many correlations, the risk of Type I errors increases. Use corrections (Bonferroni, FDR) or report adjusted p values.


When Not to Use Pearson Correlation

Alternative Correlation Methods

Situation Alternative Method
Non-linear monotonic relationship Spearman's ρ (rank correlation)
Non-linear non-monotonic relationship Distance correlation or polynomial regression
Ordinal data Spearman's ρ or Kendall's τ
Presence of outliers Robust correlations (e.g., percentage bend)
Dichotomous variables Point-biserial or phi coefficient
One or both variables skewed Spearman's ρ or data transformation

Special Cases

  • Partial correlation: Controls for one or more covariates
  • Semipartial (part) correlation: Unique variance of X predicting Y
  • Canonical correlation: Relationship between two sets of variables

Practical Applications in Psychology

Test Validation

Pearson correlation is central to establishing:

  • Test-retest reliability: Correlation between scores at two time points
  • Inter-rater reliability: Correlation between raters
  • Criterion validity: Correlation with external measures
  • Convergent validity: Correlation with similar constructs

Research Applications

Research Area Typical Use
Personality Trait correlations, validity evidence
Clinical Symptom severity and functioning
Cognitive Reaction time and accuracy trade-offs
Social Attitude-behavior consistency
Developmental Age-related changes in abilities

Reporting Pearson Correlation

APA Style (7th Edition)

Format: r(df) = value, p = value, 95% CI [lower, upper]

Example:

The correlation between anxiety scores and test performance was moderate and negative, r(98) = −.35, p < .001, 95% CI [−.51, −.17].

Essential Elements

  1. Correlation coefficient (r)
  2. Degrees of freedom (n − 2)
  3. p value (exact or threshold)
  4. Confidence interval (recommended)
  5. Effect size interpretation
  6. Scatterplot (for key relationships)

Example Results Section

Pearson correlation analysis revealed a significant positive relationship between hours of sleep and cognitive performance, r(148) = .42, p < .001, 95% CI [.28, .54]. This medium-sized effect indicates that approximately 18% of the variance in cognitive performance is associated with sleep duration. Scatterplot inspection confirmed linearity and the absence of influential outliers.


Key Takeaways

  1. Pearson's r measures linear association between two continuous variables, ranging from −1 to +1.
  2. Always check assumptions: linearity, bivariate normality, homoscedasticity, and independence.
  3. Visualize your data before and after computing correlations—scatterplots reveal patterns that r alone cannot.
  4. Correlation does not imply causation; third variables, reverse causality, and confounds must be considered.
  5. Effect size matters: Interpret r in context; small correlations can be meaningful in important domains.
  6. Report confidence intervals to convey precision, not just significance.
  7. Consider alternatives when assumptions are violated or relationships are non-linear.

Methodology

Methodology: This topic is part of the experimental workflow covered in Experimentology. For the relevant methods and how they are evaluated in real experiments, see Estimation and Models.

Further Reading

  • Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.). Lawrence Erlbaum.
  • Field, A. (2018). Discovering Statistics Using IBM SPSS Statistics (5th ed.). SAGE.
  • Rodgers, J. L., & Nicewander, W. A. (1988). Thirteen ways to look at the correlation coefficient. The American Statistician, 42(1), 59–66.
  • Wilcox, R. R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Academic Press.
  • Correlation Calculator — compute Pearson's r and its confidence interval from your own data
  • Anscombe's Quartet — why identical summary statistics can hide different data

Last updated: 2026-10-20

Menu
Loading