Linear regression & correlation worksheet with answers

Free printable Linear regression & correlation worksheet: 6 problems from easy to exam level, with an answer key. Print it or save it as a PDF.

For teachers: free to print, copy and use in class. Every new worksheet has new values and its own answer key. A link to ExamProblems on your course page is appreciated.

Name: ____________________   Date: ____________

1.Easy
xy145254352456563xy245060

The table gives 5 paired observations of x = hours studied and y = exam score. Use the least-squares line ŷ = a + b·x. Find the slope b.

n = 5
b =
2.Easy
xy2614726808891010412111xy5106080100

The table gives 6 paired observations of x = hours studied and y = exam score. Use the least-squares line ŷ = a + b·x. Find the slope b.

n = 6
b =
3.Medium
xy130242341452558xy2430405060

The table gives 5 paired observations of x = advertising spend in k€ and y = sales in k€. Find the coefficient of determination r² of the least-squares line.

n = 5
r² =
4.Medium
xy1749205823742677299132111xy2025306080100

The table gives 6 paired observations of x = temperature in °C and y = ice creams sold. Their sums are given. Find Pearson's correlation coefficient r from these sums.

n = 6Σx = 147Σy = 460Σx² = 3759Σy² = 37772Σxy = 11888
r =
5.Hard
xy244146198231029xy510102030x = 9

The table gives 5 paired observations of x = load in kN and y = extension in mm. Use the least-squares line ŷ = a + b·x. A new observation (9, 24) is made. Find its residual e = y − ŷ.

n = 5(9, 24)
e =
6.Hard
xy146116731887209322108xy15206080100x = 19

The table gives 5 paired observations of x = temperature in °C and y = ice creams sold. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 19.

n = 5x = 19
ŷ =

Answer key

  1. 1. b = 3.8
  2. 2. b = 5.071
  3. 3. r² = 0.9324
  4. 4. r = 0.9838
  5. 5. e = −2.65
  6. 6. ŷ = 90.1

Full step-by-step solutions: practise this topic on examproblems.com.