Correlation vs regression: how they differ
By Jude Wallis · Published
Correlation gives a single number, r, that measures the strength and direction of a linear relationship; regression fits a line that predicts one variable from another, giving a slope and an intercept.
AP Statistics: Unit 5 (topics 5.2 Correlation, 5.3 Linear Regression Models, 5.5 Least-Squares Regression). In the Fall 2026 AP Statistics course, correlation is topic 5.2 and least-squares regression spans topics 5.3 through 5.5; the course treats regression descriptively, and inference for the slope of a regression model is not part of it.
What correlation is
Correlation measures the strength and direction of a linear relationship between two quantitative variables with a single number, the correlation coefficient . It ranges from to : values near mean a strong positive linear pattern, values near a strong negative one, and values near little linear association. Correlation has no units and does not change if you swap which variable is and which is . It answers how tightly the points cluster around a line, not what that line is.
What regression is
Regression fits an actual line to the data so you can predict one variable from another. The least-squares regression line is written (y-hat is the predicted response, the intercept, the slope), and it treats as the explanatory variable and as the response. The slope carries units, giving the predicted change in for each one-unit increase in . Unlike correlation, regression is directional: predicting from is a different line from predicting from .
Correlation vs regression at a glance
Correlation and regression describe the same relationship but answer different questions.
| Feature | Correlation | Regression |
|---|---|---|
| Output | One number, | A line, |
| Question | How strong is the linear link? | What line best predicts ? |
| Units | None | Slope has units |
| Direction | Symmetric in and | Depends on which is the response |
| Range | Slope and intercept unbounded | |
| Main use | Measure association | Make predictions |
When to use which
Reach for correlation when your goal is to summarize how strong and in what direction two variables move together. Reach for regression when you want to model the relationship and describe or predict how responds to . The two are linked: the slope and correlation share a sign, and connects them through the standard deviations. Squaring the correlation gives , the fraction of the variation in that the regression line accounts for.
The classic mix-up and how to avoid it
The common error is treating and the slope as the same thing; they are not, because is unitless while is in units of per unit of . They always share a sign, and they are equal only in the special case where . A second trap is reading either one as proof of causation, when both only describe association; see correlation vs causation. Keep them straight by remembering that correlation reports the tightness of the pattern, while regression reports the line itself.
From correlation to the regression line
A dataset has correlation , with , , , and . Find the slope and intercept of the least-squares line, and interpret .
Slope from the correlation: .
Intercept, using that the line passes through : .
Regression line: .
Coefficient of determination: , so about of the variation in is explained by the linear model.
Compare the two summaries: correlation is the single unitless number , while regression is the full line whose slope is in units of per unit of .
The least-squares line is with ; correlation compresses the relationship to , while regression expresses it as a predictive line with a slope that carries units.
Frequently asked questions
Can you have a strong correlation but a small slope?
Yes. The slope depends on the spread of the two variables through , so a high correlation paired with a small relative to produces a small slope. Correlation strength and slope size are separate ideas.
Does the AP exam test inference for the regression slope?
No. The Fall 2026 AP Statistics course covers regression descriptively, including the least-squares line, residuals, , and , but inference for the slope of a regression model is not part of this course. It remains standard content in a full college statistics course.