Find a course

Module 2: Simple Linear RegressionLesson 4 of 1213 min

Interpreting the Slope and Intercept

State what the slope and intercept mean in real units, make predictions, recognize when the intercept is meaningless, and avoid dangerous extrapolation.

Step 1 of 13Learn

What does 150 mean?

A real estate analyst fits a regression of house sale price on floor area for 300 recent sales in one town and gets

predicted price = 40,000 + 150 × (square feet)

Her manager asks what the numbers mean. "The slope is 150" is not an answer. A good interpretation puts the numbers into the language of the problem, with units, and with honest hedging.

Slope: for each additional square foot of floor area, the predicted sale price is $150 higher, on average. Equivalently, houses that are 100 square feet larger sell for about $15,000 more on average.

Intercept: the predicted price of a house with zero square feet is $40,000. That is obviously not a real house. The intercept is a mathematical anchor for the line and only has a real-world meaning when x = 0 is a sensible value that lies within, or close to, the range of the data.

Two phrases do a lot of work in these sentences. "Predicted" reminds the reader that the line describes the trend, not every house. "On average" reminds them that individual houses vary around the line, sometimes by a lot. In this lesson you'll practice interpreting coefficients, making predictions and recognizing when the line should not be used.

Step 2 of 13Learn

Interpreting the slope carefully

A template for interpreting a slope:

"For each one-unit increase in [x, with units], the predicted [y, with units] increases (or decreases) by [|b₁|, with units], on average."

Examples:

  • Fuel cost = 12 + 0.11 × miles: each extra mile driven adds $0.11 to predicted fuel cost.
  • Exam score = 48 + 4.5 × hours of study: each additional hour is associated with a predicted score 4.5 points higher.
  • Resale value = 31,000 − 2,400 × age: each additional year of age is associated with a predicted value $2,400 lower.

Notice the phrase "is associated with" in the last two. Unless the data comes from an experiment, the slope describes how y differs between observations with different x-values, not how y would change if you changed x for one observation. Students who study more may also sleep better and attend more classes. The slope bundles all of that together.

Units matter. If you change x from dollars to thousands of dollars, the slope gets 1,000 times bigger, because one unit of x is now 1,000 times larger. If you change y from dollars to thousands of dollars, the slope gets 1,000 times smaller. The relationship hasn't changed, only the measuring stick. This is why slopes can't be compared across variables measured in different units, while correlations can.

Step 3 of 13Practice · Diagram

Anatomy of a fitted line

Which part describes how two houses 100 sq ft apart differ in predicted price?

Tap the shape that answers the question, then press Check.

Anatomy of a fitted lineParts diagram: predicted price = 40,000 + 150 × sqft, predicted price, 40,000: intercept, 150: slope, sqft: predictor.predictedprice = 40,000+ 150 × sqftpredictedprice40,000:intercept150: slopesqft:predictor
predicted price = 40,000 + 150 × sqft
predicted price

The response, as an average prediction (ŷ), not a guarantee.

40,000: intercept

Predicted price at 0 sq ft. Far outside the data, so not meaningful here.

150: slope

Dollars per extra square foot, on average.

sqft: predictor

Units matter: per square foot, not per square meter.

Step 4 of 13Practice · Choose one

A regression of monthly electricity bill (in dollars) on average outdoor temperature (in °F) during summer gives ŷ = −85 + 2.3x. Which is the best interpretation of the slope?

Step 5 of 13Practice · Work it out

Using predicted price = 40,000 + 150 × (square feet), what is the predicted price, in dollars, of a 1,800-square-foot house?

Step 6 of 13Learn

Extrapolation: the line has a range

A regression line is trustworthy only within the range of x-values used to fit it. Using it far outside that range is called extrapolation, and it is one of the most common ways regression goes wrong.

The classic example is a child's growth. From ages 2 to 10, height rises roughly in a straight line, about 6 cm per year. Fit a line to that data and predict the height at age 40: the line says well over 2.5 meters. Growth stops at the end of adolescence, but the line has no way of knowing that.

The house price model was fit to homes from 900 to 3,500 square feet. Predicting the price of a 12,000-square-foot mansion with it is extrapolation: luxury homes follow different rules, and the town may have no comparable sales at all. Predicting at 0 square feet, which is what the intercept does, is extreme extrapolation.

The danger is that extrapolated predictions look exactly as precise as any other prediction. The formula happily produces a number. So always state the range of the data alongside a model, and treat predictions beyond it as guesses. If you must predict outside the range, look for data or theory about how the relationship behaves there, and expect it to bend.

Step 7 of 13Practice · Diagram

Where the house model can be trusted

Which of these predictions is extrapolation that looks harmless but is not?

Tap the shape that answers the question, then press Check.

Where the house model can be trustedScale: Intercept at 0 sq ft, 1,800 sq ft home, 3,200 sq ft home, 12,000 sq ft mansion.Range of the data02,0004,0006,0008,00010k12k0 sq ftIntercept at 0 sq ft1,800 sq ft1,800 sq ft home3,200 sq ft3,200 sq ft home12,000 sq ft12,000 sq ftmansion
Intercept at 0 sq ft

Extreme extrapolation.

1,800 sq ft home

Inside the data: a reasonable prediction.

3,200 sq ft home

Near the edge, still inside.

12,000 sq ft mansion

Far outside: the formula still gives a number, but it is a guess.

Step 8 of 13Practice · True or false

A regression line fit to data with x-values between 10 and 50 can be used just as reliably to predict y at x = 200.

Step 9 of 13Practice · Fill in the blanks

Fill in the blanks

If a regression of sales on advertising spending in dollars has a slope of 0.004, then measuring advertising in thousands of dollars instead gives a slope of . Changing units does not change the correlation, which stays .

Step 10 of 13Note

Step 11 of 13Learn

Standardized slopes and comparing predictors

Because slopes depend on units, comparing them directly can mislead. In a model predicting house prices, is $150 per square foot a bigger deal than $8,000 per bedroom? The numbers aren't on the same scale.

One fix is to standardize both variables, converting them to z-scores before fitting. The slope then measures how many standard deviations y changes per standard deviation of x. In simple regression, the standardized slope equals the correlation r. So with r = 0.6, a house one SD larger than average is predicted to sell for 0.6 SDs above the average price.

Standardized slopes make it easier to compare the strength of association of different predictors within the same dataset. They have downsides too: they depend on how spread out the variables happen to be in your sample, and they are harder to explain to non-specialists ("0.6 standard deviations" means little to most managers).

In practice, report the slope in real units for interpretation and decisions, since "$150 per square foot" is concrete, and use standardized slopes or correlations when you need to compare variables measured on different scales. Whatever you report, say which one it is. A slope of 0.6 and a slope of 150 might describe exactly the same relationship.

Step 12 of 13Compare

Raw slope vs. standardized slope

AspectRaw slopeStandardized slope
Unitsy units per x unit ($150 per sq ft)SDs of y per SD of x
In simple regression equalsr × (s_y / s_x)r
Good forDecisions and explanationComparing predictors on different scales
Weak spotDepends on the units chosenDepends on the spread in this sample

Step 13 of 13Practice · What would you do?

What would you do?

A small business fits a regression of monthly sales on monthly advertising spend using two years of data, during which ad spend ranged from $2,000 to $15,000. The slope is 3.1 (each extra ad dollar is associated with $3.10 in sales). The owner wants to spend $120,000 next month and expects about $370,000 in extra sales. What do you advise?