AP STATISTICS • EXPLORING TWO-VARIABLE DATA

Introducing Statistics: Are Variables Related?

Discover how statisticians detect, visualize, and quantify relationships between two variables using scatterplots and correlation.

Historical Context & Motivation

The desire to understand whether two measurable quantities move together — and if so, how strongly — is one of the oldest questions in empirical science. Long before formal statistical methods existed, scientists and scholars recognized patterns: taller people tended to weigh more, warmer days seemed to coincide with higher crop yields, and rising trade volumes appeared to track national wealth. The challenge was transforming these intuitions into rigorous, reproducible measurements. The development of bivariate analysis — the study of relationships between two variables — gave scientists a powerful toolkit for moving beyond anecdote to evidence.

1805
Legendre's Least Squares
Adrien-Marie Legendre published the method of least squares, providing the first formal framework for fitting a line to observed data points in astronomy and geodesy.
1886
Galton's Regression to the Mean
Sir Francis Galton studied parent and offspring heights, discovering that extreme values in one generation tended to "regress" toward the average in the next — coining the term regression.
1896
Pearson's Correlation Coefficient
Karl Pearson formalized the product-moment correlation coefficient r, giving researchers a single number between −1 and +1 to quantify the strength and direction of a linear relationship.
1977
Tukey's Exploratory Data Analysis
John Tukey championed graphical methods — including scatterplots and residual plots — arguing that visualization should always precede numerical summaries.
2020s
Modern Data Science
Massive datasets and computational tools now allow analysts to explore bivariate relationships in real time, yet the foundational ideas of scatterplots, correlation, and regression remain central to AP Statistics and beyond.

The central question this unit addresses is deceptively simple: Are two variables related? Answering it rigorously requires us to define what "related" means statistically, choose appropriate visual displays, compute numerical summaries, and — crucially — avoid confusing association with causation. These ideas form the backbone of Unit 2 in the AP Statistics curriculum and appear repeatedly on the exam.

Core Principles & Definitions

Before we can assess whether two variables are related, we need a precise vocabulary. In any bivariate study, we identify an explanatory variable (sometimes called the independent variable) that we suspect may influence or predict a response variable (the dependent variable). The explanatory variable is conventionally plotted on the horizontal axis, and the response variable on the vertical axis. Even when no causal claim is intended, this convention helps organize our analysis and communication.

1

Association

Two variables are associated if knowing the value of one variable provides information about the value of the other. Association can be positive, negative, or nonlinear.
2

Scatterplot

A scatterplot displays paired quantitative data as points in a coordinate plane. It reveals direction, form, strength, and unusual features of the relationship.
3

Direction

A positive association means both variables increase together; a negative association means one decreases as the other increases.
4

Form & Strength

The form describes whether the pattern is linear or curved. The strength describes how tightly points cluster around the underlying pattern.
5

Correlation ≠ Causation

Even a strong statistical association does not prove that changes in the explanatory variable cause changes in the response. Lurking variables and confounding must always be considered.
KEY TAKEAWAY
Think of exploring a bivariate relationship like tuning into a radio signal. The scatterplot lets you "hear" the signal — direction, form, and unusual features. The correlation coefficient r is your signal-strength meter, telling you how clearly the linear pattern comes through above the noise. But neither the signal nor the meter tells you what is broadcasting — that requires additional investigation into causation.

Visual Explanation: Anatomy of a Scatterplot

A well-constructed scatterplot is the single most important tool for exploring bivariate data. The diagram below shows a scatterplot of study hours versus exam score for 15 students, annotated with the four key features you must describe on the AP exam: direction, form, strength, and unusual features (outliers, clusters, or influential points).

Scatterplot of study hours versus exam score. The dashed violet line represents the overall trend. Note the outlier at approximately (2.5, 80) — a student who scored unusually high relative to their study time. The overall pattern shows a strong, positive, roughly linear association.
📝 AP Exam Tip
When describing a scatterplot on the AP exam, always address all four features using the mnemonic D-F-S-U: Direction (positive/negative), Form (linear/nonlinear), Strength (strong/moderate/weak), and Unusual features (outliers, clusters, gaps). Omitting any one of these can cost you points on free-response questions.

Mathematical Framework: The Correlation Coefficient

While a scatterplot provides a qualitative picture, we need a numerical summary to quantify the linear relationship between two quantitative variables. The Pearson correlation coefficient r does exactly this. It standardizes both variables — converting them to z-scores — and then measures the average product of those z-scores across all observations. The resulting value always falls between −1 and +1, providing a unitless measure of linear association strength and direction.

CORRELATION COEFFICIENT
r = (1 / (n − 1)) × Σ[(xᵢ − x̄)/sₓ × (yᵢ − ȳ)/sᵧ]
where n = number of paired observations, and ȳ are the sample means, and sₓ and sᵧ are the sample standard deviations. Each fraction (xᵢ − x̄)/sₓ is the z-score for that observation.
COEFFICIENT OF DETERMINATION
r² = (fraction of variation in y explained by the linear model)
If r = 0.90, then r² = 0.81, meaning 81% of the variability in the response variable is accounted for by the linear relationship with the explanatory variable. The remaining 19% is due to other factors or randomness.

The formula reveals important conceptual insights. When both z-scores have the same sign (both above or both below their respective means), the product is positive, contributing to a positive r. When the z-scores have opposite signs, the product is negative, pulling r toward −1. If the points scatter randomly, positive and negative products cancel, yielding r ≈ 0. Note that r measures only linear association — a perfect parabolic relationship can produce r = 0 if the curvature is symmetric.

  • r = +1: Perfect positive linear relationship — all points lie exactly on an upward-sloping line.
  • r = −1: Perfect negative linear relationship — all points lie exactly on a downward-sloping line.
  • r = 0: No linear relationship, though a strong nonlinear pattern may exist.
  • |r| > 0.8: Generally considered strong; |r| between 0.5 and 0.8 is moderate; |r| < 0.5 is weak.

Types of Association & Scatterplot Patterns

Not all bivariate relationships look the same. The form, direction, and strength of an association determine which statistical tools are most appropriate. The diagram below illustrates four common scatterplot patterns, each with a distinct combination of these characteristics. Recognizing these patterns at a glance is essential for selecting the correct analytical approach and for earning full credit on AP free-response questions.

Four common scatterplot patterns. Top-left: strong positive linear (r ≈ 0.95). Top-right: strong negative linear (r ≈ −0.92). Bottom-left: nonlinear pattern where r is misleadingly near zero. Bottom-right: no association — points scattered with no discernible pattern.

The bottom-left panel deserves special attention. The parabolic data exhibit a clear, strong pattern, yet the correlation coefficient r is near zero because the relationship is not linear. This illustrates a critical principle: always examine the scatterplot before computing r. A numerical summary alone can be deeply misleading — a lesson famously demonstrated by Anscombe's Quartet, four datasets with nearly identical correlation coefficients but drastically different scatterplot appearances.

Worked Example: Computing and Interpreting r

Suppose we collect data on the number of absences (x) and final exam score (y) for five students in a statistics course. The data are: (2, 88), (4, 78), (6, 72), (8, 62), (10, 58). We want to compute the correlation coefficient r, interpret it in context, and determine how much of the variation in exam scores is explained by the linear relationship with absences.

Correlation Between Absences and Exam Score
1
Step 1 — Compute the MeansThe mean of x is x̄ = (2 + 4 + 6 + 8 + 10) / 5 = 30 / 5 = 6. The mean of y is ȳ = (88 + 78 + 72 + 62 + 58) / 5 = 358 / 5 = 71.6.
x̄ = 6, ȳ = 71.6
2
Step 2 — Compute the Standard DeviationsFor x: sₓ = √[Σ(xᵢ − x̄)² / (n − 1)] = √[(16 + 4 + 0 + 4 + 16) / 4] = √[40/4] = √10 ≈ 3.162. For y: sᵧ = √[Σ(yᵢ − ȳ)² / (n − 1)] = √[(268.96 + 40.96 + 0.16 + 92.16 + 184.96) / 4] = √[587.2/4] = √146.8 ≈ 12.116.
sₓ ≈ 3.162, sᵧ ≈ 12.116
3
Step 3 — Compute z-Scores and ProductsFor each observation, calculate zₓ = (xᵢ − 6)/3.162 and zᵧ = (yᵢ − 71.6)/12.116, then multiply them. For example, observation (2, 88): zₓ = −1.265, zᵧ = 1.354, product = −1.713. Repeating for all five points: products are −1.713, −0.428, −0.003, −0.428, −1.713. The sum of the products is −4.285.
Σ(zₓ × zᵧ) ≈ −4.285
4
Step 4 — Compute rr = (1/(n − 1)) × Σ(zₓ × zᵧ) = (1/4) × (−4.285) ≈ −0.9713. On the AP exam, you would typically use your calculator's LinReg function to obtain this value directly.
r ≈ −0.971
5
Step 5 — Interpret in ContextThe correlation r ≈ −0.971 indicates a strong, negative, linear association between the number of absences and final exam score. As absences increase, exam scores tend to decrease. Furthermore, r² ≈ 0.943, meaning approximately 94.3% of the variation in exam scores among these five students is explained by the linear relationship with number of absences.
r² ≈ 0.943 → 94.3% of variation explained
🔧 Calculator Shortcut
On the TI-83/84, enter x-values into L1 and y-values into L2, then run STAT → CALC → 8:LinReg(a+bx). If r does not appear, turn on diagnostics first: 2nd → 0 (CATALOG) → DiagnosticOn → ENTER.

Strengths, Limitations, and Common Pitfalls

The correlation coefficient r is an indispensable tool, but like any summary statistic, it can mislead when used carelessly. Understanding its properties and limitations is essential both for correct AP exam responses and for sound statistical practice. The table below contrasts the strengths and weaknesses of relying on r as a measure of association.

Strengths and Limitations of the Correlation Coefficient r
StrengthsLimitations
Unitless: allows comparison across different datasets regardless of measurement scales.Measures only linear association; a strong curved pattern can yield r ≈ 0.
Bounded between −1 and +1: provides a standardized scale for interpreting strength and direction.Highly sensitive to outliers: a single extreme point can dramatically inflate or deflate r.
Symmetric: r(x, y) = r(y, x), so swapping explanatory and response roles does not change its value.Does not imply causation: a strong r can arise from confounding or lurking variables.
Invariant under linear transformations of the data (changing units does not affect r).Requires both variables to be quantitative; categorical data require different tools (e.g., chi-square).
KEY TAKEAWAY
Think of the correlation coefficient as a medical thermometer. It gives you an accurate reading of one specific symptom — the degree of linear co-movement — but it cannot diagnose the underlying cause. Just as a doctor would never prescribe treatment based solely on a temperature reading without examining the patient, a statistician should never conclude causation based solely on a correlation value without considering study design, potential confounders, and the shape of the scatterplot.

Connection to Regression and Advanced Methods

The question "Are variables related?" is the launching point for a deeper investigation that occupies much of the AP Statistics curriculum. Once we establish that a linear association exists, we naturally want to model it — that is, find the equation of the line that best summarizes the relationship and use it to make predictions. This leads us from correlation to least-squares regression, where we derive the line ŷ = a + bx that minimizes the sum of squared residuals. The table below previews how the introductory concepts in this lesson connect to more advanced topics you will encounter.

From Exploration to Inference: How Introductory Concepts Lead to Advanced Methods
This Lesson (Introductory)What Comes Next (Advanced)
Scatterplot: visual display of bivariate dataResidual plots: diagnosing whether the linear model is appropriate
Correlation coefficient r: measures strength and direction of linear associationSlope b and intercept a: the least-squares regression equation ŷ = a + bx, with b = r × (sᵧ / sₓ)
r²: proportion of variability explainedStandard deviation of residuals (s): measuring prediction error
Association ≠ causation (observational data)Inference for regression: t-tests and confidence intervals for the slope to assess statistical significance

Importantly, the relationship b = r × (sᵧ / sₓ) reveals that the regression slope is directly proportional to the correlation coefficient. A stronger linear association (larger |r|) means the regression line captures more of the data's behavior. In later units, you will also learn to construct confidence intervals and perform hypothesis tests for the population slope β, bridging the gap between exploratory data analysis and formal statistical inference. Mastering the ideas in this lesson — understanding scatterplots, interpreting r, and recognizing the limits of correlation — lays the foundation for everything that follows.

Practice Problems

1
A researcher computes r = −0.02 for a large dataset of paired quantitative observations. She then examines the scatterplot and observes a clear U-shaped (parabolic) pattern. Which of the following best explains this situation?
2
A study of 50 cities finds that the correlation between average daily temperature (°F) and average monthly ice cream sales (thousands of dollars) is r = 0.87. What is the value of r², and which interpretation is most appropriate?
3
A dataset has a correlation coefficient of r = 0.65 between hours of exercise per week and resting heart rate. If each person's exercise hours are converted from hours to minutes (multiplied by 60), what is the new correlation coefficient?
PROBLEM 4APPLIED
A health researcher collects data from 20 adults on their daily sodium intake (mg) and systolic blood pressure (mmHg). The scatterplot shows a moderately strong, positive, roughly linear association with one apparent outlier — a person who consumes very high sodium but has an unusually low blood pressure. The computer output reports r = 0.58 and r² = 0.336. (a) Describe the association between sodium intake and systolic blood pressure as revealed by the scatterplot. Be sure to address direction, form, strength, and unusual features. (b) Interpret r² = 0.336 in the context of this study. (c) If the outlier is removed and the correlation is recalculated, would you expect r to increase, decrease, or remain approximately the same? Justify your reasoning. (d) The researcher concludes that reducing sodium intake will lower blood pressure. Is this conclusion justified based on this study? Explain.
PROBLEM 5CRITICAL THINKING
Consider the following two claims: Claim 1: "If two variables have a correlation of r = 0, then there is no relationship between them." Claim 2: "If we know r, we can determine the slope of the least-squares regression line." (a) Evaluate Claim 1. Provide a specific counterexample (describe or sketch the data pattern) showing that Claim 1 can be false. (b) Evaluate Claim 2. Is the claim true or false? If true, explain what additional information (if any) is needed. If false, explain why. (c) Explain why the distinction between association and causation is considered one of the most important ideas in statistics. Give a real-world example of a strong correlation that does not imply causation. (d) A student says, "Since r is always between −1 and 1, an r of 0.40 means the relationship is only 40% as strong as a perfect linear relationship." Is this interpretation correct? Explain using r².

Lesson Summary

Exploring whether two variables are related is the foundational question of bivariate analysis. We begin by constructing a scatterplot — plotting the explanatory variable on the horizontal axis and the response variable on the vertical axis — and then describing the pattern using four features: direction (positive or negative), form (linear or nonlinear), strength (strong, moderate, or weak), and unusual features (outliers, clusters, or gaps).

The correlation coefficient r quantifies the strength and direction of a linear association as a unitless value between −1 and +1, while tells us the proportion of variability in the response variable explained by the linear model. Crucially, r measures only linear association, is sensitive to outliers, and is invariant under linear transformations of either variable. Above all, association does not imply causation — establishing a causal link requires a carefully designed randomized experiment, not merely a strong correlation. These foundational ideas connect directly to least-squares regression and inference for slopes in subsequent AP Statistics units.

Varsity Tutors • AP Statistics • Introducing Statistics: Are Variables Related?