Practice Least Squares Regression Line in Math

Use these practice problems to test your method after reviewing the concept explanation and worked examples.

Quick Recap

The unique straight line y^=a+bx that minimizes the sum of squared vertical distances (residuals) between the observed data points and the line.

You have a scatter plot with points scattered around a general trend. The LSRL is the line that gets as close as possible to all the points simultaneously—it's the 'best' straight line through the cloud. 'Best' means it minimizes the total squared prediction error.

Showing a random 20 of 50 problems.

Example 1

medium
A slope is computed as b=rsysx with b=3 and sysx=5. Find r.

Example 2

challenge
A regression on temperature (x, in ∘C) gives y^=2+0.5x. If temperature is re-expressed in tenths of a degree (x′=10x), what is the new slope?

Example 3

medium
For the LSRL passing through (xˉ,yˉ)=(3,6.6) with slope 1.7, write the equation.

Example 4

hard
A regression has slope b=3. If y is rescaled to y′=2y, what is the new slope?

Example 5

medium
Given xˉ=4, yˉ=20, r=0.8, sx=2, sy=5, find the LSRL.

Example 6

medium
A line passes through (xˉ,yˉ)=(8,30) with slope b=2.5. Find its equation.

Example 7

easy
In y^=7−2x, what is the y-intercept?

Example 8

hard
The LSRL for predicting weight (y, kg) from height (x, cm) is y^=−100+0.8x. Interpret the slope and intercept, predict weight for height=175 cm, and explain why extrapolating to height=50 cm is problematic.

Example 9

challenge
Given that the LSRL of y on x has slope byx and the LSRL of x on y has slope bxy, show byx⋅bxy=r2.

Example 10

medium
In y^=200−0.5x, y is weight (lb) and x is age in days for a dieting program. Interpret the intercept and say whether it is meaningful.

Example 11

medium
Two data points lie exactly on y^=2+3x: (1,?) and (4,?). Find both predicted values.

Example 12

medium
What does it mean if r2=1 for a regression?

Example 13

easy
In y^=10+4x where y is cost in dollars and x is hours, interpret the slope.

Example 14

hard
The LSRL has the property of minimizing ∑ei2=∑(yi−y^i)2. Explain why minimizing squared residuals (rather than absolute residuals) is preferred, and name two consequences of this choice.

Example 15

medium
Find the least-squares regression line for: (x,y): (1,2),(2,4),(3,5),(4,4),(5,5). Use b=rsysx and a=yˉ−bxˉ.

Example 16

medium
A model y^=100+5x predicts plant height (cm) from days x. Why is predicting height at x=10,000 days unwise?

Example 17

medium
Using y^=26+1.2x, predict y at x=30.

Example 18

medium
Compute slope: r=−0.6, sy=12, sx=4.

Example 19

medium
Why is predicting y at an x-value far outside the observed range dangerous? Give one example.

Example 20

medium
Given five data points (1,3),(2,5),(3,7),(4,8),(5,10), compute xˉ and yˉ.