Name Date
Linear Regression worksheet
Grades 9–10 · CCSS HSS.ID.B.6.c, HSS.ID.B.6.a, HSS.ID.C.7, HSS.ID.C.8
Calcapedia Solve each problem and show your work. Round answers to 2 decimal places where needed.
- 1.
Problem 1. - X values (predictor): 1, 2, 4, 3, 5, 4
- Y values (response): 52, 55, 61, 64, 70, 73
- Predict y at x = (optional): 6
Find: Regression line
Answer
- 2.
Problem 2. - X values (predictor): 1, 2, 3, 4, 5, 6
- Y values (response): 60, 48, 45, 53, 75, 70
- Predict y at x = (optional): 10
Find: Regression line
Answer
- 3.
Problem 3. - X values (predictor): 1, 2, 3, 4, 5, 6
- Y values (response): 52, 55, 61, 64, 70, 73
- Predict y at x = (optional): 6
Find: Regression line
Answer
- 4.
Problem 4. - X values (predictor): 1, 2, 3, 4, 5, 6
- Y values (response): 60, 68, 48, 69, 80, 72
- Predict y at x = (optional): 7
Find: Regression line
Answer
- 5.
Problem 5. - X values (predictor): 1, 2, 4, 3, 6, 5
- Y values (response): 52, 55, 61, 64, 70, 73
- Predict y at x = (optional): 5
Find: Regression line
Answer
- 6.
Problem 6. - X values (predictor): 1, 3, 2, 5, 4, 5
- Y values (response): 52, 55, 61, 64, 70, 73
- Predict y at x = (optional): 7
Find: Regression line
Answer
- 7.
Problem 7. - X values (predictor): 2, 2, 3, 4, 6, 5
- Y values (response): 52, 55, 61, 64, 70, 73
- Predict y at x = (optional): 6
Find: Regression line
Answer
- 8.
Problem 8. - X values (predictor): 1, 2, 3, 4, 5, 6
- Y values (response): 43, 60, 75, 60, 74, 80
- Predict y at x = (optional): 5
Find: Regression line
Answer
- 9.
Problem 9. - X values (predictor): 1, 2, 4, 4, 6, 5
- Y values (response): 55, 52, 70, 53, 90, 90
- Predict y at x = (optional): 5
Find: Regression line
Answer
- 10.
Problem 10. - X values (predictor): 1, 2, 3, 3, 6, 7
- Y values (response): 68, 60, 80, 55, 71, 80
- Predict y at x = (optional): 6
Find: Regression line
Answer
Answer key: Linear Regression worksheet
Calcapedia 1. Regression line: ŷ = 4.8462x + 47.1538
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)
2. Regression line: ŷ = 3.9714x + 44.6
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)
3. Regression line: ŷ = 4.3714x + 47.2
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)
4. Regression line: ŷ = 3.3429x + 54.4667
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)
5. Regression line: ŷ = 4.0286x + 48.4
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)
6. Regression line: ŷ = 4.05x + 49
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)
7. Regression line: ŷ = 4.725x + 45.175
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)
8. Regression line: ŷ = 6.0571x + 44.1333
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)
9. Regression line: ŷ = 7.9423x + 39.2115
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)
10. Regression line: ŷ = 2.2317x + 60.8171
Find the average (mean) of the x values, written x̄
Find the average (mean) of the y values, written ȳ
Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up
Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up
Find the slope b, how much y changes for each step in x: divide Sxy by Sxx
Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages
Put the slope and intercept into the line's equation
Find the correlation r, how tightly the points follow a line. It compares Sxy with the spread of both x and y (Syy is the spread of y)
Square r to get R², the share of the ups and downs in y that the line explains
Put your new x into the equation to predict y (written ŷ)