Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Statistics
  3. ›5 Regression Analysis
  4. ›5.3 Linear regression models

AP Statistics · Unit 5 · Regression Analysis

5.3 Linear regression models

Write the equation of a linear regression model, interpret its slope and intercept in context, and use the model to make predictions.

  • 4 min read
  • 5 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/5A linear regression model predicts a response from an explanatory value
  1. 1A linear regression model predicts a response from an explanatory value
  2. 2The equation of the line has an intercept and a slope
  3. 3Slope and intercept must be interpreted in context
  4. 4Substituting an x value gives a prediction
  5. 5Predictions outside the data range are unreliable
  6. Check your recall
  7. Practice: 10 questions
1

Part 1 of 5: A linear regression model predicts a response from an explanatory value

Suppose a teacher wants to predict quiz scores, out of 100, from weekly study time. A scatterplot of the data trends upward in a roughly straight pattern. A linear regression model summarizes that pattern with a straight line used for prediction.

The value we want to predict is the response variable, written yyy. The value we use to make the prediction is the explanatory variable, written xxx. Here, quiz score is the response and study time is explanatory.

Common mistake

Choose the response variable first. Swapping xxx and yyy produces a different line, so the predictions would answer the wrong question.

Key terms · tap one for its definition

linear regression model

A linear regression model is an equation y^=a+bx\hat{y}=a+bxy^​=a+bx that predicts the response variable from the explanatory variable using a straight line.

response variable

The response variable is the variable whose value the model predicts, plotted on the vertical axis.

explanatory variable

The explanatory variable is the variable used to predict the response, plotted on the horizontal axis.

Part 1 done

2

Part 2 of 5: The equation of the line has an intercept and a slope

Now the model needs an equation. It has the form y^=a+bx\hat{y}=a+bxy^​=a+bx. The symbol y^\hat{y}y^​, read as y-hat, is a predicted value of the response, not an observed one.

The constant aaa is the y-intercept. The coefficient bbb is the slope. For the quiz example, suppose the model is y^=55+4.5x\hat{y}=55+4.5xy^​=55+4.5x.

Here xxx is hours studied per week and y^\hat{y}y^​ is the predicted quiz score. The model was built from students who studied between 1 and 8 hours.

Exam tip

Define xxx and y^\hat{y}y^​ in words whenever you write an equation. Include the word predicted so the line is not mistaken for observed data.

Key terms · tap one for its definition

y-intercept

The y-intercept is the value aaa in y^=a+bx\hat{y}=a+bxy^​=a+bx, the predicted response when x=0x=0x=0.

slope

The slope is the value bbb in y^=a+bx\hat{y}=a+bxy^​=a+bx, the predicted change in the response for each one-unit increase in xxx.

Part 2 done

Quick check

One question on the part you just read

Easy

In the regression equation y^=a+bx\hat{y}=a+bxy^​=a+bx, identify the symbol that represents the slope.
Show answer and explanation

Answer: B · Worked explanation

The slope is the coefficient bbb that multiplies xxx. It gives the predicted change in the response for each one-unit increase in xxx. The symbol aaa is the y-intercept, the predicted value when x=0x=0x=0, so it is not the slope.
3

Part 3 of 5: Slope and intercept must be interpreted in context

The numbers 55 and 4.5 mean little until they are tied to the variables. A full interpretation names both variables, uses units, and says predicted.

  • Slope: for each additional hour studied per week, the predicted quiz score increases by 4.5 points.
  • Intercept: when hours studied is 0, the predicted quiz score is 55 points.

In this model, 0 hours lies outside the data, which run from 1 to 8 hours. The intercept is then more a starting point for the line than a real prediction. Mention this when it applies.

Common mistake

Do not say the score goes up by 4.5 points for every student. The slope describes a predicted change, not an exact one.

Part 3 done

4

Part 4 of 5: Substituting an x value gives a prediction

A fitted model earns its keep through prediction. To predict, substitute the given xxx value into the equation and calculate y^\hat{y}y^​. The result is a predicted value, so real students will score above or below it.

Worked example

Predict a quiz score

Using y^=55+4.5x\hat{y}=55+4.5xy^​=55+4.5x, predict the quiz score of a student who studies 6 hours per week.
  1. 1
    Write the equation: y^=55+4.5x\hat{y}=55+4.5xy^​=55+4.5x.
  2. 2
    Substitute x=6x=6x=6: y^=55+4.5(6)\hat{y}=55+4.5(6)y^​=55+4.5(6).
  3. 3
    Multiply: 4.5(6)=274.5(6)=274.5(6)=27.
  4. 4
    Add: 55+27=8255+27=8255+27=82.

Answer: The predicted quiz score is 82 points.

Figure 1. The line passes through the middle of the points. Each prediction is a point on the line, not an observed score.

On the graph, each prediction is a point on the line. The observed scores scatter around it. Report a prediction with units and context. For example, say that a student who studies 6 hours is predicted to score 82 points. A bare number is incomplete, and leaving out the word predicted suggests the value is certain.

Part 4 done

Quick check

One question on the part you just read

Easy

A model predicts a runner’s 5 km race time from weekly training distance. Identify the explanatory variable.
Show answer and explanation

Answer: A · Worked explanation

The explanatory variable is the one used to make the prediction, here weekly training distance. Race time is the response variable because it is what the model predicts. The predicted race time is the output of the equation, so it is not the explanatory variable either.
5

Part 5 of 5: Predictions outside the data range are unreliable

A line extends forever, but the pattern in the data may not. Predicting for an xxx value inside the range of the data is interpolation. Predicting beyond that range is extrapolation.

The quiz model came from students who studied 1 to 8 hours. For 20 hours, it gives 55+4.5(20)=14555+4.5(20)=14555+4.5(20)=145 points. That is impossible on a quiz scored out of 100.

Extrapolation fails because the relationship may change outside the observed range. The data give no evidence about what happens there.

Exam tip

When asked whether a prediction is reasonable, check whether xxx lies inside the data range. Name extrapolation if it does not.

Key terms · tap one for its definition

interpolation

Interpolation is predicting the response for an xxx value that lies within the range of the observed data.

extrapolation

Extrapolation is predicting the response for an xxx value outside the range of the observed data, which is unreliable.

Note read

Check your recall[13 marks]

6 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.Identify[1 mark]

    A model for the resale price of a car, in dollars, from its age in years is y^=21,000−1,500x\hat{y}=21{,}000-1{,}500xy^​=21,000−1,500x. Identify the explanatory variable.

    Show mark schemeHide mark scheme

    Model answer

    The explanatory variable is the age of the car, in years.

    • 1 mark for identifying the age of the car (in years) as the explanatory variable
  2. 2.Describe[2 marks]

    Describe the meaning of the slope in the car model y^=21,000−1,500x\hat{y}=21{,}000-1{,}500xy^​=21,000−1,500x, in context.

    Show mark schemeHide mark scheme

    Model answer

    For each additional year of age, the predicted resale price decreases by 1,500 dollars.

    • 1 mark for stating that the predicted price changes by 1,500 dollars (a decrease) for each additional year of age
    • 1 mark for using the word predicted and giving units and context
  3. 3.Describe[2 marks]

    Describe the meaning of the y-intercept, 21,000, in the car model, in context.

    Show mark schemeHide mark scheme

    Model answer

    A car of age 0 years is predicted to have a resale price of 21,000 dollars.

    • 1 mark for stating that the intercept is the predicted price when age is 0 years
    • 1 mark for giving the value 21,000 dollars in context
  4. 4.Calculate[2 marks]

    Calculate the predicted resale price of a 4-year-old car using y^=21,000−1,500x\hat{y}=21{,}000-1{,}500xy^​=21,000−1,500x.

    Show mark schemeHide mark scheme

    Model answer

    y^=21,000−1,500(4)=21,000−6,000=15,000\hat{y}=21{,}000-1{,}500(4)=21{,}000-6{,}000=15{,}000y^​=21,000−1,500(4)=21,000−6,000=15,000 dollars.

    • 1 mark for substituting x=4x=4x=4 into the equation
    • 1 mark for obtaining 15,000 dollars with units
  5. 5.Justify[4 marks]

    The car data came from cars aged 1 to 9 years. Justify why the model should not be used to predict the price of a 20-year-old car.

    Show mark schemeHide mark scheme

    Model answer

    The model gives 21,000−1,500(20)=−9,00021{,}000-1{,}500(20)=-9{,}00021,000−1,500(20)=−9,000 dollars, which is impossible for a price. An age of 20 years lies outside the data range, so the prediction is extrapolation. The relationship may change outside the observed range, so the line gives no evidence there.

    • 1 mark for calculating a predicted value of −9,000-9{,}000−9,000 dollars
    • 1 mark for noting that a negative price is impossible
    • 1 mark for stating that 20 years is outside the range of the data (extrapolation)
    • 1 mark for explaining that the pattern may not continue beyond the observed range
  6. 6.Explain[2 marks]

    Explain why the actual price of a particular 4-year-old car usually differs from the predicted price.

    Show mark schemeHide mark scheme

    Model answer

    The model gives a predicted value that follows the overall trend. Individual cars scatter above and below the line, so an observed price rarely equals the prediction.

    • 1 mark for stating that the model gives a predicted value for the trend
    • 1 mark for explaining that individual observations scatter around the line

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy[1 mark]

What does y^\hat{y}y^​ represent in a regression equation?
Show answer and explanation

Answer: A · Worked explanation

The symbol y^\hat{y}y^​ stands for the value the model predicts for the response at a given xxx. An observed value is written yyy, and the two usually differ because points scatter around the line. The slope is bbb, not y^\hat{y}y^​.
4.

Medium·Calculate[2 marks]

A model is y^=12+3x\hat{y}=12+3xy^​=12+3x. Calculate the predicted value when x=5x=5x=5.
Show answer and explanation

Answer: A · Worked explanation

Substitute x=5x=5x=5: y^=12+3(5)=12+15=27\hat{y}=12+3(5)=12+15=27y^​=12+3(5)=12+15=27. The value 15 comes from using only the slope term and forgetting the intercept. The value 75 comes from adding 12 and 3 first and then multiplying by 5, which ignores the order of operations.
5.

Medium·Identify[2 marks]

A taxi fare model is y^=3.00+2.50x\hat{y}=3.00+2.50xy^​=3.00+2.50x, where xxx is distance in miles and y^\hat{y}y^​ is the predicted fare in dollars. Identify the correct interpretation of the slope.
Show answer and explanation

Answer: A · Worked explanation

The slope 2.50 is the predicted change in fare for each one-unit increase in distance, so each extra mile adds 2.50 dollars to the predicted fare. The claim of an exact change for every ride is wrong because the line gives predictions, not guaranteed values. The statement about 0 miles describes the intercept, which is 3.00.
6.

Medium·Identify[2 marks]

A taxi fare model is y^=3.00+2.50x\hat{y}=3.00+2.50xy^​=3.00+2.50x, where xxx is distance in miles and y^\hat{y}y^​ is the predicted fare in dollars. Identify the correct interpretation of the y-intercept.
Show answer and explanation

Answer: A · Worked explanation

The y-intercept is the predicted response when x=0x=0x=0. Here that is a fare of 3.00 dollars for a 0-mile ride. Saying the fare rises by 3.00 dollars per mile confuses the intercept with the slope, which is 2.50. The intercept does not give the mean fare of all rides.
7.

Medium·Calculate[2 marks]

A fuel model is y^=14−0.04x\hat{y}=14-0.04xy^​=14−0.04x, where xxx is miles driven since filling up and y^\hat{y}y^​ is the predicted gallons remaining. Calculate the predicted gallons remaining after 200 miles.
Show answer and explanation

Answer: A · Worked explanation

Substitute x=200x=200x=200: y^=14−0.04(200)=14−8=6\hat{y}=14-0.04(200)=14-8=6y^​=14−0.04(200)=14−8=6 gallons. The value 8 gallons is only the amount used, found from the slope term alone. The value 22 gallons comes from adding 8 to 14 instead of subtracting it, which ignores the negative slope.
8.

Hard·Justify[2 marks]

A model for children aged 3 to 10 years is y^=80+6x\hat{y}=80+6xy^​=80+6x, where xxx is age in years and y^\hat{y}y^​ is predicted height in centimeters. A student uses it to predict the height of a 40-year-old. Identify the best statement.
Show answer and explanation

Answer: A · Worked explanation

Substituting gives 80+6(40)=32080+6(40)=32080+6(40)=320 cm, far beyond any human height. Age 40 lies outside the observed range of 3 to 10 years, so this is extrapolation. A good fit inside the data range says nothing about outside it. The value 240 comes from leaving out the intercept.
9.

Hard·Determine[2 marks]

A model is y^=25+1.8x\hat{y}=25+1.8xy^​=25+1.8x. Determine the value of xxx for which the predicted value is 61.
Show answer and explanation

Answer: A · Worked explanation

Set 25+1.8x=6125+1.8x=6125+1.8x=61. Subtract 25 to get 1.8x=361.8x=361.8x=36, then divide by 1.8 to get x=20x=20x=20. The value 33.9 divides 61 by 1.8 without removing the intercept first. The value 134.8 substitutes 61 for xxx instead of for y^\hat{y}y^​. Check the answer by substituting: 25+1.8(20)=6125+1.8(20)=6125+1.8(20)=61.
10.

Hard·Explain[2 marks]

A model predicts a store’s weekly sales from advertising spending, both in thousands of dollars, and has slope 2.0. A student claims that spending 1 more thousand dollars will raise this store’s sales by exactly 2.0 thousand dollars. Identify the flaw in the claim.
Show answer and explanation

Answer: A · Worked explanation

The slope describes the predicted change in the response for a one-unit increase in xxx, so actual outcomes vary around it. The reversed reading puts spending as the response, which swaps the variables and is wrong. The slope applies across the data range, not only at zero.

Keep going

Next topic5.4 ResidualsPrevious topic5.2 Correlation

More in Unit 5 · Regression Analysis

  1. 5.1ScatterplotsNotes · 10 questions
  2. 5.2CorrelationNotes · 10 questions
  3. 5.3Linear regression modelsNotes · 10 questions
  4. 5.4ResidualsNotes · 10 questions
  5. 5.5Least-squares regressionNotes · 10 questions

All AP Statistics topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/5 read

  1. 1A linear regression model predicts a response from an explanatory value
  2. 2The equation of the line has an intercept and a slope
  3. 3Slope and intercept must be interpreted in context
  4. 4Substituting an x value gives a prediction
  5. 5Predictions outside the data range are unreliable
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe

Quiz scores and the model line

Quiz score (points)02468405060708090100Study time (hours per week)
  • Model line