Computer regression output practice problems
By Jude Wallis · Updated
These 8 problems all start from a block of software regression output. You pull the intercept and slope out of the Coef column, write the equation, predict, compute a residual, turn R-Sq into r with the sign the slope gives it, and read S as the typical prediction error.
AP Statistics: Unit 5 (topics 5.3 Linear Regression Models, 5.5 Least-Squares Regression). Reading coefficients off software output belongs to Unit 5 of the Fall 2026 AP Statistics course, topics 5.3 and 5.5, where the slope, intercept, and correlation are calculated with technology and then interpreted in context; the framework contains no inference for regression slopes, so the SE Coef, T, and P columns are there to read past.
What these 8 problems build
Every problem here hands you the same thing: a block of software regression output and a question you can answer by reading it. Nothing has to be fitted from raw data. The work is knowing which number sits in which cell, and what it means once you have it.
The blocks below use the classic layout. Read them like this.
- The Coef column holds the equation. The Constant row is the y-intercept , and the row named after the explanatory variable is the slope . Those two numbers, and only those two, go into , where is read "y-hat" and is the predicted response value.
- SE Coef, T, and P describe the coefficient estimates. SE Coef is the standard error of a coefficient, T is that coefficient divided by its standard error, and P is a p-value from a test about the coefficient. The Fall 2026 AP Statistics framework contains no inference for regression slopes, so on the exam those three columns are numbers to read past.
- S is the standard deviation of the residuals, written in most textbooks: the typical distance between an observed response and the value the line predicts, carrying the units of .
- R-Sq is the coefficient of determination (r-squared) printed as a percent: the proportion of the variation in that the linear relationship with explains. Take its square root and attach the sign of the slope to get back the correlation .
- R-Sq(adj) adjusts R-Sq for the number of explanatory variables. With a single variable it lands just below R-Sq, and nothing in this set needs it.
Difficulty rises from reading one number off a table to a multi-part item that predicts, finds a residual, and interprets , , and together. Every table here is internally consistent, so you can check any T value yourself by dividing Coef by SE Coef. For the method behind the coefficients, read least-squares regression line; for the two statistics students mix up most, read r vs r-squared; and for what a graphing calculator screen shows instead, read reading calculator output. Fit your own line with the regression calculator, and find more sets on the practice page.
Problem 1
A ceramics studio logs 24 kiln firings, recording how long each firing ran, in hours, and what it added to the electricity bill, in dollars. The firings ran from 4 to 12 hours. The software returns:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 12.50 | 7.5520 | 1.66 | 0.112 |
| Hours | 6.40 | 0.9169 | 6.98 | 0.000 |
S = 8.795, R-Sq = 68.9%, R-Sq(adj) = 67.5%
(a) Write the least-squares regression line, defining your variables. (b) Say exactly which row and column each coefficient came from. (c) The owner reads the Constant row as the electricity cost of a firing that lasts no time at all. Explain the problem with that reading.
Show the worked solution
(a) Find the column that holds the equation. Only the Coef column feeds the line. SE Coef, T, and P describe how precisely each coefficient was estimated and never appear in the equation itself.
(a) Read the two coefficients. The Constant row gives the y-intercept dollars, and the Hours row gives the slope dollars per hour.
(a) Write the line with the variables named. Let be the length of a firing in hours and (read "y-hat") the predicted electricity cost in dollars. Then .
(a) Sanity-check the line at a firing length inside the data. At hours, dollars, a plausible electricity cost for one firing.
(b) Name the cells. The intercept is the Coef entry on the Constant row, and the slope is the Coef entry on the row labeled with the explanatory variable, here Hours. Software labels that row with the variable's name, not with the word slope, which is why the row heading matters.
(c) Locate relative to the data. The firings ran from 4 to 12 hours, so sits 4 hours below the shortest firing in the data, making any statement about it an extrapolation.
(c) Add the context problem. A firing of zero hours is not a firing, so there is no real quantity for 12.50 dollars to measure. The intercept is the number that positions the line over the 4 to 12 hour range, not a startup cost the studio pays.
(a) , with the firing length in hours and the predicted electricity cost in dollars. (b) The intercept is the Coef entry on the Constant row; the slope is the Coef entry on the Hours row. (c) is 4 hours below the shortest firing, so the reading is an extrapolation, and a zero-hour firing is not a real firing.
Problem 2
A dog daycare tracks 27 business days, recording the number of dogs boarded and the water used that day, in gallons. The output is:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 41.00 | 13.7035 | 2.99 | 0.006 |
| Dogs | 3.75 | 0.6017 | 6.23 | 0.000 |
S = 18.41, R-Sq = 60.8%, R-Sq(adj) = 59.2%
(a) Interpret the slope in context, using every part of the standard template. (b) A staff member shortens it to "each extra dog uses 3.75 gallons". Name what that leaves out and why it matters. (c) Two more dogs are booked for tomorrow. By how much does the model predict the day's water use will rise?
Show the worked solution
(a) Pull the slope out of the output. It is the Coef entry on the Dogs row, , and its units are the units of over the units of , so gallons per dog.
(a) Assemble the four required pieces: the word predicted, a one-unit increase in the explanatory variable, the phrase on average, and the units of the response in context.
(a) Write the sentence. For each additional dog boarded, the predicted daily water use increases by 3.75 gallons, on average.
(b) Name the first omission. Dropping predicted turns a statement about the fitted line into a claim about what any particular dog actually does. The line describes an average pattern across 27 days, and no individual dog was measured drinking or being washed with 3.75 gallons.
(b) Point at the output for the evidence. S = 18.41 gallons is the standard deviation of the residuals, so real days miss the line by about 18 gallons in either direction. A shortcut that promises 3.75 gallons per dog hides that spread.
(c) Scale the slope. The slope is the predicted change for a one-unit increase, so two more dogs predict more gallons.
(c) Note what you did not do. You never needed the intercept 41.00, because a change in the prediction depends only on the slope and the change in .
(a) For each additional dog boarded, the predicted daily water use increases by 3.75 gallons, on average. (b) It drops predicted and on average, turning a statement about the fitted line into a promise about individual dogs, and S = 18.41 gallons shows real days miss the line by roughly 18 gallons. (c) more gallons.
Problem 3
A vineyard measures sugar content, in degrees Brix, on 22 sampling dates and regresses it on the number of days since veraison (the point when the grapes start to color). The sampled dates ran from 10 to 40 days since veraison. The output is:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 15.50 | 0.69862 | 22.19 | 0.000 |
| Days | 0.28 | 0.02667 | 10.50 | 0.000 |
S = 0.9778, R-Sq = 84.6%, R-Sq(adj) = 83.8%
(a) Predict the sugar content at 30 days since veraison. (b) Is that prediction interpolation or extrapolation? (c) A grower asks for the predicted sugar content at 60 days. Compute what the line says and explain why you would not report it.
Show the worked solution
(a) Build the equation from the Coef column. The Constant row gives and the Days row gives , so , with the days since veraison and the predicted sugar content in degrees Brix.
(a) Substitute . First the slope term: .
(a) Add the intercept. degrees Brix.
(b) Compare 30 with the range of the data. The sampled dates ran from 10 to 40 days, and , so predicting at 30 days is interpolation and the prediction is reasonably trustworthy.
(c) Run the arithmetic anyway. , so degrees Brix.
(c) Locate 60 relative to the data. It sits 20 days beyond the largest in the sample, so this is extrapolation, and the further you go past the data the less reliable the predicted value becomes.
(c) Add the context check that makes the point concrete. The line keeps adding 0.28 Brix every day forever, but real grapes stop accumulating sugar and eventually raisin on the vine, so 32.30 Brix is the line's arithmetic rather than a defensible prediction. The regression carries no information about days the vineyard never sampled.
(a) degrees Brix. (b) Interpolation, since 30 days lies inside the sampled range of 10 to 40 days. (c) The line gives 32.30 Brix, but 60 days is 20 days beyond the data, so it is an extrapolation and the linear pattern has no support out there.
Problem 4
A commercial laundry regresses drying time, in minutes, on load weight, in pounds, for 26 loads weighing between 12 and 48 pounds. The output is:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 18.00 | 5.6813 | 3.17 | 0.004 |
| Weight | 1.50 | 0.1817 | 8.26 | 0.000 |
S = 8.176, R-Sq = 74.0%, R-Sq(adj) = 72.9%
One 40-pound load actually dried in 70 minutes. (a) Find that load's residual. (b) Say what the sign of the residual means here. (c) Is a miss of this size unusual for this model? Justify your answer with a number from the output.
Show the worked solution
(a) Write the line from the Coef column. , with the load weight in pounds and the predicted drying time in minutes.
(a) Predict at the observed weight. , so minutes.
(a) Apply the residual definition, observed minus predicted. minutes.
(b) Read the sign. The residual is negative, so the observed drying time sits below the line: the model overpredicted this load by 8 minutes, and the load dried faster than the line said it would.
(c) Find the number that sets the scale for a residual. S = 8.176 minutes is the standard deviation of the residuals, the typical distance between an observed drying time and the predicted one.
(c) Compare. The residual minutes is slightly smaller in size than S = 8.176 minutes, so this load misses by about one typical amount. Nothing marks it as an outlier; a model with this much scatter produces misses of roughly 8 minutes routinely.
(a) Predicted minutes, so the residual is minutes. (b) Negative, so the model overpredicted and the load dried 8 minutes faster than the line predicted. (c) No. S = 8.176 minutes is the typical prediction error, and a miss of 8.00 minutes is right at that size.
Problem 5
A transit agency regresses a route's average bus speed, in miles per hour, on the number of stops per mile along that route, for 32 routes with between 2 and 7 stops per mile. The output is:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 21.00 | 1.8126 | 11.59 | 0.000 |
| Stops | 0.4346 | 0.000 |
S = 2.904, R-Sq = 50.4%, R-Sq(adj) = 48.7%
(a) Find the correlation between stops per mile and average speed. (b) Explain how you settled the sign, and why R-Sq on its own could never settle it. (c) An analyst says the T value of would have told them the sign just as well. Are they right?
Show the worked solution
(a) Recognize what R-Sq is. R-Sq is the coefficient of determination (r-squared) written as a percent, so .
(a) Take the square root to get the size of the correlation. , so the correlation has size 0.71 to two decimals. Check it back: , which is 50.41 percent and prints as 50.4 percent, matching the output.
(a) Attach the sign from the slope. The Coef entry on the Stops row is , which is negative, so .
(b) Say why the slope decides. The slope and the correlation are linked by , where and are the standard deviations of the response and the explanatory variable. Standard deviations are never negative, so and always carry the same sign.
(b) Say why R-Sq cannot decide. Squaring throws the sign away: both and square to . R-Sq is therefore consistent with a strong positive or a strong negative association, and you need the slope, the T value, or the scatterplot to break the tie.
(c) Check the analyst's claim. SE Coef is a standard error, which is a measure of spread and so is always positive, and . Dividing by a positive number cannot change a sign, so T always matches the slope: . The analyst is right, and the slope, the T value, and all share one sign.
Finish in context. is a moderately strong negative linear association: routes with more stops per mile tend to run at lower average speeds.
(a) . (b) The sign comes from the negative slope , because and standard deviations are never negative; R-Sq cannot settle it because and both square to . (c) Yes. SE Coef is always positive, so carries the slope's sign.
Problem 6
A university regresses a dormitory's monthly water use, in thousands of gallons, on the number of residents, for its 18 dorm buildings. The output is:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 14.00 | 9.61988 | 1.46 | 0.165 |
| Residents | 0.85 | 0.07713 | 11.02 | 0.000 |
S = 11.13, R-Sq = 88.4%, R-Sq(adj) = 87.7%
(a) Interpret R-Sq in context. (b) What does the rest of the percentage represent? (c) Two students misread the number. One writes that 88.4 percent of the buildings fall on the line. The other writes that 88.4 percent of a building's water use is explained by its residents. Correct each one.
Show the worked solution
(a) Identify the statistic. R-Sq = 88.4% is the coefficient of determination (r-squared), printed as a percent, and it is a proportion of variation, not of anything else.
(a) Name the two variables in the right roles. The response is the monthly water use and the explanatory variable is the number of residents.
(a) Write the interpretation. About 88.4 percent of the variation in monthly water use among these 18 dorm buildings is explained by the linear relationship with the number of residents.
(b) Subtract from 100. percent of the variation in water use is left unexplained by this line, and it comes from everything else that differs between buildings: fixture age, whether there is a laundry room, irrigation, and how much any group of students happens to use.
(c) Correct the first student. R-Sq counts variation, not points. It says nothing about how many buildings sit on the line, and in fact a data set can have R-Sq of 88.4 percent with no building landing exactly on it. The statistic that measures how close the buildings sit is S = 11.13 thousand gallons.
(c) Correct the second student. The missing words are the variation in. The line does not explain 88.4 percent of a building's water use; a 400-resident dorm would use a great deal of water under any model. What the line explains is 88.4 percent of the differences in water use from building to building.
(a) About 88.4 percent of the variation in monthly water use among these 18 buildings is explained by the linear relationship with the number of residents. (b) The other 11.6 percent of that variation is unexplained by the line and comes from other differences between buildings. (c) The first confuses variation with a count of points on the line; the second drops the words the variation in, which is what R-Sq measures.
Problem 7
A regional airline regresses taxi-out time, in minutes, on the number of aircraft ahead in the departure queue, for 40 departures with between 1 and 12 aircraft ahead. The output is:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 9.50 | 1.9801 | 4.80 | 0.000 |
| Queue | 2.20 | 0.3052 | 7.21 | 0.000 |
S = 4.765, R-Sq = 57.8%, R-Sq(adj) = 56.7%
(a) Which number in the output is the standard deviation of the residuals, and what are its units? (b) Interpret it in context. (c) A student points at 0.3052 and calls that the typical prediction error. Explain what 0.3052 actually measures. (d) Predict the taxi-out time for a departure with 8 aircraft ahead, and attach the typical error to your prediction.
Show the worked solution
(a) Read the line under the table. S = 4.765 is the standard deviation of the residuals, written in most textbooks. It is computed from the residuals, so it carries the units of the response variable: minutes.
(b) Interpret it as a typical miss. Actual taxi-out times sit about 4.765 minutes away from the times this line predicts, on average, so roughly 4.8 minutes is the size of a typical prediction error for this model.
(c) Identify 0.3052 correctly. It is the SE Coef entry on the Queue row, the standard error of the estimated slope. It measures how much the estimated slope of 2.20 would move from one sample of 40 departures to another, and its units are minutes per aircraft.
(c) Separate the two ideas. SE Coef describes the uncertainty in a coefficient, while S describes how far individual departures fall from the fitted line. They answer different questions, and 0.3052 is far too small to be a plausible error for a taxi-out time measured in tens of minutes.
(d) Build the line and predict. , so at , and minutes.
(d) Attach the typical error. Departures with 8 aircraft ahead are predicted to taxi out for 27.10 minutes, and their actual times typically land within about 4.8 minutes of that, so times in the low 20s or low 30s are ordinary rather than surprising.
(a) S = 4.765, in minutes, the units of the response variable. (b) Actual taxi-out times fall about 4.765 minutes away from the predicted times, so that is the typical prediction error. (c) 0.3052 is the standard error of the slope, in minutes per aircraft, describing how much the estimate 2.20 would move across samples, not how far a departure falls from the line. (d) minutes, typically off by about 4.8 minutes.
Problem 8
A coastal outfitter regresses the number of kayaks rented in a day on the midday wind speed, in miles per hour, across 35 summer days with wind speeds from 3 to 22 mph. The output is:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 82.00 | 3.7116 | 22.09 | 0.000 |
| Wind | 0.3453 | 0.000 |
S = 8.053, R-Sq = 75.7%, R-Sq(adj) = 75.0%
(a) Write the least-squares regression line, defining your variables. (b) Predict the number of rentals on a day with 14 mph wind. (c) One 14 mph day had 41 rentals. Find and interpret that day's residual. (d) Find the correlation . (e) Interpret R-Sq in context. (f) Was the day in part (c) an unusually bad miss for this model? Justify with a number from the output.
Show the worked solution
(a) Read the Coef column. The Constant row gives and the Wind row gives . Let be the midday wind speed in mph and the predicted number of kayak rentals, so .
(b) Substitute . , so rentals. Note that 14 mph sits inside the observed 3 to 22 mph range, so this is interpolation.
(c) Take observed minus predicted. rentals.
(c) Read the sign. The residual is positive, so that day sits above the line: the outfitter rented 8 more kayaks than the model predicted for 14 mph wind, and the model underpredicted the day.
(d) Convert R-Sq to , size first. and , so the correlation has size 0.87. Check it back: , which prints as 75.7 percent.
(d) Fix the sign from the slope. The slope is negative, so : a strong negative linear association, with windier days renting fewer kayaks.
(e) Interpret R-Sq with the word variation. About 75.7 percent of the variation in daily kayak rentals across these 35 days is explained by the linear relationship with midday wind speed, leaving 24.3 percent to weather other than wind, day of the week, holidays, and everything else the model ignores.
(f) Compare the residual with S. S = 8.053 rentals is the standard deviation of the residuals, so a typical day misses the line by about 8 rentals. The residual of is right at that size, so this day is an ordinary miss rather than an unusual one.
(a) , with the midday wind speed in mph and the predicted rentals. (b) rentals. (c) Residual rentals, so the model underpredicted that day by 8 rentals. (d) , negative because the slope is negative. (e) About 75.7 percent of the variation in daily rentals is explained by the linear relationship with midday wind speed. (f) No. S = 8.053 rentals is the typical prediction error, and the residual of 8.00 matches it.