Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
UnofficialAP StatisticsUnit 2 of 9

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 rr measures strength and the least-squares regression line y^=a+bx\hat{y} = a + bx gives predictions. Residuals, y−y^y - \hat{y}, 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
rr lies between −1-1 and 11, has no units and only describes linear relationships.
Least-squares regression
Slope b=r sy/sxb = r\,s_y/s_x; the line always passes through (xˉ,yˉ)(\bar{x}, \bar{y}).
Residuals and r2r^2
A patternless residual plot supports linearity; r2r^2 is the fraction of variation in yy explained by the line.

Worked example

A regression of exam score on hours studied has r=0.8r = 0.8, sx=2s_x = 2 hours and sy=10s_y = 10 points. Find the slope.

  1. Use b=r⋅sysxb = r \cdot \dfrac{s_y}{s_x}.
  2. b=0.8⋅102=4b = 0.8 \cdot \dfrac{10}{2} = 4.
  3. Interpretation: each additional hour of study is associated with a predicted increase of 4 points.

Answer: b=4b = 4 points per hour

Common mistakes

  • Treating correlation as causation. An observational association does not show that changing xx changes yy.
  • Interpreting the slope without context or without the word predicted.
  • Extrapolating far beyond the range of the observed xx 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.

See the AP Statistics exam format and every unit on the course page.