Throw darts at random at a square that holds a circle. Watch the share that lands inside wobble, then settle.
Random darts measure any shape
Darts thrown at random on a square of side 1 holding a circle (seed 1100).
Darts land at random on the square, every spot as likely as any other. The line below follows the share that lands inside the circle.
Describe this picture
Two panels, side by side on a wide screen and stacked on a phone. One is a square of side 1 holding a circle of radius 0.4 at its centre, where seeded random darts (seed 1100) land as small dots: inside the circle in colour, outside in grey, the newest one ringed. The other is a line tracing the share of darts inside the circle against the number of darts thrown, from 1 to 1000, on an axis marked 1, 10, 100 and 1000, each mark ten times the last, with a dotted line labelled with the circle’s area, 0.5027. The clip throws 1000 darts, slowly at first and faster and faster. The line swings widely over the first few darts, then wanders less and less: the share is 0.600 after 10 darts, 0.520 after 100 and 0.504 after 1000. Readouts give the darts, how many are inside, the share inside and the circle’s area. After the clip a slider, “Radius of the circle”, sets the radius from 0.1 to 0.5; the same 1000 darts are counted again, and the dotted line moves to the new area.
Darts and a share of area
Here is the game. A dart lands somewhere on the square, and every spot is as likely as every other. You cannot say where the next dart will land. But you can ask what share of many darts will land inside the circle.
Watch the line under the square. After the first dart the share is either 0 or 1. After ten darts it can still be anywhere from about 0.2 to 0.8. After a thousand it sits close to the dotted line. In the clip, 6 of the first 10 darts landed inside, a share of 0.600, and 504 of 1000, a share of 0.504, beside the exact 0.5027.
The dotted line is at 0.5027, the circle’s area. The square has area 1, so the circle covers 0.5027 of it. In the long run, darts that land evenly over the square land inside the circle in the same share as its area.
That long-run share is what a probability measures. The probability that a dart lands inside the circle is 0.5027: over many, many darts, that is the share that lands inside.
After the clip, drag the radius to 0.5, the largest circle that fits. The dotted line moves to . Darts can measure any shape this way, and this one gives you : four times the share inside. The clip’s 1000 darts put 795 inside, so they estimate as ; more darts would do better.
Watch out
A probability says nothing certain about the next few darts. It describes the long run. Ten darts can land 7 inside a circle of area 0.5, and nothing is wrong: short runs wobble.
How large is the wobble? The share after darts misses the true probability by about
on a typical run. I show where this comes from in The law of large numbers; here it is enough to read it. For the circle of radius 0.4 it gives a typical miss of 0.158 after 10 darts, 0.050 after 100 and 0.016 after 1000.
A hundred times as many darts make the miss ten times smaller. So the 7 darts in 10 above are only typical misses away from the share of 0.5. That is ordinary.
Outcomes, events and the sample space
Let me give the parts of this game their names. Each throw ends in one outcome: one spot on the square. For a die, the outcomes are the six faces. The set of all possible outcomes is the sample space, and I write it . For the die, ; for the darts, is the whole square.
An event is a set of outcomes, a question you can answer yes or no once the throw is done. “The die shows an even number” is the event . “The dart lands inside the circle” is the set of spots inside the circle. I name events with capital letters, , , and write for the probability of .
Events combine like regions of the square:
- , read ” or ”, is every outcome in , in , or in both. This is the union.
- , read ” and ”, is every outcome in both. This is the intersection.
- , read “not ”, is every outcome outside . This is the complement.
Two events that cannot happen together, with no outcome in common, are called disjoint. “The die shows 1” and “the die shows an even number” are disjoint. Their intersection is the empty set, .
Three rules, and two that follow
Think of as the long-run share of throws that land in . Three facts about shares are plain:
- A share is never negative: .
- Every throw lands somewhere in , so .
- If and are disjoint, a throw lands in at most one of them, so their shares add: .
These three rules are the whole foundation. Everything else on this page follows from them.
The complement rule. and are disjoint and together make up . Rules 2 and 3 give , so
The chance a dart misses the circle of radius 0.4 is .
The addition rule. When and overlap, adding their shares counts the overlap twice: look at the first panel of the figure. Take it away once:
To see that it follows from rule 3, split into three disjoint pieces: without , the overlap, and without . Then add the pieces.
Equally likely outcomes. When has a finite number of outcomes and each is as likely as the others, a probability is a count. I write for the number of outcomes in :
A fair die gives . The darts are the same idea with area in place of a count: the probability of landing in a shape is its area divided by the area of the square.
Worked example
Roll two fair dice, one after the other. Each outcome is a pair, (first die, second die), and all 36 pairs are equally likely, so . Let be “the sum is 7” and be “at least one die shows a six”. What is , the chance of a sum of 7 or a six?
Count each event. holds (1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1): 6 outcomes. is the last column and the last row of the grid, 6 + 6 cells with (6, 6) counted twice: 11 outcomes. Their intersection holds only (1, 6) and (6, 1): 2 outcomes.
Check by its complement. “No six on either die” leaves 5 faces for each die, pairs. So , the same as the count.
Add, and take the overlap away once.
Count the cells in the figure that are shaded or ringed, or both: 15. The rule and the picture agree.
Try it yourself.
- A circle of radius 0.3 in the unit square: the chance a dart lands inside is .
- Throw 500 darts at a shape of area 0.2. Expect about inside, give or take about , so about 9 darts.
Where you’ll meet this
Reliability. An engineer who says a part fails with probability 0.001 in its first year means that, of many such parts, about one in a thousand fail in their first year. The complement rule gives the other side: 0.999 survive.
Weather forecasts. “A 70 % chance of rain” means that on days like this one, it rained on about 70 of every 100. It does not promise rain tomorrow, and a dry day does not make the forecast wrong.
Games and estimates by darts. Card and dice games are built on counts of equally likely outcomes, like the dice grid above. And throwing random points to measure an area, as the instrument does, is a working method: it is called Monte Carlo estimation, and it measures areas and volumes too awkward for a formula. Its error shrinks like the typical miss above, ten times smaller for a hundred times as many points.
Random noise in a signal is the same idea, a fresh random number at every moment; Random variables for signals in the signal processing course follows that thread. Here, the next page, Counting, finds and when there are far too many outcomes to list.
Reference card
| Quantity | Formula | Notes |
|---|---|---|
| Probability | long-run share of throws in | written |
| Sample space | , all outcomes | |
| Never negative | ||
| Disjoint events | no common outcome | |
| Complement | “not ” | |
| Addition rule | overlap counted once | |
| Equally likely outcomes | a count | |
| Darts | area of the shape / area of the square | unit square: the area |
| Typical miss after throws | 100 times the throws, 10 times smaller |