Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Six made-up students record their screen time and their sleep on one school night.
| Screen time (hours) | Sleep (hours) |
|---|---|
Find the least-squares line that predicts sleep from screen time, with . Then predict the sleep of a student with hours of screen time. Give answers to three decimal places.
The least-squares line has
The slope is the change in for each extra unit of . Predict inside the range of the data.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. Sums. hours and hours. and .
Step 2. Slope. hours of sleep per hour of screen time.
Step 3. Intercept. hours.
Step 4. Prediction. hours is the mean of , so the prediction is the mean of : hours.
Answer: , and hours of sleep.
Check. A prediction at always gives , because the line passes through the point of the means. The data are made up and show a link, not a cause.
Log in to join the discussion.
Loading…