AP Statistics Unit 2: Exploring Two-Variable Data
Scatterplots, correlation, least-squares regression and residuals.
Unit overview
Two-variable data asks whether one quantity tells you something about another. For two categorical variables you build a two-way table and compare conditional relative frequencies: if the distribution of one variable changes across the categories of the other, the variables are associated.
For two quantitative variables you start with a scatterplot and describe direction, form, strength and unusual points. When the form is linear, the correlation measures strength and the least-squares regression line gives predictions. Residuals, , tell you how far each point sits from the line, and a residual plot with no pattern supports a linear model.
Key topics
- Two-way tables
- Joint, marginal and conditional relative frequencies; association means the conditional distributions differ.
- Correlation
- lies between and , has no units and only describes linear relationships.
- Least-squares regression
- Slope ; the line always passes through .
- Residuals and
- A patternless residual plot supports linearity; is the fraction of variation in explained by the line.
Worked example
A regression of exam score on hours studied has , hours and points. Find the slope.
- Use .
- .
- Interpretation: each additional hour of study is associated with a predicted increase of 4 points.
Answer: points per hour
Common mistakes
- Treating correlation as causation. An observational association does not show that changing changes .
- Interpreting the slope without context or without the word predicted.
- Extrapolating far beyond the range of the observed values.
Exam tips
- Interpretations should name both variables, the units and the direction, and say predicted for regression output.
- Read computer regression output carefully: the slope is the coefficient next to the explanatory variable, not the constant.
More practice on this site
- Descriptive Statistics Study Guide (study guide)
- Statistics Formulas cheat sheet (one-page formulas)
- Descriptive Statistics Quiz (quick quiz)
- Statistics practice problems (with worked solutions)
See the AP Statistics exam format and every unit on the course page.