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.
Warm-Up: The Gate, a Hand Line, and Residuals
These problems review skills from earlier lessons.
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?
Both plots, since a calculator returns a regression line for any data set.
Neither plot, since in both the points do not lie exactly on one line.
Plot 1 only, since its points suggest a linear association.
Plot 2 only, since its points rise steeply over the first part of the plot.
A line drawn by hand through the middle of a scatter plot of study hours and test scores passes through the points and on the line. Write its equation as . Slope $b = $ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ and intercept $a = $ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ .
A hand-drawn line of fit is , where is hours studied and is test score in points. A student who studied hours scored . What is this student's residual for the line?
Fluency Practice
State the least-squares criterion, total squared residuals, and record a regression line.
A spreadsheet's linear regression returns the least-squares line for a data set. Which description defines that line?
The line through the first and last data points, since it spans the whole range of .
The line that makes the total of the squared vertical residuals as small as possible.
The line whose signed residuals add to , since its misses above and below cancel.
The line that passes through as many of the data points as possible.
For students, the residuals from the hand line (study hours , test score ) are , , , , , , , , , , and points. What is the line's total of squared residuals?
The data points are , , and . Find the total of squared residuals for the line .
Hours studied per week and test score for students are , , , , , , , , , , and . Use a calculator or spreadsheet to find the least-squares regression line, and record it as , rounding each coefficient to two decimal places. $a = $ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ and $b = $ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ .
On the same students, the hand line has a squared-residual total of . The regression line, at its unrounded coefficients, has a total of about . The hand line passes exactly through one student's point, . Which line does the least-squares criterion pick, and why?
The hand line, because it passes exactly through a data point and the regression line passes through none.
The hand line, because its slope of is steeper than the regression slope, so it follows the rise more strongly.
Neither, because the two totals differ by little more than , too small a gap for the criterion to decide.
The regression line, because its total of squared residuals, about , is smaller than .
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 accountStudent?
Ask your teacher for the full set. They can print it for you, or add it to your class if your class uses K12worX.