AP® Statistics · Unit 5 · Topic 5.5

Slope, Intercept, and the Point of Means

The least-squares line always passes through (x-bar, y-bar), and its slope equals r times (sy divided by sx). From there the intercept is just y-bar minus slope times x-bar.

The least-squares line is built to balance positive and negative residuals above and below it, and that balancing point is always (x-bar, y-bar). No matter how scattered the data are, the line of best fit runs through the spot where both variables sit at their average. That single fact is what lets you find the equation of the line without touching calculus: once you know the slope, the point of means pins down the intercept for free.

The slope formula itself comes from stretching correlation back into the original units. Correlation r measures how tightly points cluster around a line, but it's unitless — it doesn't know whether x is measured in inches or in miles. The slope needs to know that, because slope is rise over run in the real units of y and x. Multiplying r by sy/sx rescales the unitless strength of the relationship into an actual rate of change: slope b = r(sy/sx). Once b is known, intercept a = y-bar − b(x-bar) follows directly from the line passing through the point of means.

This formula is also why slope and correlation get confused but aren't the same thing. They connect Unit 5's earlier ideas — correlation measuring strength and direction — to prediction: slope tells you how much y changes per unit of x, while r only tells you how closely the points hug a line. Next, residuals check whether that line was ever the right model to use.

Key terms

point of means
The point (x-bar, y-bar) that every least-squares regression line passes through.
slope (b)
The predicted change in y for a one-unit increase in x, equal to r times sy divided by sx.
intercept (a)
The predicted value of y when x equals zero, calculated as y-bar minus slope times x-bar.
correlation coefficient (r)
A unitless number between -1 and 1 measuring the strength and direction of a linear relationship.
standard deviation (sx, sy)
A measure of spread for x or y in their original units, used to rescale r into a slope.

Watch it explained

  1. How it worksHow does the slope formula come out of r and the two standard deviations?
  2. Worked exampleFind the slope and intercept from r = 0.62, sx = 3.1, sy = 8.4, x-bar 14, y-bar 52.
  3. Common mistakeWhy isn't the slope of the regression line the same thing as the correlation?

Check yourself

Your turn1 of 2
Find the intercept of the least-squares line, given r = 0.718, sx = 4, sy = 11, x-bar = 11, y-bar = 33. Use intercept = y-bar minus the slope times x-bar.

End of topic.