AP Math Revision › AP Statistics › Unit 5
AP Statistics Unit 5: Regression Analysis
Describing the relationship between two quantitative variables with scatterplots and correlation, fitting and interpreting a least-squares regression line, using residuals and residual plots to judge a linear model, and interpreting $r^2$ and s. (Inference for the slope is not part of the course that starts in fall 2026.)
Key formulas and facts
- Describe a scatterplot by direction, form, strength and unusual features, in context
- Correlation: $r=\dfrac{1}{n-1}\sum\left(\dfrac{x_i-\bar x}{s_x}\right)\left(\dfrac{y_i-\bar y}{s_y}\right)$, with $-1\le r\le1$ and no units
- Least-squares line $\hat y=a+bx$ with $b=r\dfrac{s_y}{s_x}$ and $a=\bar y-b\bar x$ (the line passes through $(\bar x,\bar y)$)
- Residual $=y-\hat y$ (actual minus predicted)
- $r^2$: the proportion of the variation in y accounted for by the linear model with x
- $s=\sqrt{\dfrac{\sum(y_i-\hat y_i)^2}{n-2}}$: the typical size of a residual
Worked examples
- Slope from summaries: $r=0.75$, $s_x=4$, $s_y=10$, $\bar x=20$, $\bar y=65$ give $b=0.75\cdot\frac{10}{4}=1.875$ and $a=65-1.875(20)=27.5$, so $\hat y=27.5+1.875x$.
- Prediction and residual: with $\hat y=27.5+1.875x$, at $x=24$ the prediction is $72.5$; an actual value of 70 has residual $70-72.5=-2.5$.
- From data: for x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 4, 5, technology gives $\hat y=2.2+0.6x$, $r\approx0.775$ and $r^2=0.6$.
- Sign of r from $r^2$: if $r^2=0.49$ and the slope is negative, $r=-0.7$.
- Units: converting x from inches to centimeters divides the slope by 2.54 but leaves r unchanged.
Common traps
- Interpreting the slope without the word "predicted" (or "on average"): individual y-values vary around the line.
- Computing a residual as predicted minus actual: it is actual minus predicted.
- Using r to judge whether a linear model is appropriate: always look at the residual plot for curvature.
- Concluding causation from a strong correlation in observational data.
- Extrapolating far beyond the observed x-values.
- Forgetting that r has the same sign as the slope when taking a square root of $r^2$.
- Reading $r^2$ as the percent of predictions that are correct: it is the proportion of the variation in y accounted for by the line.
Practice questions
40 multiple-choice questions (4 options each, as on the new exam) and 2 free-response questions worth 10 points each. A calculator is allowed throughout. Try each one before opening the answer. Each line of a scoring guide is one point, scored 0 or 1 and earned independently of the other lines, the style of the new course's 10-point free-response scoring (no E/P/I part scores). A free account opens the worked answers and scoring guides of 20 questions a day; Pro opens every one.
Topic 5.1: Scatterplots
8 multiple-choice questions.
Question 1 · Multiple choice
CED 5.1ScatterplotsCalculator allowedThe scatterplot shows the hours 8 students studied and their quiz scores. Which describes the direction of the association?
- There is no association.
- Negative: students who studied more tended to score lower.
- Positive: students who studied more tended to score higher.
- Positive, because all the scores are above 60.
Question 2 · Multiple choice
CED 5.1ScatterplotsCalculator allowedUsing the same scatterplot of hours studied and quiz score, how strong is the linear association?
- Moderate
- Strong
- Weak
- There is no linear association
Question 3 · Multiple choice
CED 5.1ScatterplotsCalculator allowedThe scatterplot shows weekly screen time and average nightly sleep for 8 teens. Which describes the association?
- Positive and strong
- Negative and moderate
- Negative and very strong (almost a perfect line)
- No association
Question 4 · Multiple choice
CED 5.1ScatterplotsCalculator allowedA study looks at whether the number of hours a store is open each week helps predict its weekly sales. Which variable is the explanatory variable?
- Weekly sales
- The store's location
- The number of hours the store is open each week
- Both variables are response variables
Question 5 · Multiple choice
CED 5.1ScatterplotsCalculator allowedA scatterplot of the speed of a car (mph) and its fuel efficiency (mpg) rises to a peak near 50 mph and then falls. What is the best description of its form?
- Curved (nonlinear)
- No association, because r is near 0
- Linear and positive
- Linear and negative
Question 6 · Multiple choice
CED 5.1ScatterplotsCalculator allowedWhich point in the scatterplot is an outlier in the regression sense (far from the pattern of the other points)?
- (5, 13.0)
- (1, 3.1)
- (8, 9.8)
- (4, 5.8)
Question 7 · Multiple choice
CED 5.1ScatterplotsCalculator allowedA scatterplot of the number of firefighters at a fire and the damage in dollars shows a strong positive association. What is the best explanation?
- Sending more firefighters causes more damage.
- The association must be due to chance.
- A lurking variable, the size of the fire, affects both the number of firefighters and the damage.
- Damage causes more firefighters to be born.
Question 8 · Multiple choice
CED 5.1ScatterplotsCalculator allowedThe scatterplot shows the ages and prices of 8 used cars of the same model. Which describes the association?
- Weak and negative
- Moderate and positive
- Strong, negative and linear
- Strong, positive and linear
Topic 5.2: Correlation
8 multiple-choice questions.
Question 9 · Multiple choice
CED 5.2CorrelationCalculator allowedCalculate the correlation r for the hours-studied data: hours 2, 3, 4, 5, 6, 7, 8, 9 and scores 61, 64, 70, 69, 76, 80, 79, 86.
| Hours studied | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|
| Quiz score | 61 | 64 | 70 | 69 | 76 | 80 | 79 | 86 |
- -0.978
- 0.500
- 0.956
- 0.978
Question 10 · Multiple choice
CED 5.2CorrelationCalculator allowedA least-squares regression of y on x has $r^2=0.64$ and a negative slope. What is the correlation r?
- -0.80
- -0.64
- -0.41
- 0.80
Question 11 · Multiple choice
CED 5.2CorrelationCalculator allowedThe correlation between height (inches) and weight (pounds) for a group of adults is 0.72. What is the correlation if heights are converted to centimeters and weights to kilograms?
- 0.72 × 2.54
- 0.72
- It cannot be found without the data.
- 0.72 ÷ 2.2
Question 12 · Multiple choice
CED 5.2CorrelationCalculator allowedWhich statement about the correlation coefficient r is correct?
- r measures the strength and direction of a linear association only.
- r = 0 means there is no association of any kind.
- r = 0.9 means 90% of the points are on the line.
- A strong correlation shows that x causes y.
Question 13 · Multiple choice
CED 5.2CorrelationCalculator allowedCalculate r for the car data: ages 1-8 years and prices 27.5, 24.0, 21.8, 19.0, 17.2, 14.1, 12.5, 10.0 (thousand dollars).
| Age (years) | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Price ($1000s) | 27.5 | 24.0 | 21.8 | 19.0 | 17.2 | 14.1 | 12.5 | 10.0 |
- -0.997
- -0.500
- 0.995
- 0.996
Question 14 · Multiple choice
CED 5.2CorrelationCalculator allowedRemoving an outlier that lies far from the linear pattern of the other points will most likely do what to r?
- Move r closer to 0
- Change the sign of r
- Move r farther from 0 (make the linear association stronger)
- Leave r unchanged
Question 15 · Multiple choice
CED 5.2CorrelationCalculator allowedFor the screen-time data (screen time 12, 18, 25, 31, 36, 44, 50, 57 hours; sleep 7.6, 7.9, 7.2, 7.8, 7.0, 7.5, 7.3, 6.9 hours), what is r?
| Screen time (h/week) | 12 | 18 | 25 | 31 | 36 | 44 | 50 | 57 |
|---|---|---|---|---|---|---|---|---|
| Sleep (h/night) | 7.6 | 7.9 | 7.2 | 7.8 | 7.0 | 7.5 | 7.3 | 6.9 |
- -0.950
- -0.621
- -0.386
- 0.621
Question 16 · Multiple choice
CED 5.2CorrelationCalculator allowedA city finds r = 0.85 between ice cream sales and swimming-pool injuries over 52 weeks. Which conclusion is appropriate?
- Ice cream causes pool injuries.
- There is no association because the variables are unrelated.
- There is a strong positive association, likely because hot weather increases both.
- 85% of injuries are caused by ice cream.
Topic 5.3: Linear regression models
8 multiple-choice questions.
Question 17 · Multiple choice
CED 5.3Linear regression modelsCalculator allowedA regression of the price of a used car (in thousands of dollars) on its mileage (in thousands of miles) gives $\widehat{\text{price}}=24.6-0.118(\text{mileage})$. What price does the model predict for a car with 60 thousand miles?
- 7.08
- 17.52
- 24.60
- 31.68
Question 18 · Multiple choice
CED 5.3Linear regression modelsCalculator allowedFor $\widehat{\text{price}}=24.6-0.118(\text{mileage})$ (price in \$1000s, mileage in 1000s of miles), what is the correct interpretation of the slope?
- For each additional 1,000 miles, the price decreases by exactly \$118.
- A car with no miles costs \$24,600.
- For each additional 1,000 miles, the predicted price decreases by about \$118.
- For each \$1,000 increase in price, mileage decreases by 118 miles.
Question 19 · Multiple choice
CED 5.3Linear regression modelsCalculator allowedUsing $\widehat{\text{price}}=24.6-0.118(\text{mileage})$, by how much does the predicted price change when mileage increases by 25 thousand miles? (Answer in thousands of dollars.)
- -21.65
- -2.95
- -0.12
- 2.95
Question 20 · Multiple choice
CED 5.3Linear regression modelsCalculator allowedThe car model was fit to cars with 10 to 90 thousand miles. Why is predicting the price of a car with 250 thousand miles risky?
- The residual would be zero.
- Prices cannot be predicted from mileage.
- It is extrapolation: the linear pattern may not continue far outside the observed mileages.
- The slope would become positive.
Question 21 · Multiple choice
CED 5.3Linear regression modelsCalculator allowedA regression of a plant's height (cm) on days since planting gives $\hat y=3.2+0.85x$. What height does it predict at 20 days?
- 4.0
- 17.0
- 20.2
- 64.0
Question 22 · Multiple choice
CED 5.3Linear regression modelsCalculator allowedIn $\hat y=3.2+0.85x$ (height in cm, x = days since planting), what does the y-intercept 3.2 mean, and is it meaningful?
- The intercept is the correlation between the variables.
- The plant's height can never be below 3.2 cm.
- Each day the plant grows 3.2 cm.
- The predicted height at planting (day 0) is 3.2 cm; this is meaningful only if day 0 is within or near the range of the data.
Question 23 · Multiple choice
CED 5.3Linear regression modelsCalculator allowedA vendor recorded the noon temperature and cold drinks sold on 9 days (table). Using the least-squares line, how many drinks does the model predict on a 28°C day?
| Temperature (°C) | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 |
|---|---|---|---|---|---|---|---|---|---|
| Drinks sold | 210 | 260 | 300 | 355 | 390 | 450 | 480 | 540 | 575 |
- 322.0
- 349.6
- 377.2
- 395.6
Question 24 · Multiple choice
CED 5.3Linear regression modelsCalculator allowedWhy is the predicted value written $\hat y$ rather than y?
- It is always larger than y.
- It is the residual.
- It is the mean of the x-values.
- It is an estimate of the response from the model, not an actual observed value.
Topic 5.4: Residuals and residual plots
8 multiple-choice questions.
Question 25 · Multiple choice
CED 5.4Residuals and residual plotsCalculator allowedUsing $\widehat{\text{price}}=24.6-0.118(\text{mileage})$, a car with 60 thousand miles sold for \$19,200 (19.2 thousand). What is its residual (in thousands of dollars)?
- -1.68
- 1.68
- 5.40
- 17.52
Question 26 · Multiple choice
CED 5.4Residuals and residual plotsCalculator allowedFor $\hat y=3.2+0.85x$, a plant at x = 30 days has a residual of −1.4 cm. What was its actual height?
- 25.5
- 27.3
- 28.7
- 30.1
Question 27 · Multiple choice
CED 5.4Residuals and residual plotsCalculator allowedThe residual plot for a least-squares line is shown. Is a linear model appropriate?
- Yes: the residuals add to about 0.
- No: the residuals form a curved (U-shaped) pattern, so a linear model is not appropriate.
- No: some residuals are negative.
- Yes: the residuals are small.
Question 28 · Multiple choice
CED 5.4Residuals and residual plotsCalculator allowedThe residual plot for a least-squares line is shown. What does it suggest?
- The model is curved.
- The correlation must be 0.
- The residuals show a fan shape, so the spread increases with x.
- The linear model is appropriate: the residuals are randomly scattered around 0 with no pattern.
Question 29 · Multiple choice
CED 5.4Residuals and residual plotsCalculator allowedFor the temperature and drinks data, what is the residual for the 35°C day (450 drinks sold), using the least-squares line?
| Temperature (°C) | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 |
|---|---|---|---|---|---|---|---|---|---|
| Drinks sold | 210 | 260 | 300 | 355 | 390 | 450 | 480 | 540 | 575 |
- -8.5
- 0.0
- 8.5
- 128.6
Question 30 · Multiple choice
CED 5.4Residuals and residual plotsCalculator allowedWhat does a negative residual mean?
- The actual value is below the value predicted by the regression line.
- The point lies above the regression line.
- The prediction was too low.
- The slope is negative.
Question 31 · Multiple choice
CED 5.4Residuals and residual plotsCalculator allowedA residual plot shows residuals that are small for small x and become much larger in size for large x (a fan shape). What does this tell you?
- The model is perfect.
- r must be negative.
- Predictions are less precise for large x; the variability of y around the line increases with x.
- The model is curved.
Question 32 · Multiple choice
CED 5.4Residuals and residual plotsCalculator allowedFor the car data (ages 1-8; prices 27.5, 24.0, 21.8, 19.0, 17.2, 14.1, 12.5, 10.0 thousand dollars), what is the residual for the 4-year-old car?
| Age (years) | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Price ($1000s) | 27.5 | 24.0 | 21.8 | 19.0 | 17.2 | 14.1 | 12.5 | 10.0 |
- -0.75
- -0.48
- 0.30
- 19.00
Topic 5.5: Least-squares regression
8 multiple-choice questions.
Question 33 · Multiple choice
CED 5.5Least-squares regressionCalculator allowedFor a set of students, the correlation between hours of sleep (x) and reaction time in ms (y) is r = −0.6. The standard deviations are $s_x=1.2$ hours and $s_y=40$ ms. What is the slope of the least-squares line?
- -33.33
- -20.00
- -0.02
- 20.00
Question 34 · Multiple choice
CED 5.5Least-squares regressionCalculator allowedUsing the same summary (r = −0.6, $s_x=1.2$, $s_y=40$) with $\bar x=7$ hours and $\bar y=320$ ms, what is the y-intercept of the least-squares line?
- 180
- 300
- 320
- 460
Question 35 · Multiple choice
CED 5.5Least-squares regressionCalculator allowedUsing the temperature and drinks data (table), what is the slope of the least-squares regression line?
| Temperature (°C) | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 |
|---|---|---|---|---|---|---|---|---|---|
| Drinks sold | 210 | 260 | 300 | 355 | 390 | 450 | 480 | 540 | 575 |
- 0.109
- 0.999
- 8.265
- 9.183
Question 36 · Multiple choice
CED 5.5Least-squares regressionCalculator allowedUsing the temperature and drinks data, what is $r^2$?
| Temperature (°C) | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 |
|---|---|---|---|---|---|---|---|---|---|
| Drinks sold | 210 | 260 | 300 | 355 | 390 | 450 | 480 | 540 | 575 |
- 0.9000
- 0.9500
- 0.9979
- 0.9989
Question 37 · Multiple choice
CED 5.5Least-squares regressionCalculator allowedA regression of drinks sold on temperature has $r^2=0.998$. Which interpretation is correct?
- About 99.8% of the variability in drinks sold is accounted for by the least-squares line with temperature.
- The slope is 0.998.
- Temperature causes 99.8% of drink sales.
- 99.8% of the predictions are exactly correct.
Question 38 · Multiple choice
CED 5.5Least-squares regressionCalculator allowedFor the hours-studied data (table), what is the standard deviation of the residuals, s?
| Hours studied | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|
| Quiz score | 61 | 64 | 70 | 69 | 76 | 80 | 79 | 86 |
- 0.978
- 1.680
- 1.940
- 8.430
Question 39 · Multiple choice
CED 5.5Least-squares regressionCalculator allowedThe hours-studied regression has s ≈ 1.94 points. What does s mean?
- Scores vary by exactly 1.94 points.
- Each extra hour of study raises the predicted score by 1.94 points.
- Actual quiz scores typically differ from the scores predicted by the line by about 1.94 points.
- The correlation is 1.94.
Question 40 · Multiple choice
CED 5.5Least-squares regressionCalculator allowedFor the hours-studied data, what is the y-intercept of the least-squares line?
| Hours studied | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|
| Quiz score | 61 | 64 | 70 | 69 | 76 | 80 | 79 | 86 |
- 3.42
- 54.33
- 59.33
- 73.12
Free response
Write a complete answer, in context, as you would type it on the exam. The scoring guides are ours, written in the new course's style: 10 points per question, each point scored 0 or 1 and earned independently (no E/P/I part scores). They are not College Board scoring guidelines.
Question 41 · Free response (10 points)
CED 5.3, 5.5, 5.4, 5.2Linear regression modelsCalculator allowedA piano teacher recorded, for a random sample of 20 of her students, the hours of practice in the week before a recital and the student's recital score (0 to 100). Computer output for the least-squares regression of score on practice hours is shown.
| Predictor | Coef |
|---|---|
| Constant | 41.82 |
| Practice hours | 2.374 |
| S = 4.913 | R-sq = 77.4% |
- (a) Write the equation of the least-squares regression line, defining any variables. [1 point]
- (b) Interpret the slope in context. [2 points]
- (c) A student practiced 12 hours and scored 66. Find and interpret her residual. [3 points]
- (d) Find the correlation between practice hours and score. [2 points]
- (e) Interpret $r^2$ and s in context. [2 points]
Question 42 · Free response (10 points)
CED 5.5, 5.1, 5.4Least-squares regressionCalculator allowedA coffee shop recorded the number of baristas working (x) and the number of drinks served in a 15-minute rush (y) on 8 randomly chosen mornings (table).
| Baristas | 2 | 4 | 5 | 7 | 8 | 10 | 11 | 13 |
|---|---|---|---|---|---|---|---|---|
| Drinks served | 15 | 19 | 22 | 24 | 28 | 31 | 33 | 37 |
- (a) Describe the association between baristas working and drinks served. [2 points]
- (b) Find the least-squares regression line and the correlation. [3 points]
- (c) Use the line to predict drinks served with 9 baristas, and explain whether a prediction for 25 baristas would be reliable. [2 points]
- (d) On the morning with 7 baristas, 24 drinks were served. Find the residual for that morning and interpret it in context. [3 points]
Unit done? Sit a full AP Statistics practice exam. Taking the SAT too? SAT Math: Algebra uses this unit.