★ Step right up · free forever ★
Marbles in a bag
Different colours, different quantities. Draw one and watch the odds change.
4 in the bag
| Colour | In the bag | Chance |
|---|---|---|
| Red | 3/4 | 75% |
| Blue | 1/4 | 25% |
What is in the bag
4 marbles in the bag when it is full.
After a draw
The marble stays out, so the odds change after every draw.
Draw several at once
The odds table
The chance of each colour is on the stage as a fraction and a percentage, before every draw.
Without replacement the fractions change after every draw, which is the whole lesson: the second draw is not the same experiment as the first.
Sound
A marble makes a clack as it comes out. The colour is always on screen as a word as well as a colour.
The oldest probability lesson there is
Three red and one blue is where every probability lesson starts, because everybody can see the answer before they can write it down. Three out of four. Seventy-five percent. The bag on this page shows both forms at once, next to the marbles themselves, so the fraction and the percentage and the handful of counters are visibly the same fact.
You can hide the table when the point is for the class to work it out, and put it back the moment somebody wants to check. Nothing is timed and nothing is scored: it is a bag, and it does what a bag does.
Experimental against theoretical
The interesting lesson is the gap. Set three red and one blue with replacement on, draw twenty times, and tally what actually comes out. It will not be fifteen and five, and the argument about why not is the whole of the topic. Draw a hundred times and it gets closer, which is the next lesson after that.
Drawing several at once makes that quick: ten marbles a press, with the results stacked up beside the bag. For a bag where nothing comes back, the bag of tokens does the same job with your own words instead of colours.
With and without replacement
These are two different bags and it is worth saying so out loud. Put the marble back and every draw is independent: the bag has no memory, the odds never move, and a run of four reds means nothing at all about the fifth.
Leave it out and every draw changes the next one. The last blue leaves the bag and blue drops to zero in front of everybody, which is much harder to argue with than a sentence about conditional probability. For picking names rather than colours, the wheel and the bag of tokens are the tools next door.
Nothing to install, nothing to sign up for
The tool runs entirely in your browser. There is no account, nothing you make is uploaded, and nothing you type is sent anywhere or put into a link.
The page itself is not silent, though: it carries advertising code and a visit counter that sets no cookie, and the cookie page says exactly what each of those does.
This page remembers your settings in your browser under pph.marbles.bag, pph.marbles.replace, pph.marbles.count, pph.marbles.odds and pph.marbles.muted, and nowhere else. Clearing your site data for papercarnival.com removes it.
Questions
- Is the draw truly random?
- Yes. Each marble is picked with the browser's cryptographic random number generator, weighted by how many of each colour are actually in the bag, and it is picked before the bag shakes.
- What is the difference between the two modes?
- Without replacement the marble stays out, so the bag empties and the odds change after every draw. With replacement it goes back in, so every draw is the same experiment and the bag never runs out.
- Can I hide the odds from the class?
- Yes. Turn the odds table off in the Odds tab and the stage shows only the bag and the result, which is what you want when the class is meant to work the fractions out for themselves.
- Can I use it for a raffle?
- You can use it to draw a colour, but there are no stakes here and it is not built for prizes of value. It is a probability demonstration and a party picker.
More from Pickers and random draws
Names in a hat
Every name on its own slip. Pull one out, or pair everybody up without anyone drawing themselves.
OpenRaffle drum
Numbered tickets or names, a drum that turns, and a winners list in draw order.
OpenLottery ball machine
Numbered balls in a blower, called one at a time, with a board of everything already out.
OpenEverything in Pickers and random draws, and every family on the tools page.