Regression and correlation worksheet with answer key
8 problems on regression and correlation, ready to print for class or homework. The answer key prints on its own page, so hand out everything before it.
Name: ______________________________ Date: ______________ Period: ______
Problem 1
A greenhouse trial links the weekly fertilizer dose (in grams) given to each tomato plant, , to the season's yield (in kilograms), . Across the plants the summary statistics are grams, kg, grams, kg, and correlation . Find the least-squares regression line and interpret the slope in context.
Problem 2
A university makerspace logs, for four one-hour blocks, the number of 3D printers running, , and the electricity used that hour in kilowatt-hours, : , , , . Find the least-squares regression line from the data.
Problem 3
A candle maker fit a least-squares line predicting a candle's burn time (in hours) from its weight (in ounces): , where is the weight and is the predicted burn time. (a) An 8-ounce candle actually burns for 15 hours. Find its residual and say what the sign means. (b) A 10-ounce candle has a residual of hours. Find its observed burn time.
Problem 4
A cycling shop fit a least-squares line predicting a used e-bike's resale price (in dollars) from its odometer reading (in hundreds of kilometers), : . The e-bikes in the data had odometer readings from to (that is, 500 to 4000 km), and the correlation was . Interpret the slope, the intercept, the correlation , and the coefficient of determination in context.
Problem 5
A call center studies its shifts. Across many shifts the number of agents on duty, , has mean and standard deviation , while the calls resolved per hour, , has mean and standard deviation ; the correlation is . (a) Find the least-squares regression line. (b) One shift had 25 agents and resolved 80 calls in an hour. Find that shift's residual and interpret it.
Problem 6
An urban planner collects data on many neighborhoods and finds a correlation of between the number of coffee shops in a neighborhood, , and the average monthly apartment rent, . The data come from an observational study. (a) Interpret in context. (b) Compute and interpret the coefficient of determination . (c) Does this show that adding coffee shops causes rents to rise? Explain.
Problem 7
A marine biologist measures sea turtles and summarizes shell length (in centimeters), , and body weight (in kilograms), : cm, cm, kg, kg, and . The measured shells ranged from 30 to 55 cm. (a) Find the least-squares regression line. (b) Interpret the slope. (c) Interpret the intercept, and explain any problem with it. (d) Find and interpret it. (e) Predict the weight of a turtle with a 50 cm shell, and state whether that prediction is interpolation or extrapolation.
Problem 8
An ecologist runs a linear regression predicting a lake's dissolved oxygen (in mg/L), , from the water temperature (in degrees Celsius), . The output gives the line with correlation . (a) Interpret the slope. (b) At 20 degrees Celsius the measured dissolved oxygen was 8.5 mg/L; find and interpret the residual. (c) Find and interpret it. (d) The residual plot shows a clear U-shaped pattern. Given the high , what does that say about using a line here?
From statslearn.org/worksheets/regression-worksheet. Free to print and copy for classroom use.
Regression and correlation: answer key
The least-squares line is ; each additional gram of weekly fertilizer predicts a 3 kg increase in yield.
The least-squares line is , so each extra printer running predicts 1.6 more kilowatt-hours that hour.
(a) The residual is hour, so the model underpredicted the burn time by 1 hour. (b) The observed burn time is hours, and the negative residual means the model overpredicted.
Slope: each extra 100 km predicts a 50 dollar drop. Intercept: 1500 dollars predicted at 0 km, an extrapolation. is a strong negative association, and means about 81 percent of the price variation is explained by odometer reading.
(a) . (b) The residual is calls; with 25 agents the line predicted 72 calls, and the shift resolved 8 more than predicted.
(a) is a moderately strong positive linear association. (b) , so about 49 percent of the rent variation is explained by coffee-shop counts. (c) No; the study is observational, and a lurking variable such as neighborhood desirability could drive both.
(a) . (b) Each extra cm of shell predicts 1.6 kg more weight. (c) The intercept kg is a negative weight and an extrapolation, so it has no real meaning. (d) , so 64 percent of the weight variation is explained. (e) kg, an interpolation since 50 cm is within 30 to 55 cm.
(a) Each extra degree predicts a 0.25 mg/L drop. (b) Predicted 9 mg/L, so the residual is mg/L and the model overpredicted by 0.5. (c) , about 90.3 percent of the variation explained. (d) The U-shaped residual plot shows curvature, so a line is not appropriate despite the high .
Every step is worked at statslearn.org/practice/regression-practice. Free to print and copy for classroom use.
The key gives final answers only. The full worked solution for each problem is on the matching practice set, and every other sheet is on the worksheets page.