Wren lays three rulers across the scatter plot, each at a slightly different angle. "Which line is best?"
"They all look fine," Comet says. "How do we choose?"
"Measure the gaps," Wren says. "For each dot, how far is it above or below the line? Those are residuals."
Nova lights each gap in turn. "Would you like a hint? Square each gap, then add them up."
"Squaring makes them all positive, and big gaps count more," Comet says. "The best line has the smallest total."
"Least squares," Wren says. "Nova computes it. We read its slope and intercept and say what they mean."
"Slope 1.25. About 1.25 more meters for each extra pump," Comet says. "That is a sentence about rockets, not just a number."
A residual is the actual value minus the value the line predicts, for one dot. Above the line it is positive, below it is negative.
Draw the residuals as little vertical sticks from each dot to the line. A good line has small sticks on both sides.
For launch 4, 5 pumps gave 7 m. The line predicts 6.4. The residual is 0.6.
| Launch | Pumps | Height (m) | Line predicts | Residual |
|---|---|---|---|---|
| 1 | 2 | 2.5 | 2.7 | -0.2 |
| 2 | 3 | 3.5 | 3.9 | -0.4 |
| 3 | 4 | 5.5 | 5.2 | 0.3 |
| 4 | 5 | 7 | 6.4 | 0.6 |
| 5 | 6 | 7.5 | 7.7 | ? |
| 6 | 7 | 9.5 | 8.9 | ? |
| 7 | 8 | 9.5 | 10.2 | ? |
The slope is 1.25. In the data, that means about 1.25 more meters of height for each extra pump.
The intercept is 0.18. It is the height the line predicts at zero pumps. Zero pumps gives no launch, so the intercept is just where the line starts, not a real flight.
Always say the slope and intercept as a sentence with units. A number alone is not a conclusion.
| Statement | True or false? |
|---|---|
| A residual is actual minus predicted. | ? |
| A dot below the line has a positive residual. | ? |
| Squaring the residuals keeps big gaps from hiding behind small ones. | ? |
| The intercept of the pumps line is the height of a real zero-pump launch. | ? |
| A residual of zero means the dot sits exactly on the line. | ? |
Excellent. Tomorrow the cart runs the ramp in the Loft Lab and the dots fall the other way.