Prof. Polly

Data Analytics / Module 3 / Game

Game · Regression

Guess the Line

Fit a line through the dots by eye. Can you get close to Excel's line?

Tiggie the tiger cub, thinking

Each dot is one month at Sprout & Stem (made up): how many social media posts the shop made, and how many online orders came in. Move the two sliders to draw the line that fits best. The red lines are your misses.

Your miss score
Excel's miss score?

Miss score: square each miss (so big misses count extra), then add them up. Lower is better. Excel's trend line is the line with the lowest possible miss score.

Move the sliders until the line runs through the middle of the dots.
AFTER THE GAME

Talk it over

  1. Read Excel's line out loud: "each extra post is associated with about how many more orders?" Why say "associated with" and not "causes"?
  2. In round 2, one viral month bent the whole line. Should the shop fit the line with or without it? What would you report?
  3. The data covers 2 to 12 posts a month. How much would you trust a prediction for 30 posts?
  4. What else could be moving both posts and orders at the same time?

Do it in Excel

Posts in B2 to B11, orders in C2 to C11. =SLOPE(C2:C11,B2:B11) returns about 6.03 and =INTERCEPT(C2:C11,B2:B11) returns 42.5: the outcome goes first, the driver second. Predict 11 posts with =FORECAST.LINEAR(11,C2:C11,B2:B11), about 108.8 orders. The study guide Topic 11: Explain, Predict, Choose has the full walkthrough.