SECTION 1
Historical Context & Motivation
Long before statisticians had a formal measure for the strength of association between two variables, scientists and social researchers recognized that certain quantities tended to move together. Taller parents, for instance, generally had taller children; regions with more rainfall typically produced larger crop yields. These intuitive observations demanded a rigorous, numerical summary—one that could distinguish a weak tendency from a near-perfect linear pattern. The quest to formalize this idea gave rise to the correlation coefficient, one of the most widely used statistics in science.
1888 • Galton's Regression Work
1896 • Pearson's r
1904 • Spearman's Rank Correlation
1973 • Anscombe's Quartet
The central question that correlation answers is deceptively simple: when one variable increases, does the other tend to increase, decrease, or show no systematic pattern? And if a pattern exists, how tightly do the data points cluster around a straight line? These questions sit at the heart of the AP Statistics curriculum on exploring two-variable data, bridging descriptive scatterplot analysis with the inferential techniques of regression.
SECTION 2
Core Principles & Definitions
Before computing any statistic, it is essential to understand the foundational ideas that govern correlation. The Pearson correlation coefficient (denoted r) measures the direction and strength of the linear relationship between two quantitative variables. Several principles govern its proper use and interpretation.
Direction
Strength
Linearity Only
Unitless & Symmetric
Sensitive to Outliers
KEY TAKEAWAY
SECTION 3
Visual Explanation — Scatterplots and Correlation
The most effective way to build intuition about correlation is to examine scatterplots that correspond to different values of r. The diagram below displays five representative scatterplot patterns, ranging from strong positive to strong negative linear association, with the no-correlation case in the center. Notice how the "tightness" of the cloud of points around an imaginary straight line increases as |r| approaches 1.
In the leftmost panel (r ≈ +0.95), the points fall almost on a rising line, indicating a strong positive association. Moving toward the center panel (r ≈ 0), the cloud becomes spherical and formless—knowing x tells you almost nothing about y. The rightmost panel (r ≈ −0.95) shows a tight descending pattern. The spectrum at the bottom reinforces the key lesson: the sign of r tells direction while the absolute value tells strength.
SECTION 4
Mathematical Framework
The formula for the Pearson correlation coefficient converts each observation into a standardized z-score and then averages the products of corresponding z-scores. This elegant construction is why r is unitless—standardization strips away the original measurement scales.
Z-SCORE FORM
where n = number of data pairs, x̄ and ȳ are the sample means, and sₓ and sᵧ are the sample standard deviations of x and y respectively.
This can be equivalently written in raw-score computational form, which is sometimes more convenient for hand calculation.
COMPUTATIONAL FORM
This form avoids computing means and standard deviations first. Both formulas produce the identical value of r.
COEFFICIENT OF DETERMINATION
Squaring r gives r², the proportion of total variability in y that is accounted for by the linear model. For example, r = 0.80 means r² = 0.64, so 64% of the variation in y is explained.
Why z-scores?
SECTION 5
Interpreting r — Common Pitfalls and Nuances
Correctly interpreting a correlation value requires more than just reading its sign and magnitude. Several subtleties frequently appear on the AP Statistics exam and in professional practice. The diagram below illustrates four classic pitfalls: situations where the numerical value of r alone can be misleading.
- Correlation does not imply causation. A strong r between ice cream sales and drowning rates does not mean ice cream causes drowning—both are driven by warm weather (a lurking variable).
- r is not resistant. Because the formula uses means and standard deviations, a single extreme point can substantially alter r. Always check the scatterplot.
- r = 0 does not mean "no relationship." It means no linear relationship. A perfectly U-shaped or sinusoidal pattern can produce r ≈ 0.
- Beware of restricted range. Calculating r on a narrow subset of x values will underestimate the correlation that exists across the full range.
SECTION 6
Worked Example — Computing r by Hand
A researcher records the hours studied (x) and exam scores (y) for five students: (2, 65), (4, 73), (5, 80), (7, 85), (9, 92). Compute the Pearson correlation coefficient r.
Calculating r from Raw Data
- 1
Step 1 — Compute Means
x̄ = (2 + 4 + 5 + 7 + 9) / 5 = 27 / 5 = 5.4 and ȳ = (65 + 73 + 80 + 85 + 92) / 5 = 395 / 5 = 79.0.x̄ = 5.4, ȳ = 79.0 - 2
Step 2 — Compute Deviations and Products
For each pair, calculate (xᵢ − x̄), (yᵢ − ȳ), and their product: (−3.4)(−14) = 47.6; (−1.4)(−6) = 8.4; (−0.4)(1) = −0.4; (1.6)(6) = 9.6; (3.6)(13) = 46.8. Sum of products = 112.0. Also compute Σ(xᵢ − x̄)² = 11.56 + 1.96 + 0.16 + 2.56 + 12.96 = 29.2 and Σ(yᵢ − ȳ)² = 196 + 36 + 1 + 36 + 169 = 438.Σ(xᵢ − x̄)(yᵢ − ȳ) = 112.0 - 3
Step 3 — Compute Standard Deviations
sₓ = √(29.2 / 4) = √7.3 ≈ 2.702. sᵧ = √(438 / 4) = √109.5 ≈ 10.464.sₓ ≈ 2.702, sᵧ ≈ 10.464 - 4
Step 4 — Apply the Formula
r = [1 / (n − 1)] × Σzₓzᵧ. Equivalently, r = Σ(xᵢ − x̄)(yᵢ − ȳ) / [(n − 1) × sₓ × sᵧ] = 112.0 / [4 × 2.702 × 10.464] = 112.0 / 113.14 ≈ 0.990.r ≈ 0.990 - 5
Step 5 — Interpret
There is a strong, positive, linear association between hours studied and exam score. Approximately r² ≈ 0.980, meaning about 98% of the variation in exam scores is explained by the linear relationship with study hours in this small dataset.
SECTION 7
Strengths and Limitations of Correlation
| Strengths | Limitations |
|---|---|
| Provides a single, easy-to-communicate numerical summary of linear association. | Captures only linear relationships; misses curves, thresholds, and other patterns. |
| Unitless and scale-invariant—unaffected by changes in measurement units. | Highly sensitive to outliers; a single influential point can distort r dramatically. |
| Directly linked to r², providing an intuitive 'percent explained' interpretation. | Cannot establish causation—lurking variables and confounders are invisible to r. |
| Symmetric: the correlation of x with y equals the correlation of y with x. | Restricted range of data artificially attenuates r, leading to underestimates. |
Key strengths and limitations of the Pearson correlation coefficient
KEY TAKEAWAY
SECTION 8
Connection to Regression and Advanced Methods
Correlation is the gateway to least-squares regression, the next major topic in AP Statistics. The slope of the least-squares regression line is directly tied to r by the relationship b₁ = r × (sᵧ / sₓ), meaning that knowing the correlation, along with the two standard deviations, fully determines the regression slope. Similarly, the coefficient of determination r² reappears as the key measure of model fit in regression output. Understanding correlation deeply prepares you for interpreting computer output, performing residual analysis, and eventually extending to multiple regression in college-level coursework.
| Concept | Correlation (r) | Regression |
|---|---|---|
| Purpose | Measures strength and direction of linear association | Models the relationship and predicts y from x |
| Symmetry | Symmetric: r(x, y) = r(y, x) | Asymmetric: regression of y on x ≠ regression of x on y |
| Output | A single number between −1 and +1 | An equation: ŷ = b₀ + b₁x, plus residuals |
| Role of r² | Proportion of shared variability | Proportion of y-variability explained by the model |
Correlation vs. regression — building from description to prediction
Beyond the AP curriculum, statisticians employ partial correlation (controlling for confounders), Spearman's rank correlation (for ordinal or non-normal data), and matrix-based correlation analysis (in multivariate settings). Each of these extensions traces its lineage directly back to Pearson's original r, making a solid grasp of this concept indispensable for advanced study.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
- A. +0.95
- B. +0.50
- C. 0.00
- D. −0.50
- E. −0.95
Show answer (C)
Question 2: BASIC CALCULATION
- A. 72.25% of the variation in heating bills is explained by the linear relationship with outdoor temperature.
- B. 72.25% of heating bills are caused by changes in outdoor temperature.
- C. The heating bill decreases by 72.25% for each degree increase in temperature.
- D. There is a 72.25% chance that the relationship is linear.
- E. 85% of the variation in heating bills is explained by temperature.
Show answer (A)
Question 3: INTERMEDIATE
- A. −0.85
- B. +0.85
- C. −0.47
- D. It cannot be determined without the data.
- E. −1.53
Show answer (A)
Question 4: APPLIED
4 ptsShow answer
Question 5: CRITICAL THINKING
4 ptsShow answer
SUMMARY
Lesson Summary
Summary
The Pearson correlation coefficient r quantifies the direction and strength of a linear relationship between two quantitative variables on a scale from −1 to +1. It is computed by averaging the products of standardized z-scores, making it unitless and invariant to linear transformations. The coefficient of determination r² tells us the proportion of variability in y explained by the linear model.
Critical caveats include: r measures only linear association (curved patterns can produce r ≈ 0); correlation does not imply causation; and r is sensitive to outliers. Always accompany the numerical value of r with a scatterplot to verify that the linear model is appropriate. Mastering correlation provides the essential foundation for least-squares regression and the broader inferential framework of AP Statistics.