Long-run frequency and simulation

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Integrated Math III › Probability and decisions

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

Long-run frequency and simulation

Probability and decisions. expected value, fair decisions, simulation, random variables

Warm-up

Three quick questions from earlier lessons.

  1. Two fair dice are rolled. Find the probability that the sum is 2.
  2. A fair die is rolled 2 times. Find the probability of at least one six.
  3. The probability that a flight is late is 0.78. Find the probability that it is not late.

Discover

A fair coin gave 7 heads in 10 tosses. If you toss it 10,000 times, what do you expect?

  1. A proportion of heads close to 0.5
  2. More tails than heads, to make up for the 7 heads

Run 10 tosses a few times, then 1,000. What happens to the proportion of heads?

  1. It gets close to 0.5
  2. It swings further from 0.5 to make up for streaks

Key idea

Probability is a long-run relative frequency.

Law of large numbers: as a random process is repeated many times, the proportion of times an event occurs gets close to its probability. Independent trials have no memory. A simulation imitates a random process with random numbers to estimate probabilities.

Worked example

Simulate a 30% chance with random digits.

Let 0, 1, 2 mean "success"
Each digit has probability 0.1.
Read 1,000 random digits; count successes
Repeat many times.
About 300 successes expected
Relative frequency.

Your turn, guided

Your turn: how many digits for a 60% chance?

66
0.6 ÷ 0.1.

Practice ★

  1. A fair coin lands heads 7 times in a row. What is the probability of heads on the next toss?
    1. 1/2: the coin has no memory
    2. Less than 1/2: tails is due
    3. More than 1/2: heads is on a streak
  1. What does it mean that the probability of rain tomorrow is 0.7?
    1. On many days like tomorrow, it rains on about 70% of them
    2. It will rain for 70% of the day
    3. It will rain if the probability is above 0.5

Watch out!

Practice ★★

  1. To simulate a free throw made with probability 0.6 using random digits 0–9, how many of the ten digits should stand for 'made'?
  2. To simulate a free throw made with probability 0.4 using random digits 0–9, how many of the ten digits should stand for 'made'?

Exit ticket

Three questions to check you have got it.

  1. A fair coin lands heads 7 times in a row. What is the probability of heads on the next toss?
    1. 1/2: the coin has no memory
    2. Less than 1/2: tails is due
    3. More than 1/2: heads is on a streak
  2. A fair coin lands heads 5 times in a row. What is the probability of heads on the next toss?
    1. 1/2: the coin has no memory
    2. Less than 1/2: tails is due
    3. More than 1/2: heads is on a streak
  3. A fair coin lands heads 10 times in a row. What is the probability of heads on the next toss?
    1. 1/2: the coin has no memory
    2. Less than 1/2: tails is due
    3. More than 1/2: heads is on a streak

Summary card

Long run

  • Probability = long-run relative frequency.
  • Simulate with random numbers.

Watch out: no memory, no "due" outcomes.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. A fair die is rolled 228 times. About how many sixes do you expect?
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits