From the free course AP Statistics on Lykke

5.2 Correlation

Key concepts: Correlation coefficient r — unit-free measure of linear strength and direction · Sign of r — negative r shows a negative association, positive r a positive one · Range of r — always between −1 and 1, inclusive · Strength — |r| near 1 is a tight line, r = 0 no linear association · r built from z-scores — standardizing removes the units of x and y · Correlation is not causation, and a high r does not confirm linearity

The correlation coefficient, denoted as $r$, serves as the standardized measure for the direction and strength of a linear relationship between two quantitative variables.

The correlation coefficient, denoted as $r$, serves as the standardized measure for the direction and strength of a linear relationship between two quantitative variables. Unlike the visual "cloud" of a scatterplot, $r$ provides a single numerical value that allows for objective comparison between different datasets, regardless of the units of measurement used for the variables (LO 5.2.A, Skill 4.D).

The Mechanics of $r$

The value of $r$ is calculated using the standardized scores ($z$-scores) of the observations. By evaluating how many standard deviations an observation's $x$ and $y$ values fall from their respective means, the correlation coefficient determines how consistently the variables move together.

Definition: Correlation Coefficient ($r$) A unitless measure between $-1$ and $1$ that describes the direction and strength of the linear association between two quantitative variables (EK 5.2.A.1).

Range and Direction

The sign and magnitude of $r$ dictate the nature of the linear association (EK 5.2.A.2, EK 5.2.A.3):

  • Positive Correlation ($r > 0$): As the explanatory variable increases, the response variable tends to increase.
  • Negative Correlation ($r < 0$): As the explanatory variable increases, the response variable tends to decrease.
  • Perfect Linearity: An $r$ of exactly $1$ or $-1$ occurs only when every data point falls perfectly on a single straight line (EK 5.2.A.4).
  • No Linear Association: An $r$ near $0$ indicates a very weak linear relationship, where knowing $x$ provides little to no information about the linear trend of $y$ (EK 5.2.A.5).

Essential Properties of Correlation

To interpret $r$ accurately, several mathematical constraints must be understood. These properties prevent common errors in comparative analysis.

Property Statistical Implication CED Reference
Unitless $r$ does not change if you convert measurements (e.g., from inches to centimeters). EK 5.2.A.8
Symmetry Switching the $x$ and $y$ variables does not change the value of $r$. EK 5.2.A.1
Non-Resistance $r$ is strongly affected by outliers; a single extreme point can move $r$ from $0.9$ to $0.4$. EK 5.2.A.6
Linearity Only $r$ only measures linear strength. A perfect parabola may have an $r$ near $0$. EK 5.2.A.5

Non-Resistance to Outliers

Because $r$ is calculated using means and standard deviations—both of which are non-resistant summary statistics—correlation is highly sensitive to unusual observations. An outlier that falls far from the linear pattern of the rest of the data will decrease the magnitude of $r$. Conversely, an "influential" point that falls far in the $x$-direction but follows the linear trend can artificially inflate the strength of $r$ (EK 5.2.A.6).

Contextual Interpretation: The Wolf Study

Consider a study of gray wolves where researchers measure the length (meters) and weight (kilograms) of 25 individuals. A calculated correlation of $r = 0.85$ suggests a strong, positive, linear relationship between length and weight. In this context, longer wolves generally weigh more, and the data points cluster tightly around a linear trend. If the researchers switched to measuring length in centimeters, $r$ would remain $0.85$ because correlation is invariant under linear transformations (EK 5.2.A.8).

Critical Distinctions and Misconceptions

Misconception: $r = 0$ means "No Relationship"

A common error is assuming that a correlation of zero implies the variables are unrelated. In reality, $r = 0$ only implies the absence of a linear relationship. The variables could have a perfect quadratic or sinusoidal relationship that $r$ is mathematically unable to detect (EK 5.2.A.5).

The Causation Trap

Correlation does not imply causation (EK 5.2.A.7). A high correlation between two variables simply means they vary together; it does not prove that changes in the explanatory variable cause changes in the response variable. Often, a third "lurking" or confounding variable influences both. For example, ice cream sales and drowning incidents are highly correlated, but both are actually driven by a third variable: outdoor temperature.

Distinction from Slope

While the sign of $r$ matches the sign of the slope of the least-squares regression line, the value of $r$ is not the slope. A line with a very shallow slope can still have an $r = 1$ if the points fall exactly on that line. Slope tells you the rate of change; correlation tells you the "tightness" of the fit (EK 5.2.A.3).

Interpretation Check

A researcher finds a correlation of $r = -0.92$ between the number of hours spent on social media ($x$) and the number of hours spent sleeping ($y$) for a group of students.

  1. Describe the relationship: There is a strong, negative, linear relationship between social media use and sleep duration.
  2. Evaluate a claim: If a student claims that social media causes them to lose sleep based solely on this $r$ value, is the claim justified?
    • Answer: No. While the association is strong, other factors (such as school workload or caffeine intake) might influence both variables. Correlation alone cannot establish a causal link (EK 5.2.A.7).
5.2 Correlation - AP Statistics - image 1
5.2 Correlation - AP Statistics - image 1
5.2 Correlation - AP Statistics - diagram 1
5.2 Correlation - AP Statistics - diagram 1

Source Materials

Study AP Statistics on Lykke

This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.

Add the free extensionSign in to open every section

All sections of AP Statistics · Browse more course pages