Experimental probability from repeated marble draws
MathematicsProbabilityAges 13–14
How do you mainly use this simulation?
Use it with your class: students open it from a link or a QR code, with no account needed.
A bag holds red, blue, and yellow marbles; draw one at random, record its color, put it back, and repeat N times. Students draw one marble at a time or let it run automatically, watching a graph of the experimental probability k/n for the chosen event settle toward the theoretical probability (that color's count divided by the total). Click a color to switch which event is being tracked. The Expected frequency screen sets the expected count n·P(A) beside the observed count for one draw, two draws or two dice, compares n·P(A ∩ B) and n·P(A ∪ B) = n(P(A) + P(B) − P(A ∩ B)) with simulated counts, and plots the gaps against n.
Lesson: The experimental probability of an event; the relationship between experimental probability and theoretical probability
What it shows
The experimental probability of an event is k/n, where k is the number of times it occurred in n trials. Marbles are drawn with replacement, so the theoretical probability of a color stays fixed, and the k/n graph settles near it as n grows. The Expected frequency screen gives the expected count n·P(A) before the trials and the observed count after them, for one draw, two draws or two dice. For two events it uses P(A ∪ B) = P(A) + P(B) − P(A ∩ B). Its gap graphs show that |k/n − P| shrinks as n grows, while |k − n·P| does not.
How to use
Set the bag, press Draw 1 marble or Auto run, and follow the k/n graph; click a color to track another event. Then press Expected frequency. Choose the Experiment and the Number of trials n, read the expected counts, and press Run n trials. With Two draws or Two dice, pick events A and B and compare the A ∪ B line. Press Run every n once a few times and read the two gap graphs.
Parameters you can change
- Number of red marbles 0–10 marbles
- Number of blue marbles 0–10 marbles
- Number of yellow marbles 0–10 marbles
- Maximum number of draws 10–2000 draws
- Auto-run speed Slow (watch each draw), Fast, Instant
- Screen Experimental probability (draws), Expected frequency
- Experiment (Expected frequency screen) One draw, Two draws, Two dice
- Number of trials n (Expected frequency screen) 10, 20, 50, 100, 200, 500, 1,000, 2,000, 5,000, 10,000
Questions to explore
- With 3 red, 2 blue and 1 yellow marble, what is the probability of drawing red, and does k/n agree?
- Why must each marble be returned to the bag before the next draw?
- After 20 draws, k/n is far from the theoretical value. Does that mean something is wrong?
- Why is n·P(A ∪ B) not simply n·P(A) + n·P(B), and when is it?