DONATSciences and Maths
Mathematics · Simulation and virtual lab Free

Probability: from experiments to theory

Repeat an experiment 1, 10, 100 or 1 000 times and watch the relative frequency get closer to the probability.

  • Best for S1 · Unit 8: Elementary probability
  • Also useful S2 · Unit 11: Tree diagrams in probability (two coins or two beans)
  • Also useful S5 · Unit 10: Elementary and conditional probability (repeated experiments)
  • Also useful S6 · Unit 9: Random variables (two-dice totals and expected value)
You will learn to
  • Repeat an experiment many times and record relative frequencies.
  • Compare relative frequency with theoretical probability.
  • Explain the law of large numbers.
You will measure
Number of successes and relative frequency after 10 to 1 000 trials.
Time needed
About 20–30 min
Equipment
Nothing extra. Real version: coins, dice, or beans in a basket.
Price
Free: no payment, no account.

Simulation

A basket (agaseke) holds 5 red, 3 white and 2 black beans. Is it really true that a red bean comes out half the time? Weather forecasts, insurance and medicine trials all use probability calculated from many repeated observations.

Change and observe

Virtual lab

Follow the steps with the simulation above (go back to the simulation ↑). Each time you tap Record, a row is added to the table and a point to the graph.

Aim

To compare the relative frequency of an event with its theoretical probability as the number of trials increases.

What to do

  1. Choose Toss a coin. Tap × 10 and record. Is the relative frequency of heads exactly 0.5?
  2. Tap × 100 several times and record after 100, 500 and 1 000 trials. What happens to the difference?
  3. Choose Roll a die and repeat. The event is “a six”, with P = 1/6.
  4. Choose Roll two dice: total. Which total is most common? Why?
  5. Choose the bean basket. Predict P(red), then test it with 1 000 draws.
  6. Write a conclusion about relative frequency and probability.

Results

Questions

What is the probability of a six with a fair die?

P(6) = 1/6 ≈ 0.167, because one of the six equally likely outcomes is a six.

Why is the total 7 the most likely with two dice?

7 can be made in 6 ways out of 36: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1). So P(7) = 6/36 = 1/6. Totals like 2 or 12 can be made in only one way.

After 10 tosses a learner got 7 heads. Is the coin unfair?

Not necessarily. With a small number of trials the relative frequency varies a lot. After 1 000 tosses it should be close to 0.5.

Find P(red), P(white) and P(not black) for the bean basket.

P(red) = 5/10 = 0.5, P(white) = 3/10 = 0.3, P(not black) = 1 − 2/10 = 0.8.

Two beans are drawn with replacement. Find P(both red).

P = 0.5 × 0.5 = 0.25, because with replacement the draws are independent.

What is the law of large numbers?

As the number of trials increases, the relative frequency of an event gets closer and closer to its theoretical probability.

For teachers: expected results and how the model works

Results are truly random (computer random numbers), so every class gets different numbers: compare tables between groups. For S2, ask learners to draw tree diagrams for two coins or two beans and test them. For S6, use the two-dice totals to discuss the expected value E(X) = 7.

Exam practice Exam set

National-exam style questions on this simulation (16 marks). Try each one on paper first, then open the marking scheme.

A fair die is thrown 600 times. (a) What is the probability of getting a 6? (b) How many sixes would you expect? (c) A learner got 130 sixes. Is the die likely to be fair? Explain. (5 marks)

Marking scheme: (a) 1/6 (1). (b) 600 × 1/6 = 100 (1). (c) Relative frequency = 130 ÷ 600 = 0.217 (1), noticeably more than 0.167 after many throws (1), so the die may be biased towards 6 (some variation is normal; more throws would confirm) (1).

Two coins are tossed. (a) List the sample space. (b) Find the probability of getting exactly one head. (3 marks)

Marking scheme: (a) HH, HT, TH, TT (1). (b) 2 out of 4 outcomes (1) = 1/2 (1).

Two dice are thrown and the scores added. Find the probability that the total is 7. Explain why 7 is the most likely total. (4 marks)

Marking scheme: 36 equally likely outcomes (1); six give 7: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) (1); P = 6/36 = 1/6 (1). No other total can be made in as many ways (1).

Explain the law of large numbers using the results of a coin-tossing experiment. (2 marks)

Marking scheme: As the number of trials increases (1), the relative frequency of heads gets closer and closer to the theoretical probability 0.5 (1).

A basket has 3 red and 5 white beans. One bean is taken at random, replaced, and a second is taken. Find the probability that both are red. (2 marks)

Marking scheme: P(red) = 3/8 each time (1); P(both red) = 3/8 × 3/8 = 9/64 (1).

For class and homework

The worksheet has the steps, an empty results table, a graph grid and all the questions with answer lines. The marking scheme has the expected results and every answer with its marks.

Keep learning

More free practice: Plinko Probability (external website, by PhET Interactive Simulations, University of Colorado Boulder). It opens in a new tab.

This simulation is an original model made for Rwandan learners. Real experiments can give slightly different numbers: a simulation never replaces handling real apparatus when your school has it.