Correlation and residual plot practice problems

By Jude Wallis · Published

These 8 problems build one workflow: interpret r and r-squared in context, compute a residual as observed minus predicted, judge a fit from its residual plot, and trace how a single influential point moves the slope and the correlation. Work each one before opening the steps.

AP Statistics: Unit 5 (topics 5.2 Correlation, 5.3 Linear Regression Models, 5.4 Residuals, 5.5 Least-Squares Regression). This set sits in Unit 5 of the Fall 2026 AP Statistics course, covering correlation (5.2), linear regression models (5.3), residuals (5.4), and least-squares regression (5.5), where the exam asks you to fit a line or read one off output, interpret r and r-squared in context, compute residuals, and judge a model from its residual plot rather than run any test.

What these 8 problems build

Most problems here start from a fitted line, either handed to you or built from a small set of points, and then ask what the numbers mean. Five skills repeat across the set.

  • **Interpret rr.** The correlation rr measures the direction and strength of a linear association and always lands between 1-1 and 11. It carries no units, so rescaling either variable leaves it alone.
  • **Interpret r2r^2.** The coefficient of determination r2r^2 is the fraction of the variation in yy that the linear relationship with xx explains. Square rr to get it, and take a square root plus the sign of the slope to go back.
  • Compute residuals. A residual is observed minus predicted, yy^y - \hat{y}, where y^\hat{y} (read "y-hat") is the value the line predicts. A positive residual puts the point above the line, meaning the model underpredicted; a negative residual puts it below, meaning the model overpredicted.
  • Read a residual plot. Plot the residuals against xx. Scattered with no pattern means a line is a reasonable model. A curve or U says the form is wrong. A widening fan says the form may be fine but the spread is not constant.
  • Trace an influential point. Take one unusual point out, or put one in, and watch the slope, the intercept, and rr move.

Unit 5 of the Fall 2026 course stops at describing a relationship, so nothing in this set is a hypothesis test: there are no hypotheses to write, no conditions to check, and no p-value to bound off a t-table. Most answers are a computed number plus a sentence naming the variables in context. Residuals and slopes carry units; rr and r2r^2 do not. For the fitting method itself, read least-squares regression line; for the two statistics side by side, read r vs r-squared. More sets are on the practice page.

Formulas and two facts to carry in

From summary statistics, and from raw pairs:

b=rsysx,a=yˉbxˉ,residual=yy^b = r \cdot \frac{s_y}{s_x}, \qquad a = \bar{y} - b\bar{x}, \qquad \text{residual} = y - \hat{y}
b=(xxˉ)(yyˉ)(xxˉ)2,r=(xxˉ)(yyˉ)(xxˉ)2(yyˉ)2b = \frac{\sum (x - \bar{x})(y - \bar{y})}{\sum (x - \bar{x})^2}, \qquad r = \frac{\sum (x - \bar{x})(y - \bar{y})}{\sqrt{\sum (x - \bar{x})^2 \cdot \sum (y - \bar{y})^2}}

Two facts save time on almost every problem below.

  1. The least-squares line always passes through (xˉ,yˉ)(\bar{x}, \bar{y}), and the residuals of the fitted points always add to exactly 00. A set of residuals that fails to sum to zero means an arithmetic slip, not a bad model.
  2. You can get r2r^2 straight from the residuals as r2=1SSESSTr^2 = 1 - \frac{\text{SSE}}{\text{SST}}, where SSE is the sum of the squared residuals and SST is (yyˉ)2\sum (y - \bar{y})^2. Problem 5 computes the same number both ways as a check. For why the squares and not the absolute values, see why square the residuals.

Outlier, leverage, influence

Problems 6 through 8 turn on three terms the exam keeps separate.

  • An outlier in regression has a large residual: it sits far from the line in the yy direction.
  • A point has high leverage when its xx value is far from xˉ\bar{x}. Leverage is about xx alone and says nothing about whether the point follows the pattern.
  • A point is influential when removing it noticeably changes the slope, the intercept, or rr. High leverage combined with a residual that does not match the trend is what usually produces it.

A point with a wild yy value sitting at the middle of the xx range barely touches the slope, because a deviation of 00 in xx contributes 00 to the top of the slope formula. A miss out at the edge of the xx range pulls much harder, and a large one there can flatten the line to nothing. Problems 6 and 7 are that contrast, run on the same underlying five points. Drag a point around in the influential point explorer to see it move, and check any line you build against the regression calculator.

Frequently asked questions

Does a high r-squared mean a line is the right model?

No. r2r^2 reports how much of the variation in yy the line removes, and a strongly curved relationship can still leave a line with a high r2r^2. Problem 5 has r2=0.947r^2 = 0.947 and a residual plot with an unmistakable U. The residual plot, not r2r^2, decides whether the linear form fits. Worked through in how to interpret residual plots.

What is the difference between an outlier and an influential point?

An outlier has a large residual and sits far from the line vertically. An influential point is one whose removal noticeably changes the slope, the intercept, or rr. They are not the same thing. Problem 6 has a huge outlier that leaves the slope at exactly 3, because its xx value equals xˉ\bar{x}. Problem 7 has a point whose yy value of 8 cm is unremarkable on its own, but whose extreme xx flattens the slope from 3 to 0.

Why do the residuals always add to zero?

Least squares picks the line that minimises the sum of the squared residuals, and one consequence is that the line passes through (xˉ,yˉ)(\bar{x}, \bar{y}) and leaves residuals summing to exactly 00. So the sum is not evidence that a line fits well; it is only a check on your arithmetic. To judge the fit, look at the pattern of the residuals plotted against xx.

Does changing the units change r or the residuals?

rr has no units and does not change. Converting centimetres to inches, or a test score to a percentage, leaves rr and r2r^2 exactly where they were, because rr is built from standardized values. Residuals do change, since they are measured in the units of yy: a residual of 22 cm becomes about 0.790.79 inch. More on this in does changing units change r.

Problem 1

A district compares its 40 elementary schools and finds a correlation of r=0.6r = 0.6 between the average number of minutes students read at home each day, xx, and the school's average reading score, yy. (a) Interpret rr in context. (b) Find r2r^2 and interpret it in context. (c) A parent writes that 60 percent of the variation in reading scores is explained by home reading time. Explain what is wrong with that sentence. (d) The district is considering recording reading time in hours instead of minutes. What would that do to rr and to r2r^2?

Show the worked solution
  1. (a) Read the sign, then the strength. r=0.6r = 0.6 is positive and moderately strong, so schools where students read more minutes at home tend to have higher average reading scores, and the association is roughly linear.

  2. (b) Square the correlation. r2=(0.6)2=0.36r^2 = (0.6)^2 = 0.36.

  3. (b) Put it in context with the right noun. About 36 percent of the variation in the schools' average reading scores is explained by the linear relationship with average daily home reading minutes. The remaining 64 percent is not.

  4. (c) Name the mix-up. The parent used rr where r2r^2 belongs. The value 0.60.6 is the correlation, which is not a proportion of anything; the proportion of variation explained is r2=0.36r^2 = 0.36, so the figure in that sentence should be 36 percent.

  5. (c) Flag the second problem with the sentence. These are 40 school averages from an observational comparison, so even the corrected 36 percent describes explained variation, not cause. Nothing here shows that adding home reading minutes would raise a school's score.

  6. (d) Ask what rescaling does to a correlation. Dividing every reading time by 60 changes the units of xx and nothing else. Correlation is built from standardized values, and standardizing subtracts the mean and divides by the standard deviation, which cancels the units out entirely. So rr stays at 0.60.6 and r2r^2 stays at 0.360.36.

  7. (d) Name what would change. The slope of a fitted line would change, from a per-minute rate to a per-hour rate 60 times larger, and residuals would still be measured in score points. The correlation and the proportion of variation explained do not move, which is why rr is safe to quote without saying what the units were.

(a) A moderately strong positive linear association: schools with more home reading minutes tend to have higher average scores. (b) r2=0.36r^2 = 0.36, so about 36 percent of the variation in average reading score is explained by the linear relationship with home reading minutes. (c) The parent reported rr instead of r2r^2; the correct figure is 36 percent, and it still describes explained variation, not cause. (d) Neither moves: rr stays 0.60.6 and r2r^2 stays 0.360.36, because rr is built from standardized values and carries no units.

Problem 2

A moving company predicts a job's labour time in hours, y^\hat{y}, from the number of rooms in the home, xx, using the least-squares line y^=1.5+0.75x\hat{y} = 1.5 + 0.75x. (a) A 6-room job actually took 7 hours. Find the residual and say what its sign means. (b) A 4-room job had a residual of 0.5-0.5 hour. Find how long that job actually took. (c) One job had a predicted time of 6.75 hours. How many rooms did it have?

Show the worked solution
  1. (a) Find the predicted time at x=6x = 6. y^=1.5+0.75(6)=1.5+4.5=6\hat{y} = 1.5 + 0.75(6) = 1.5 + 4.5 = 6 hours.

  2. (a) Take observed minus predicted. residual=yy^=76=+1\text{residual} = y - \hat{y} = 7 - 6 = +1 hour.

  3. (a) Read the sign. The residual is positive, so this job sits above the line: it ran 1 hour longer than the line predicted, and the model underpredicted it.

  4. (b) Find the predicted time at x=4x = 4. y^=1.5+0.75(4)=1.5+3=4.5\hat{y} = 1.5 + 0.75(4) = 1.5 + 3 = 4.5 hours.

  5. (b) Rearrange the residual formula to observed equals predicted plus residual. y=y^+residual=4.5+(0.5)=4y = \hat{y} + \text{residual} = 4.5 + (-0.5) = 4 hours. The negative residual means the model overpredicted this job by half an hour.

  6. (c) Set the predicted value equal to 6.75 and solve for xx. 1.5+0.75x=6.751.5 + 0.75x = 6.75, so 0.75x=5.250.75x = 5.25 and x=5.250.75=7x = \frac{5.25}{0.75} = 7 rooms.

(a) Predicted 6 hours, so the residual is 76=+17 - 6 = +1 hour and the model underpredicted by 1 hour. (b) Predicted 4.5 hours, so the job took 4.5+(0.5)=44.5 + (-0.5) = 4 hours and the model overpredicted by 0.5 hour. (c) x=7x = 7 rooms.

Problem 3

A plant records the age in years of each packing machine, xx, and the units it produces per hour, yy, for five machines: (2,18)(2, 18), (4,11)(4, 11), (6,13)(6, 13), (8,9)(8, 9), (10,4)(10, 4). The least-squares line is y^=201.5x\hat{y} = 20 - 1.5x. (a) Compute all five residuals. (b) Show that they add to zero and explain why they had to. (c) Which machines did the model overpredict, and by how much? (d) Describe the residual plot and say whether a line is a reasonable model.

Show the worked solution
  1. (a) Predict at each age from y^=201.5x\hat{y} = 20 - 1.5x, then subtract predicted from observed.

    Age xxObserved yyPredicted y^\hat{y}Residual yy^y - \hat{y}
    21817+1+1
    411143-3
    61311+2+2
    898+1+1
    10451-1
  2. (a) Check one line of the table by hand. At x=4x = 4, y^=201.5(4)=206=14\hat{y} = 20 - 1.5(4) = 20 - 6 = 14, so the residual is 1114=311 - 14 = -3 units per hour.

  3. (b) Add them. 1+(3)+2+1+(1)=01 + (-3) + 2 + 1 + (-1) = 0. This is forced, not lucky: the least-squares line passes through (xˉ,yˉ)(\bar{x}, \bar{y}), and here xˉ=305=6\bar{x} = \frac{30}{5} = 6 and yˉ=555=11\bar{y} = \frac{55}{5} = 11, with 201.5(6)=1120 - 1.5(6) = 11. Any line through the point of averages leaves residuals summing to zero.

  4. (c) Pick out the negative residuals, since negative means predicted above observed. The 4-year-old machine has a residual of 3-3 and the 10-year-old machine a residual of 1-1, so the model overpredicted them by 3 and by 1 unit per hour.

  5. (d) Describe the plot. Against age, the residuals run +1,3,+2,+1,1+1, -3, +2, +1, -1: they scatter above and below zero with no curve, no U, and no widening fan, and their sizes do not grow with age. Nothing systematic is left over, so a line is a reasonable model for these machines, though five points is thin evidence for any verdict about form.

(a) Residuals +1,3,+2,+1,1+1, -3, +2, +1, -1 units per hour. (b) They sum to 00, which least squares forces because the line passes through (xˉ,yˉ)=(6,11)(\bar{x}, \bar{y}) = (6, 11). (c) The 4-year-old machine was overpredicted by 3 units per hour and the 10-year-old by 1. (d) The residuals scatter above and below zero with no curve or fan, so a line is a reasonable model, though five points is thin evidence.

Problem 4

A sleep researcher regresses nightly sleep in hours, yy, on evening screen time in hours, xx, for 120 teenagers. The fitted line has slope 0.45-0.45 and the output reports r2=0.5776r^2 = 0.5776. (a) Find rr and explain how you know its sign. (b) Interpret r2r^2 in context and say what the rest of the variation represents. (c) Interpret the slope in context. (d) The residual plot is a fan: residuals sit tightly around zero near x=0x = 0 and spread far above and below the zero line at large xx. What does that say about predicting the sleep of a teenager with 5 hours of evening screen time?

Show the worked solution
  1. (a) Take the square root, then borrow the sign from the slope. 0.5776=0.76\sqrt{0.5776} = 0.76, and the slope 0.45-0.45 is negative, so r=0.76r = -0.76. The square root alone cannot settle the sign, because rr and r-r have the same square; the slope and rr always share a sign.

  2. (b) Interpret r2r^2. About 57.8 percent of the variation in nightly sleep hours is explained by the linear relationship with evening screen time.

  3. (b) Account for the rest. 10.5776=0.42241 - 0.5776 = 0.4224, so about 42.2 percent of the variation in sleep is left unexplained by this line and comes from everything else, from school start times to individual differences in how much sleep a person needs.

  4. (c) Interpret the slope with units. For each additional hour of evening screen time, the model predicts about 0.45 fewer hours of sleep per night, which is roughly 27 minutes.

  5. (d) Read the fan. Widening spread means the size of a typical residual grows with xx, so the line's accuracy is not the same across the range. Near x=0x = 0 predictions land close to the truth; at x=5x = 5 hours the observed sleep can sit far above or far below the line, so a single predicted value there carries much more uncertainty than r2=0.5776r^2 = 0.5776 on its own suggests.

  6. (d) Say what the fan does not mean. A fan is not curvature. It does not say the association bends, so a straight line may still be the right shape; it says the scatter about that line is uneven, which is a separate defect from a wrong model form.

(a) r=0.76r = -0.76, negative because the slope is negative. (b) About 57.8 percent of the variation in nightly sleep is explained by the linear relationship with evening screen time; the other 42.2 percent is not. (c) Each extra hour of evening screen time predicts about 0.45 fewer hours of sleep, roughly 27 minutes. (d) The fan shows residual spread growing with xx, so a prediction at 5 hours is far less reliable than one near 0, whatever r2r^2 says.

Problem 5

A marine lab tracks an invasive algae patch. The weeks since it was first recorded, xx, and its area in square metres, yy, are (2,18)(2, 18), (4,22)(4, 22), (6,30)(6, 30), (8,42)(8, 42), (10,58)(10, 58). (a) Find the least-squares regression line. (b) Compute the five residuals. (c) Describe the residual plot. (d) The correlation is r=0.973r = 0.973, so r2=0.947r^2 = 0.947. Reconcile that with part (c) and say whether a line is the right model here.

Show the worked solution
  1. (a) Find the means. xˉ=2+4+6+8+105=305=6\bar{x} = \frac{2 + 4 + 6 + 8 + 10}{5} = \frac{30}{5} = 6 weeks and yˉ=18+22+30+42+585=1705=34\bar{y} = \frac{18 + 22 + 30 + 42 + 58}{5} = \frac{170}{5} = 34 square metres.

  2. (a) Find the deviations and the two sums. The xx deviations are 4,2,0,2,4-4, -2, 0, 2, 4 and the yy deviations are 16,12,4,8,24-16, -12, -4, 8, 24. Then (xxˉ)(yyˉ)=64+24+0+16+96=200\sum (x - \bar{x})(y - \bar{y}) = 64 + 24 + 0 + 16 + 96 = 200 and (xxˉ)2=16+4+0+4+16=40\sum (x - \bar{x})^2 = 16 + 4 + 0 + 4 + 16 = 40.

  3. (a) Compute the slope and intercept. b=20040=5b = \frac{200}{40} = 5 square metres per week and a=yˉbxˉ=345(6)=3430=4a = \bar{y} - b\bar{x} = 34 - 5(6) = 34 - 30 = 4, so the line is y^=4+5x\hat{y} = 4 + 5x.

  4. (b) Predict at each week and subtract.

    Week xxObserved yyPredicted y^=4+5x\hat{y} = 4 + 5xResidual yy^y - \hat{y}
    21814+4+4
    422242-2
    630344-4
    842442-2
    105854+4+4
  5. (b) Check the sum. 4+(2)+(4)+(2)+4=04 + (-2) + (-4) + (-2) + 4 = 0, as least squares requires.

  6. (c) Describe the residual plot. Plotted against week, the residuals go +4,2,4,2,+4+4, -2, -4, -2, +4: positive at both ends, negative through the middle. That is a clear U shape, a systematic pattern rather than random scatter, and it means the line underpredicts at both ends and overpredicts in the middle.

  7. (d) Reconcile the two. r2=0.947r^2 = 0.947 says the line removes about 94.7 percent of the variation in area, which sounds excellent, but r2r^2 only measures how much spread a line takes out; it cannot tell you whether some other shape would take out more. The residual plot is the test of form, and its U says the true relationship curves upward. A line is not the right model here: the patch is growing at an accelerating rate, which is what an invasive species usually does.

  8. (d) Confirm r2r^2 from the residuals as a check. SSE=42+(2)2+(4)2+(2)2+42=16+4+16+4+16=56\text{SSE} = 4^2 + (-2)^2 + (-4)^2 + (-2)^2 + 4^2 = 16 + 4 + 16 + 4 + 16 = 56 and SST=(yyˉ)2=256+144+16+64+576=1056\text{SST} = \sum (y - \bar{y})^2 = 256 + 144 + 16 + 64 + 576 = 1056, so r2=1561056=0.947r^2 = 1 - \frac{56}{1056} = 0.947, matching the value from squaring rr.

(a) y^=4+5x\hat{y} = 4 + 5x. (b) Residuals +4,2,4,2,+4+4, -2, -4, -2, +4 square metres. (c) A clear U shape: positive at both ends, negative through the middle. (d) A line is not the right model. r2=0.947r^2 = 0.947 measures how much variation the line removes, not whether the form is right, and the U-shaped residual plot shows the growth curves upward.

Problem 6

In a physics lab, five masses are hung from a spring and the spring's length is recorded. With xx the mass in kilograms and yy the length in centimetres, the readings are (1,5)(1, 5), (2,8)(2, 8), (3,11)(3, 11), (4,14)(4, 14), (5,17)(5, 17), which lie exactly on the line y^=2+3x\hat{y} = 2 + 3x with r=1r = 1. A sixth reading is taken at x=3x = 3 kg, but the student misreads the ruler and records a length of 2 cm. (a) Find the least-squares line for all six points. (b) What happened to the slope, and why? (c) Find rr and r2r^2 for all six points. (d) Is the bad reading an outlier, a high-leverage point, both, or neither?

Show the worked solution
  1. (a) Find the new means. xˉ=1+2+3+4+5+36=186=3\bar{x} = \frac{1 + 2 + 3 + 4 + 5 + 3}{6} = \frac{18}{6} = 3 kg, unchanged, because the new point sits exactly at the old mean of xx. yˉ=5+8+11+14+17+26=576=9.5\bar{y} = \frac{5 + 8 + 11 + 14 + 17 + 2}{6} = \frac{57}{6} = 9.5 cm, down from 11.

  2. (a) Find the deviations and sums. The xx deviations are 2,1,0,1,2,0-2, -1, 0, 1, 2, 0 and the yy deviations are 4.5,1.5,1.5,4.5,7.5,7.5-4.5, -1.5, 1.5, 4.5, 7.5, -7.5. Their products are 9,1.5,0,4.5,15,09, 1.5, 0, 4.5, 15, 0, so (xxˉ)(yyˉ)=30\sum (x - \bar{x})(y - \bar{y}) = 30, and (xxˉ)2=4+1+0+1+4+0=10\sum (x - \bar{x})^2 = 4 + 1 + 0 + 1 + 4 + 0 = 10.

  3. (a) Compute the line. b=3010=3b = \frac{30}{10} = 3 cm per kg and a=yˉbxˉ=9.53(3)=9.59=0.5a = \bar{y} - b\bar{x} = 9.5 - 3(3) = 9.5 - 9 = 0.5 cm, so the new line is y^=0.5+3x\hat{y} = 0.5 + 3x.

  4. (b) Compare the two lines. The slope is still exactly 3. The bad reading sits at x=xˉx = \bar{x}, so its xx deviation is 00 and its contribution to (xxˉ)(yyˉ)\sum (x - \bar{x})(y - \bar{y}) is 0×(7.5)=00 \times (-7.5) = 0, no matter how wrong its yy is. Sitting exactly at xˉ\bar{x} is the lowest-leverage position a point can occupy, and from there it cannot tilt the line. All it can do is pull the whole line down, which it did: the intercept fell from 2 cm to 0.5 cm.

  5. (c) Compute rr. (yyˉ)2=20.25+2.25+2.25+20.25+56.25+56.25=157.5\sum (y - \bar{y})^2 = 20.25 + 2.25 + 2.25 + 20.25 + 56.25 + 56.25 = 157.5, so r=3010×157.5=301575=3039.686=0.756r = \frac{30}{\sqrt{10 \times 157.5}} = \frac{30}{\sqrt{1575}} = \frac{30}{39.686} = 0.756.

  6. (c) Square it, working from the unrounded sums rather than from 0.7560.756. r2=30210×157.5=9001575=0.571r^2 = \frac{30^2}{10 \times 157.5} = \frac{900}{1575} = 0.571, down from 11. One misread ruler took the model from explaining all of the variation in length to explaining about 57 percent of it.

  7. (d) Classify the point. Its residual is 2[0.5+3(3)]=29.5=7.52 - [0.5 + 3(3)] = 2 - 9.5 = -7.5 cm, easily the largest in the set, so it is an outlier in the yy direction. Its xx value equals xˉ\bar{x}, the lowest-leverage position in the set, so it has no pull on the tilt of the line. It is influential for the intercept and for rr, and not influential for the slope.

(a) y^=0.5+3x\hat{y} = 0.5 + 3x. (b) The slope stays exactly 3, because a point at x=xˉx = \bar{x} sits in the lowest-leverage position in the set and cannot tilt the line; it only dragged the intercept from 2 cm down to 0.5 cm. (c) rr falls from 11 to about 0.7560.756 and r2r^2 from 11 to about 0.5710.571. (d) A large-residual outlier in the lowest-leverage position: influential for the intercept and rr, not for the slope.

Problem 7

A nursery gives six potted seedlings different weekly amounts of water and records the season's growth. With xx the water in litres per week and yy the growth in centimetres, the results are (1,5)(1, 5), (2,8)(2, 8), (3,11)(3, 11), (4,14)(4, 14), (5,17)(5, 17), (15,8)(15, 8). The sixth seedling was overwatered and its roots rotted. (a) Using only the first five seedlings, find the least-squares line and rr. (b) Find the least-squares line for all six. (c) Find rr and r2r^2 for all six. (d) Explain how one point produced that change, and say what you would report.

Show the worked solution
  1. (a) Work the first five. xˉ=155=3\bar{x} = \frac{15}{5} = 3 litres and yˉ=555=11\bar{y} = \frac{55}{5} = 11 cm. The xx deviations are 2,1,0,1,2-2, -1, 0, 1, 2 and the yy deviations are 6,3,0,3,6-6, -3, 0, 3, 6, so (xxˉ)(yyˉ)=12+3+0+3+12=30\sum (x - \bar{x})(y - \bar{y}) = 12 + 3 + 0 + 3 + 12 = 30, (xxˉ)2=10\sum (x - \bar{x})^2 = 10, and (yyˉ)2=36+9+0+9+36=90\sum (y - \bar{y})^2 = 36 + 9 + 0 + 9 + 36 = 90.

  2. (a) Finish part (a). b=3010=3b = \frac{30}{10} = 3 cm per litre and a=113(3)=2a = 11 - 3(3) = 2 cm, so y^=2+3x\hat{y} = 2 + 3x. The correlation is r=3010×90=3030=1r = \frac{30}{\sqrt{10 \times 90}} = \frac{30}{30} = 1: the five points lie exactly on that line.

  3. (b) Redo the means with all six. xˉ=1+2+3+4+5+156=306=5\bar{x} = \frac{1 + 2 + 3 + 4 + 5 + 15}{6} = \frac{30}{6} = 5 litres and yˉ=5+8+11+14+17+86=636=10.5\bar{y} = \frac{5 + 8 + 11 + 14 + 17 + 8}{6} = \frac{63}{6} = 10.5 cm.

  4. (b) Recompute the sums. The xx deviations are 4,3,2,1,0,10-4, -3, -2, -1, 0, 10 and the yy deviations are 5.5,2.5,0.5,3.5,6.5,2.5-5.5, -2.5, 0.5, 3.5, 6.5, -2.5. Their products are 22,7.5,1,3.5,0,2522, 7.5, -1, -3.5, 0, -25, which sum to (xxˉ)(yyˉ)=0\sum (x - \bar{x})(y - \bar{y}) = 0. Also (xxˉ)2=16+9+4+1+0+100=130\sum (x - \bar{x})^2 = 16 + 9 + 4 + 1 + 0 + 100 = 130.

  5. (b) Compute the line. b=0130=0b = \frac{0}{130} = 0 and a=yˉ0xˉ=10.5a = \bar{y} - 0 \cdot \bar{x} = 10.5, so the fitted line is y^=10.5\hat{y} = 10.5, a flat line at the mean growth.

  6. (c) Find rr. The numerator of rr is the same (xxˉ)(yyˉ)=0\sum (x - \bar{x})(y - \bar{y}) = 0, so r=0r = 0 and r2=0r^2 = 0, whatever the denominator is.

  7. (d) Explain the mechanism. The sixth seedling sits at x=15x = 15 litres while xˉ\bar{x} for the six is 5, so its xx deviation of +10+10 is as large as all five of the others put together, and squared it supplies 100 of the 130 in (xxˉ)2\sum (x - \bar{x})^2, against 30 from the other five combined. That is extreme leverage. Its growth of 8 cm is far below what the other five would predict there, so it drags the right end of the line down until the line is level. A perfect positive relationship, r=1r = 1, now reads as no linear relationship at all, r=0r = 0.

  8. (d) Say what you would report. Do not delete a point because it is inconvenient. Report both fits, state that the conclusion rests entirely on one seedling, and give the reason it differs: it was overwatered, so it arguably sits outside the range of watering the study is about. The honest write-up is that growth rises with water from 1 to 5 litres per week and that one overwatered plant at 15 litres flattens the fitted line completely, which is a reason to collect data between 5 and 15 litres rather than to drop a row.

(a) y^=2+3x\hat{y} = 2 + 3x with r=1r = 1. (b) With all six, (xxˉ)(yyˉ)=0\sum (x - \bar{x})(y - \bar{y}) = 0, so b=0b = 0 and the line is y^=10.5\hat{y} = 10.5. (c) r=0r = 0 and r2=0r^2 = 0. (d) The sixth seedling sits 10 litres from xˉ\bar{x} and supplies 100 of the 130 in (xxˉ)2\sum (x - \bar{x})^2, so its low growth flattens the line entirely. Report both fits and the reason for the point rather than deleting it.

Problem 8

A reviewer tests 18 laptops, fixing each screen at a set brightness and timing the battery. Across the machines the brightness settings ranged from 20 to 80 percent, and battery life is in hours. The regression output is below, together with R-Sq = 68.89 percent.

PredictorCoef
Constant12.4
Brightness0.06-0.06

(a) Write the least-squares regression line, defining your variables. (b) Interpret the slope in context. (c) Find rr. (d) One machine set to 50 percent brightness ran for 8.2 hours. Find and interpret its residual. (e) A nineteenth machine is tested at 100 percent brightness and runs for 9.0 hours. Without refitting, describe what adding it would do to the slope and to rr, and explain why.

Show the worked solution
  1. (a) Name the variables, then read the coefficients off the output. Let xx be the screen brightness in percent and y^\hat{y} the predicted battery life in hours. The Constant row is the intercept and the Brightness row is the slope, so y^=12.40.06x\hat{y} = 12.4 - 0.06x.

  2. (b) Interpret the slope with units. For each additional percentage point of brightness, the model predicts battery life falls by 0.06 hour. Scaled to something readable, 10 more percentage points of brightness predict 10×0.06=0.610 \times 0.06 = 0.6 hour, about 36 minutes, less battery life.

  3. (c) Get rr from R-Sq, then fix the sign. r=±0.6889=±0.83r = \pm\sqrt{0.6889} = \pm 0.83, and the slope is negative, so r=0.83r = -0.83.

  4. (d) Predict at x=50x = 50. y^=12.40.06(50)=12.43=9.4\hat{y} = 12.4 - 0.06(50) = 12.4 - 3 = 9.4 hours.

  5. (d) Take observed minus predicted and read the sign. residual=8.29.4=1.2\text{residual} = 8.2 - 9.4 = -1.2 hours. It is negative, so this machine sits below the line: it ran 1.2 hours, about 1 hour and 12 minutes, shorter than the model predicted for 50 percent brightness, and the model overpredicted it.

  6. (e) Locate the new point first. The tested brightness settings run from 20 to 80 percent, so x=100x = 100 is outside the data entirely and far from xˉ\bar{x}. That makes it a high-leverage point, and any prediction there is an extrapolation.

  7. (e) Compare it with the current line. At 100 percent the line predicts 12.40.06(100)=6.412.4 - 0.06(100) = 6.4 hours, but this machine ran 9.0 hours, a residual of 9.06.4=+2.69.0 - 6.4 = +2.6 hours. The point sits well above the line at the extreme right of the xx range.

  8. (e) Read off the effect. Least squares has to chase a high-leverage point, so the right end of the fitted line is pulled up: the slope becomes less steeply negative, moving toward 00. Because that point lies far from the pattern the other 18 machines follow, the scatter about the fit grows and rr moves toward 00 as well, so rr becomes less negative than 0.83-0.83 and R-Sq drops. One machine tested outside the studied range would weaken a relationship the rest of the data showed clearly.

(a) y^=12.40.06x\hat{y} = 12.4 - 0.06x, with xx the brightness in percent and y^\hat{y} the predicted battery life in hours. (b) Each extra percentage point of brightness predicts 0.06 hour less battery life, so 10 points predict about 0.6 hour less. (c) r=0.83r = -0.83, negative because the slope is negative. (d) Predicted 9.4 hours, so the residual is 8.29.4=1.28.2 - 9.4 = -1.2 hours and the model overpredicted by 1.2 hours. (e) The new point has high leverage and a residual of +2.6+2.6 hours, so it pulls the right end of the line up: the slope flattens toward 00 and rr moves toward 00, weakening the fit.