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
xy2464596808881010212118xy51050100

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 =
2.Easy
xy21041462483210361243xy5102040

The table gives 6 paired observations of x = load in kN and y = extension in mm. Use the least-squares line ŷ = a + b·x. Find the intercept a.

n = 6
a =
3.Medium
xy353462565674782885xy468607080

The table gives 6 paired observations of x = hours studied and y = exam score. Their sums are given. Find Pearson's correlation coefficient r from these sums.

n = 6Σx = 33Σy = 421Σx² = 199Σy² = 30303Σxy = 2430
r =
4.Medium
xy12021831541351369xy246101520

The table gives 6 paired observations of x = car age in years and y = price in k€. Their sums are given. Find Pearson's correlation coefficient r from these sums.

n = 6Σx = 21Σy = 88Σx² = 91Σy² = 1368Σxy = 272
r =
5.Hard
xy231337440551654756xy246304050x = 5.5

The table gives 6 paired observations of x = advertising spend in k€ and y = sales in k€. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 5.5.

n = 6x = 5.5
ŷ =
6.Hard
xy125224324422519617xy2462025x = 1.5

The table gives 6 paired observations of x = car age in years and y = price in k€. Use the least-squares line ŷ = a + b·x. A new observation (1.5, 22) is made. Find its residual e = y − ŷ.

n = 6(1.5, 22)
e =

Answer key

  1. 1. b = 7.1
  2. 2. a = 2.6
  3. 3. r = 0.991
  4. 4. r = −0.9786
  5. 5. ŷ = 50.18
  6. 6. e = −3.09

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