Skip to content
Calcapedia
Print as
Number of problems

In the print window, choose “Save as PDF” as the printer (or print it on paper). Seed 1 rebuilds this exact sheet.

Showing 10 problems, seed 1.

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

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

  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

  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

  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

  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

  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

  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

  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

  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

  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 key: Linear Regression worksheet

  1. 1. Regression line: ŷ = 4.8462x + 47.1538

    1. Find the average (mean) of the x values, written x̄

      x̄=3.166667
    2. Find the average (mean) of the y values, written ȳ

      ȳ=62.5
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=10.833333
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=52.5
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=52.510.833333=4.846154
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=62.5−4.846154×3.166667=47.153846
    7. Put the slope and intercept into the line's equation

      ŷ = 4.8462x + 47.1538
    8. 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)

      r=52.510.833333×337.5=0.868243
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.8682432=0.753846
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=4.846154×6+47.153846=76.230769
  2. 2. Regression line: ŷ = 3.9714x + 44.6

    1. Find the average (mean) of the x values, written x̄

      x̄=3.5
    2. Find the average (mean) of the y values, written ȳ

      ȳ=58.5
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=17.5
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=69.5
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=69.517.5=3.971429
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=58.5−3.971429×3.5=44.6
    7. Put the slope and intercept into the line's equation

      ŷ = 3.9714x + 44.6
    8. 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)

      r=69.517.5×729.5=0.61511
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.615112=0.378361
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=3.971429×10+44.6=84.314286
  3. 3. Regression line: ŷ = 4.3714x + 47.2

    1. Find the average (mean) of the x values, written x̄

      x̄=3.5
    2. Find the average (mean) of the y values, written ȳ

      ȳ=62.5
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=17.5
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=76.5
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=76.517.5=4.371429
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=62.5−4.371429×3.5=47.2
    7. Put the slope and intercept into the line's equation

      ŷ = 4.3714x + 47.2
    8. 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)

      r=76.517.5×337.5=0.995418
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.9954182=0.990857
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=4.371429×6+47.2=73.428571
  4. 4. Regression line: ŷ = 3.3429x + 54.4667

    1. Find the average (mean) of the x values, written x̄

      x̄=3.5
    2. Find the average (mean) of the y values, written ȳ

      ȳ=66.166667
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=17.5
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=58.5
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=58.517.5=3.342857
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=66.166667−3.342857×3.5=54.466667
    7. Put the slope and intercept into the line's equation

      ŷ = 3.3429x + 54.4667
    8. 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)

      r=58.517.5×604.833333=0.568616
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.5686162=0.323324
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=3.342857×7+54.466667=77.866667
  5. 5. Regression line: ŷ = 4.0286x + 48.4

    1. Find the average (mean) of the x values, written x̄

      x̄=3.5
    2. Find the average (mean) of the y values, written ȳ

      ȳ=62.5
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=17.5
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=70.5
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=70.517.5=4.028571
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=62.5−4.028571×3.5=48.4
    7. Put the slope and intercept into the line's equation

      ŷ = 4.0286x + 48.4
    8. 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)

      r=70.517.5×337.5=0.917346
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.9173462=0.841524
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=4.028571×5+48.4=68.542857
  6. 6. Regression line: ŷ = 4.05x + 49

    1. Find the average (mean) of the x values, written x̄

      x̄=3.333333
    2. Find the average (mean) of the y values, written ȳ

      ȳ=62.5
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=13.333333
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=54
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=5413.333333=4.05
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=62.5−4.05×3.333333=49
    7. Put the slope and intercept into the line's equation

      ŷ = 4.05x + 49
    8. 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)

      r=5413.333333×337.5=0.804984
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.8049842=0.648
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=4.05×7+49=77.35
  7. 7. Regression line: ŷ = 4.725x + 45.175

    1. Find the average (mean) of the x values, written x̄

      x̄=3.666667
    2. Find the average (mean) of the y values, written ȳ

      ȳ=62.5
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=13.333333
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=63
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=6313.333333=4.725
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=62.5−4.725×3.666667=45.175
    7. Put the slope and intercept into the line's equation

      ŷ = 4.725x + 45.175
    8. 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)

      r=6313.333333×337.5=0.939149
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.9391492=0.882
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=4.725×6+45.175=73.525
  8. 8. Regression line: ŷ = 6.0571x + 44.1333

    1. Find the average (mean) of the x values, written x̄

      x̄=3.5
    2. Find the average (mean) of the y values, written ȳ

      ȳ=65.333333
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=17.5
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=106
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=10617.5=6.057143
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=65.333333−6.057143×3.5=44.133333
    7. Put the slope and intercept into the line's equation

      ŷ = 6.0571x + 44.1333
    8. 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)

      r=10617.5×939.333333=0.826755
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.8267552=0.683524
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=6.057143×5+44.133333=74.419048
  9. 9. Regression line: ŷ = 7.9423x + 39.2115

    1. Find the average (mean) of the x values, written x̄

      x̄=3.666667
    2. Find the average (mean) of the y values, written ȳ

      ȳ=68.333333
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=17.333333
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=137.666667
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=137.66666717.333333=7.942308
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=68.333333−7.942308×3.666667=39.211538
    7. Put the slope and intercept into the line's equation

      ŷ = 7.9423x + 39.2115
    8. 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)

      r=137.66666717.333333×1,621.333333=0.821205
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.8212052=0.674378
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=7.942308×5+39.211538=78.923077
  10. 10. Regression line: ŷ = 2.2317x + 60.8171

    1. Find the average (mean) of the x values, written x̄

      x̄=3.666667
    2. Find the average (mean) of the y values, written ȳ

      ȳ=69
    3. Measure how spread out x is (Sxx): square each x value's distance from the mean, then add them up

      Sxx=27.333333
    4. Measure how x and y move together (Sxy): multiply each point's x and y distances from their means, then add them up

      Sxy=61
    5. Find the slope b, how much y changes for each step in x: divide Sxy by Sxx

      b=6127.333333=2.231707
    6. Find the intercept a, where the line crosses the y-axis. It puts the line through the point of the two averages

      a=69−2.231707×3.666667=60.817073
    7. Put the slope and intercept into the line's equation

      ŷ = 2.2317x + 60.8171
    8. 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)

      r=6127.333333×524=0.509704
    9. Square r to get R², the share of the ups and downs in y that the line explains

      R²=0.5097042=0.259798
    10. Put your new x into the equation to predict y (written ŷ)

      ŷ=2.231707×6+60.817073=74.207317