Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A made-up clinic records the mean height of children at ages to years: , , , , , and cm. Find the least-squares line of height on age, with . Use it to predict the height at years and at years. Give answers to two decimal places. Which prediction should you trust, and why?
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. Slope. and , so cm per year.
Step 2. Intercept. cm.
Step 3. Predictions. At years: cm. At years: cm.
Answer: ; cm at years and cm at years.
What it means. The first prediction is inside the data and sensible. The second is an extrapolation: nobody is m tall. Children stop growing in their late teens, so the straight line holds only for the ages it was fitted on.
Log in to join the discussion.
Loading…