Practice free
Unit 9 · Probability and statistics

Find the equation of a regression line

Grade 12 (Precalculus) · GG. Bivariate statistics · 30 practice questions

How this works

Slope = r × (SD of y ÷ SD of x); the line passes through (mean x, mean y), which gives the intercept.

For a data set relating study hours (x) to test score (y), the correlation coefficient is 0.6, the standard deviation of x is 3, and the standard deviation of y is 15. The mean of x is 6 and the mean of y is 70. What is the equation of the regression line?

SD of y ÷ SD of x
15 ÷ 3 = 5
Slope
0.6 × 5 = 3
Line through (6, 70)
3 × 6 = 18
Intercept
70 − 18 = 52
Equation
y = 3x + 52

Answer: y = 3x + 52

Watch out: Using SD of x ÷ SD of y: 0.6 × 3 ÷ 15 = 0.12. The slope is r × (SD of y ÷ SD of x) = 3.

Try it

1. A study relates the number of ads run (x) to the units sold (y). The regression line for the data set has a slope of 8, the mean of x is 15, and the mean of y is 125. What is the equation of the regression line?

2. A study relates the number of hours studied (x) to the test score (y). The regression line for the data set has a slope of 2, the mean of x is 20, and the mean of y is 46. What is the equation of the regression line?

3. A study relates the number of hours studied (x) to the test score (y). The regression line for the data set has a slope of 3, the mean of x is 5, and the mean of y is 23. What is the equation of the regression line?

Answers are checked in the free account — with a hint before the answer, and the full solution after a miss.

How to help at home

A regression line is pinned in two ways: the slope says how steeply it climbs, and the line has to run through the point made by the two means. So put the mean of x through the slope: 8 × 15 = 120, and walk that step back from the mean of y: 125 - 120 = 5, which is the height the line starts from.

More in GG. Bivariate statistics