Back to Exercise: Fit a linear function to a scatter plot

Exercises: Fitting a Linear Function to a Scatter Plot

Work through each section in order. A residual is observed y minus predicted y. To find a line's total of squared residuals, compute each residual, square it, and add the squares. The least-squares (regression) line is the line with the smallest such total. A calculator or spreadsheet is useful for the longer totals.

22 problems·~35 min·Common Core Math - HS Statistics and Probability·standard·hss-id-b-6c
Printable layout
A

Warm-Up: The Gate, a Hand Line, and Residuals

These problems review skills from earlier lessons.

Two scatter plots side by side. The left plot, titled Plot 1, shows points in a roughly straight rising band. The right plot, titled Plot 2, shows points forming an arch that rises then falls.
1

Two scatter plots are shown. Plot 1's points rise in a roughly straight band. Plot 2's points rise and then fall in a clear arch. For which plot is fitting a linear function appropriate?

A.

Both plots, since a calculator returns a regression line for any data set.

B.

Neither plot, since in both the points do not lie exactly on one line.

C.

Plot 1 only, since its points suggest a linear association.

D.

Plot 2 only, since its points rise steeply over the first part of the plot.

2

A line drawn by hand through the middle of a scatter plot of study hours xx and test scores yy passes through the points (3,68)(3, 68) and (8,98)(8, 98) on the line. Write its equation as y=a+bxy = a + bx. Slope $b = $   ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲   and intercept $a = $   ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲   .

3

A hand-drawn line of fit is y=6x+50y = 6x + 50, where xx is hours studied and yy is test score in points. A student who studied 55 hours scored 8484. What is this student's residual for the line?

B

Fluency Practice

State the least-squares criterion, total squared residuals, and record a regression line.

1

A spreadsheet's linear regression returns the least-squares line for a data set. Which description defines that line?

A.

The line through the first and last data points, since it spans the whole range of xx.

B.

The line that makes the total of the squared vertical residuals as small as possible.

C.

The line whose signed residuals add to 00, since its misses above and below cancel.

D.

The line that passes through as many of the data points as possible.

2

For 1212 students, the residuals from the hand line y=6x+50y = 6x + 50 (study hours xx, test score yy) are −1-1, −1-1, 33, −1-1, 44, −2-2, 00, 22, −2-2, −5-5, 11 and 11 points. What is the line's total of squared residuals?

3

The data points are (1,5)(1, 5), (2,9)(2, 9), (3,8)(3, 8) and (4,12)(4, 12). Find the total of squared residuals for the line y=2x+3y = 2x + 3.

4

Hours studied per week (x)(x) and test score (y)(y) for 1212 students are (3,67)(3, 67), (4,73)(4, 73), (4,77)(4, 77), (4,73)(4, 73), (5,84)(5, 84), (5,78)(5, 78), (6,86)(6, 86), (6,88)(6, 88), (7,90)(7, 90), (7,87)(7, 87), (7,93)(7, 93) and (8,99)(8, 99). Use a calculator or spreadsheet to find the least-squares regression line, and record it as y=a+bxy = a + bx, rounding each coefficient to two decimal places. $a = $   ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲   and $b = $   ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲   .

5

On the same 1212 students, the hand line y=6x+50y = 6x + 50 has a squared-residual total of 6767. The regression line, at its unrounded coefficients, has a total of about 65.8065.80. The hand line passes exactly through one student's point, (6,86)(6, 86). Which line does the least-squares criterion pick, and why?

A.

The hand line, because it passes exactly through a data point and the regression line passes through none.

B.

The hand line, because its slope of 66 is steeper than the regression slope, so it follows the rise more strongly.

C.

Neither, because the two totals differ by little more than 11, too small a gap for the criterion to decide.

D.

The regression line, because its total of squared residuals, about 65.8065.80, is smaller than 6767.

You're viewing 2 of 6 sections.

The full set is for signed-in accounts, so work can be saved and checked.

Teacher, tutor or parent?

A free account opens all 6 sections. Print them with an answer key, or assign them to students 13 and older.

Create free account

Student?

Ask your teacher for the full set. They can print it for you, or add it to your class if your class uses K12worX.