lenny

Error's Square Dance

user image

Lesson Plan

Error's Square Dance

Students will be able to define Mean Squared Error (MSE), calculate MSE for a given set of data, and explain its importance in evaluating the accuracy of predictions.

Understanding MSE helps us evaluate how good our predictions or models are. This skill is crucial in many real-world applications, from predicting weather to analyzing sports statistics.

Audience

7th Grade Students

Time

30 minutes

Approach

Through direct instruction, guided examples, and a hands-on worksheet.

Materials

Prep

Teacher Preparation

10 minutes

Step 1

Introduction: What is an 'Error'?

5 minutes

  • Begin with a quick discussion: "What does it mean to make an error or a mistake?" (e.g., in sports, in estimates). Refer to Slide 1
  • Introduce the idea of measuring how big these errors are, especially when making predictions. Refer to Slide 2

Step 2

Introducing Mean Squared Error (MSE)

10 minutes

  • Explain that in math and data, we have ways to measure errors. Introduce Mean Squared Error (MSE).
  • Break down the term: 'Error' (difference between actual and predicted), 'Squared' (to make all errors positive and penalize larger errors more), and 'Mean' (average of all squared errors). Refer to Slides 3-5
  • Provide a simple example on the board or using the slide deck to demonstrate calculation step-by-step. Guided Practice: Actual values: 5, 8, 12. Predicted values: 6, 7, 10. Calculate errors, square errors, then find the mean. Refer to Slides 6-8

Step 3

Independent Practice: MSE Worksheet

10 minutes

  • Distribute the MSE Worksheet.
  • Students work individually or in pairs to complete the worksheet. Circulate to provide support and answer questions. Refer to Slide 9

Step 4

Review and Wrap-up

5 minutes

lenny
0 educators
use Lenny to create lessons.

No credit card needed

Slide Deck

Error's Square Dance: Measuring Prediction Accuracy

How good are our guesses and predictions?

Welcome students and introduce the lesson's topic: understanding and measuring 'errors' in predictions. Ask a warm-up question to get them thinking.

What is an 'Error'?

Think about a time you made a prediction or a guess. Was it perfect? What happened if it wasn't?

  • What does it mean to make a 'mistake' or an 'error'?
  • Why might it be important to know how big an error is?

Facilitate a brief discussion. Ask students what 'error' means in everyday life, e.g., in sports, estimating time, or guessing game outcomes.

Introducing Mean Squared Error (MSE)

In math and data, we have a special way to measure how 'off' our predictions are: Mean Squared Error (MSE).

MSE helps us understand the average size of our prediction errors.

Transition to how math helps us measure errors systematically. Introduce the term 'Mean Squared Error' (MSE). Explain that it's a way to quantify the average magnitude of the errors.

Breaking Down MSE: 'Error'

First, let's look at the 'Error' part.

An Error is the difference between the Actual Value and the Predicted Value.

Error = Actual Value - Predicted Value

Example: If you predict 7, but it's actually 5, your error is 5 - 7 = -2.

Explain the 'Error' part of MSE. Emphasize that it's simply the difference between what actually happened and what we predicted.

Breaking Down MSE: 'Squared' & 'Mean'

Next, 'Squared':

  • We square each error. Why?
    • It makes all errors positive (so negative and positive errors don't cancel out).
    • It gives more weight to larger errors, meaning big mistakes are penalized more heavily.

Finally, 'Mean':

  • After squaring all the errors, we find the average of these squared errors. This average is our MSE!

Explain the 'Squared' and 'Mean' parts. Highlight that squaring makes errors positive and emphasizes larger errors. 'Mean' is just averaging these squared errors.

Let's Calculate! (Guided Example)

Imagine we made these predictions:

Actual ValuePredicted Value
56
87
1210

Step 1: Calculate each Error.

Walk through a simple example step-by-step. Use the example from the lesson plan: Actual: 5, 8, 12; Predicted: 6, 7, 10. Guide students to calculate along.

Let's Calculate! (Guided Example)

Still Calculating...

Actual ValuePredicted ValueError (Actual - Predicted)Squared Error (Error²)
56-11
8711
121024

Step 2: Square each Error.

Continue the guided example, showing the squaring of errors.

Let's Calculate! (Guided Example)

And the Grand Finale!

Actual ValuePredicted ValueError (Actual - Predicted)Squared Error (Error²)
56-11
8711
121024

Step 3: Find the Mean of the Squared Errors.

Sum of Squared Errors = 1 + 1 + 4 = 6

Number of Errors = 3

MSE = Sum of Squared Errors / Number of Errors = 6 / 3 = 2

Complete the guided example by calculating the mean of the squared errors to find the final MSE.

Your Turn! Practice Time!

Now it's your chance to practice calculating MSE!

Work through the MSE Worksheet on your own or with a partner.

Remember the steps:

  1. Find the Error (Actual - Predicted)
  2. Square each error
  3. Find the Mean (Average) of the squared errors

Introduce the worksheet and explain that students will now practice independently. Emphasize that it's okay to ask questions.

Wrap-up: Why MSE Matters?

Great job everyone!

  • What is Mean Squared Error (MSE) in your own words?
  • Why is it a useful tool for looking at data and predictions?

Knowing MSE helps us understand how accurate our predictions are, which is super important in science, sports, and even figuring out if our weather forecasts are getting better!

Bring the class back together to review the worksheet and conclude the lesson. Ask students to reflect on the usefulness of MSE.

lenny

Worksheet

MSE Practice Worksheet

Instructions: For each problem, calculate the Mean Squared Error (MSE) following the steps we discussed in class. Show your work!


Problem 1

A scientist predicted the daily high temperature for three days. Here are the actual temperatures and her predictions:

DayActual Temperature (°F)Predicted Temperature (°F)
17072
27573
36869

Calculate the MSE:

  1. Calculate the Error (Actual - Predicted) for each day:
    Day 1 Error:



    Day 2 Error:



    Day 3 Error:


  2. Square each Error:
    Day 1 Squared Error:



    Day 2 Squared Error:



    Day 3 Squared Error:


  3. Find the Mean of the Squared Errors (MSE):
    Sum of Squared Errors:



    MSE:






Problem 2

A student tried to predict the number of points their favorite basketball team would score in four games. Here are the actual scores and the student's predictions:

GameActual ScorePredicted Score
1105100
298102
3110108
49599

Calculate the MSE:

  1. Calculate the Error (Actual - Predicted) for each game:
    Game 1 Error:



    Game 2 Error:



    Game 3 Error:



    Game 4 Error:


  2. Square each Error:
    Game 1 Squared Error:



    Game 2 Squared Error:



    Game 3 Squared Error:



    Game 4 Squared Error:


  3. Find the Mean of the Squared Errors (MSE):
    Sum of Squared Errors:



    MSE:





lenny
lenny

Answer Key

MSE Practice Worksheet Answer Key

Problem 1

A scientist predicted the daily high temperature for three days. Here are the actual temperatures and her predictions:

DayActual Temperature (°F)Predicted Temperature (°F)
17072
27573
36869

Calculate the MSE:

  1. Calculate the Error (Actual - Predicted) for each day:

    • Day 1 Error: 70 - 72 = -2
    • Day 2 Error: 75 - 73 = 2
    • Day 3 Error: 68 - 69 = -1
  2. Square each Error:

    • Day 1 Squared Error: (-2)² = 4
    • Day 2 Squared Error: (2)² = 4
    • Day 3 Squared Error: (-1)² = 1
  3. Find the Mean of the Squared Errors (MSE):

    • Sum of Squared Errors: 4 + 4 + 1 = 9
    • Number of Errors: 3
    • MSE: 9 / 3 = 3

    The Mean Squared Error (MSE) for Problem 1 is 3.


Problem 2

A student tried to predict the number of points their favorite basketball team would score in four games. Here are the actual scores and the student's predictions:

GameActual ScorePredicted Score
1105100
298102
3110108
49599

Calculate the MSE:

  1. Calculate the Error (Actual - Predicted) for each game:

    • Game 1 Error: 105 - 100 = 5
    • Game 2 Error: 98 - 102 = -4
    • Game 3 Error: 110 - 108 = 2
    • Game 4 Error: 95 - 99 = -4
  2. Square each Error:

    • Game 1 Squared Error: (5)² = 25
    • Game 2 Squared Error: (-4)² = 16
    • Game 3 Squared Error: (2)² = 4
    • Game 4 Squared Error: (-4)² = 16
  3. Find the Mean of the Squared Errors (MSE):

    • Sum of Squared Errors: 25 + 16 + 4 + 16 = 61
    • Number of Errors: 4
    • MSE: 61 / 4 = 15.25

    The Mean Squared Error (MSE) for Problem 2 is 15.25.

lenny
lenny