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.
Fluency Practice
State the least-squares criterion, total squared residuals, and record a regression 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 = $ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ .