← Back to course
Statistics 9-12 / Week 04 / Tuesday
2/6
Week 04 · Scatter Plots and Lines of Fit

Tuesday

The line that fits best
// Weeks of practice against laps run
⏱ about 20 min

Tuesday: The Line That Fits Best

Comet holds a length of string across the wall chart. "Through the middle of the notes. Like this?"

"Close," Wren says. "Tilt it a little. Now the gaps above and below look even."

"But you and I would tilt it differently," Comet says. "What can we make that everyone agrees on?"

Nova projects the eight dots with eight tiny gaps drawn to a line. "Would you like a hint? Square each gap, then add."

"The least-squares line," Wren says. "The line whose squared gaps add to the least. Slope 0.94, intercept 1.89."

"So each extra week of practice goes with about 0.9 more laps," Comet says. "That is the slope, in our units."

"And 1.89 laps at zero weeks," Wren says. "The intercept. A starting level, roughly, before any practice."

"One line, no arguing," Comet says, and pins the string along it.

Way 1: a line by eye

Stretch a string through the cloud so the dots above and below balance. This gives a quick, rough line.

Two people get two slightly different lines. By eye is good for a first look, not for a shared answer.

Way 2: the least-squares line

For any line, each dot has a residual: observed y minus the y the line predicts. Above the line is positive, below is negative.

Square every residual and add them up. The least-squares line is the one line that makes that sum as small as possible.

For the crew's eight runners it is laps = 0.94 × weeks + 1.89. A calculator or spreadsheet finds it from the data.

The slope and the intercept are read in the data's units. Here the units are laps and weeks.

Slope and intercept in the crew's units

Slope 0.94: for each extra week of practice, the line predicts about 0.9 more laps. That is a rate of change.

Intercept 1.89: at 0 weeks of practice the line predicts about 1.89 laps. That is the constant term, a starting level.

A prediction inside the data's range is reasonable. Far outside it, the line may be wrong, so say so.

The crew's scatter plot with its least-squares line, slope about 0.94, climbing through the eight dots.
RunnerWeeksLaps observedLaps predictedResidual
Ash132.80.2
Bo243.80.2
Cy344.7-0.7
Dee465.70.3
Eli566.6-0.6
Fay687.50.5
Gus798.50.5
Hal899.4-0.4
SLOPE AND INTERCEPT
  • Read the question.
  • Tap your answer.
A scatter plot, Weeks of practice and laps, weeks of practice across and laps run up, with 8 points and a fitted line of slope about 0.94.The crew's points are (1, 3), (2, 4), (3, 4), (4, 6), (5, 6), (6, 8), (7, 9), (8, 9). What is the slope of the least-squares line? (Round to 2 places.)
A scatter plot, Weeks of practice and laps, weeks of practice across and laps run up, with 8 points and a fitted line of slope about 0.94.The crew's points are (1, 3), (2, 4), (3, 4), (4, 6), (5, 6), (6, 8), (7, 9), (8, 9). What is the y-intercept of the least-squares line? (Round to 2 places.)
The least-squares line has slope 0.9. What does the slope mean here?
The intercept is 1.89. What does it mean for the crew?
PREDICT WITH THE LINE
  • Read the question.
  • Tap your answer.
The line is laps = 0.94 × weeks + 1.89. What does it predict for a runner with 6 weeks of practice? (Round to 1 place.)
The line is laps = 0.94 × weeks + 1.89. What does it predict for 10 weeks of practice? (Round to 1 place.)
The crew's data runs from 1 to 8 weeks. How sure can the crew be about the prediction at 10 weeks?
Fay ran 8 laps and the line predicted 7.5. What is Fay's residual? Type the number.
WHY THIS EXERCISEA residual is one dot's gap from the line. The least-squares line makes the squared gaps add to the least.
StatementTrue or false?
The least-squares line makes the sum of the squared residuals as small as possible.?
Two people fitting a line by eye always get the same line.?
A slope of 0.94 means about 0.9 more laps for each extra week.?
The intercept is the change in y for one more unit of x.?
WHY THIS EXERCISESlope and intercept each answer a different question about the crew's runners.
Try it
On your graph paper plot, lay a pencil across the dots by eye. Mark where it crosses the y-axis.
Compare your by-eye intercept with the least-squares intercept 1.89. Write how far off you were.
Draw the eight dots and the least-squares line. Mark one positive residual and one negative residual.

Two ways, and the second one settles arguments. Tomorrow is Data Lab: strides, a stopwatch and your own line of fit.

← Monday