Direct Variation


Introduction to Regression

  • Last workshop, we learned about classification.
  • In this workshop, we will learn about regression.
  • Regression is all about predicting something from something else.

Scenario 1: Cube Towers

  • We want to build a tower
  • We have 1” inch cubes to use

Let’s Predict!

NOTE: This needs to be a series of slides when moved to slides.qmd…
- Let’s predict the height of our tower, given the number of cubes we use.

# of height (inches) plot
1 1
2 2
3 3
4 4
5 5
10 10
🎯 Checkpoint 2. a: Predicting tower height.

How tall will our tower be if we use 100 cubes? How do you know?


Scenario 2: Cheap Uncle Bob

  • We want to build a much taller tower, but we ran out of 1” cubes.
  • Uncle Bob has a plan. He volunteers to make us more cubes for cheaper than we can buy them.
  • Bob makes us a lot of cubes:

Oh no! Uncle Bob’s cubes are of all of slightly different heights!

🎯 Checkpoint 2. b: Predicting tower height using Uncle Bob’s cubes.

How will our new cubes from Uncle Bob affect our tower height predictions?