Skip to the lesson

Data and machine learningLesson 2 of 6

Part 1 of 3, 0 done

13 min

Predict tomorrow's iced coffees

A coffee shop that guesses tomorrow's iced drinks wrong either runs out or pours milk down the drain. Draw the line that predicts it, and measure how far it misses.

Ticket 01 · The guess

How many iced drinks tomorrow?

Our example coffee shop has noticed a pattern. On 70 °Fexample (example number: Our example: a warm day.) days it sells about 70 iced drinksexample (example number: Our example: the iced drinks a shop typically sells on that warm day.). On 80 °Fexample (example number: Our example: a hotter day.) days, about 100 iced drinksexample (example number: Our example: the iced drinks a shop typically sells on that hotter day.).

Tomorrow's forecast is 85 °Fexample (example number: Our example: tomorrow's forecast high.). How many iced drinks should it prep for?

60 iced drinks
0200
Words to know

Spot something wrong?

Tell us what looks off. No name or email needed.

What kind of problem?

0 / 1000

We'll also send this page, the lesson, ticket 1, so we can find it. Nothing else. Privacy

·
Sources and every number

Every number

  • 60 °Fexample (example number: Our example's base temperature, a cool morning.) · Our example's base temperature, a cool morning.
  • 70 °Fexample (example number: Our example: a warm day.) · Our example: a warm day.
  • 70 iced drinksexample (example number: Our example: the iced drinks a shop typically sells on that warm day.) · Our example: the iced drinks a shop typically sells on that warm day.
  • 80 °Fexample (example number: Our example: a hotter day.) · Our example: a hotter day.
  • 100 iced drinksexample (example number: Our example: the iced drinks a shop typically sells on that hotter day.) · Our example: the iced drinks a shop typically sells on that hotter day.
  • 30 iced drinksexample (example number: Worked out: 100 iced drinks − 70 iced drinks.) · Worked out: 100 iced drinks − 70 iced drinks.
  • 85 °Fexample (example number: Our example: tomorrow's forecast high.) · Our example: tomorrow's forecast high.
  • 5 °Fexample (example number: Worked out: 85 °F − 80 °F.) · Worked out: 85 °F − 80 °F.
  • 15 iced drinksexample (example number: Worked out: 5 °F times 3 drinks.) · Worked out: 5 °F times 3 drinks.
  • 115 iced drinksexample (example number: Worked out: 100 iced drinks + 15 iced drinks, the same as 40 drinks + 3 drinks for each degree above 60 °F.) · Worked out: 100 iced drinks + 15 iced drinks, the same as 40 drinks + 3 drinks for each degree above 60 °F.
  • 40 drinksexample (example number: Our example line's starting amount at the base temperature.) · Our example line's starting amount at the base temperature.
  • 3 drinksexample (example number: Our example line's extra drinks for each degree warmer.) · Our example line's extra drinks for each degree warmer.
  1. Lessons›
  2. The school›
  3. Data and machine learning
  • ·Before this: Rules or examples? How a filter learns
  • ·Next: The test it hasn't seen
Skip to the lesson

Data and machine learningLesson 2 of 6

Part 1 of 3, 0 done

13 min

Predict tomorrow's iced coffees

A coffee shop that guesses tomorrow's iced drinks wrong either runs out or pours milk down the drain. Draw the line that predicts it, and measure how far it misses.

Ticket 01 · The guess

How many iced drinks tomorrow?

Our example coffee shop has noticed a pattern. On 70 °Fexample (example number: Our example: a warm day.) days it sells about 70 iced drinksexample (example number: Our example: the iced drinks a shop typically sells on that warm day.). On 80 °Fexample (example number: Our example: a hotter day.) days, about 100 iced drinksexample (example number: Our example: the iced drinks a shop typically sells on that hotter day.).

Tomorrow's forecast is 85 °Fexample (example number: Our example: tomorrow's forecast high.). How many iced drinks should it prep for?

60 iced drinks
0200
Words to know

Spot something wrong?

Tell us what looks off. No name or email needed.

What kind of problem?

0 / 1000

We'll also send this page, the lesson, ticket 1, so we can find it. Nothing else. Privacy

·
Sources and every number

Every number

  • 60 °Fexample (example number: Our example's base temperature, a cool morning.) · Our example's base temperature, a cool morning.
  • 70 °Fexample (example number: Our example: a warm day.) · Our example: a warm day.
  • 70 iced drinksexample (example number: Our example: the iced drinks a shop typically sells on that warm day.) · Our example: the iced drinks a shop typically sells on that warm day.
  • 80 °Fexample (example number: Our example: a hotter day.) · Our example: a hotter day.
  • 100 iced drinksexample (example number: Our example: the iced drinks a shop typically sells on that hotter day.) · Our example: the iced drinks a shop typically sells on that hotter day.
  • 30 iced drinksexample (example number: Worked out: 100 iced drinks − 70 iced drinks.) · Worked out: 100 iced drinks − 70 iced drinks.
  • 85 °Fexample (example number: Our example: tomorrow's forecast high.) · Our example: tomorrow's forecast high.
  • 5 °Fexample (example number: Worked out: 85 °F − 80 °F.) · Worked out: 85 °F − 80 °F.
  • 15 iced drinksexample (example number: Worked out: 5 °F times 3 drinks.) · Worked out: 5 °F times 3 drinks.
  • 115 iced drinksexample (example number: Worked out: 100 iced drinks + 15 iced drinks, the same as 40 drinks + 3 drinks for each degree above 60 °F.) · Worked out: 100 iced drinks + 15 iced drinks, the same as 40 drinks + 3 drinks for each degree above 60 °F.
  • 40 drinksexample (example number: Our example line's starting amount at the base temperature.) · Our example line's starting amount at the base temperature.
  • 3 drinksexample (example number: Our example line's extra drinks for each degree warmer.) · Our example line's extra drinks for each degree warmer.
  1. Lessons›
  2. The school›
  3. Data and machine learning
  • ·Before this: Rules or examples? How a filter learns
  • ·Next: The test it hasn't seen