☰ Year plan · Statistics

Regression and the least squares line

Week 4 · Regression: predicting y from x, simple linear regression y = a + bx and the least squares method · 3 lessons
Answers are for parents and teachers.
1
A juice stand records the price x (LE) of a bottle and the bottles sold per hour y: x = 2, 3, 4, 6, 10 and y = 19, 24, 18, 14, 5. Find the line of y on x and predict the sales at a price of 5 LE.
x234610
y192418145
2
For the dots (1, 3), (2, 5), (3, 4) compare the lines ŷ = 3 + 0.5x and ŷ = 2 + x by the sum of the squared gaps. Which is better?
3
A regression line is ŷ = 12 − 1.5x, with y the number of minutes a snack bar needs to serve a customer and x the number of staff. What does −1.5 mean, and what is ŷ for x = 4?
4
A pupil wants to predict the hours of revision from a mark and uses the line that predicts the mark from the hours. What is wrong?
5
The means are x̄ = 4 and ȳ = 9, and the slope is b = 1.5. Write the regression line and check that it passes through (4, 9).