Skip to content

What probability measures

Probability is the share of random darts that land in a shape, in the long run, and three simple rules follow from that.

This topic

First, the picture

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.

darts
0
inside
0
share inside
–
circle's area
0.5027
0.00 / 12.50 s
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 π/4=0.7854\pi/4=0.7854. Darts can measure any shape this way, and this one gives you π\pi: four times the share inside. The clip’s 1000 darts put 795 inside, so they estimate π\pi as 4×0.795=3.184\times0.795=3.18; 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 nn darts misses the true probability pp by about

p (1−p)n\sqrt{\frac{p\,(1-p)}{n}}

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 (0.7−0.5)/0.158=1.3(0.7-0.5)/0.158=1.3 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 SS. For the die, S={1,2,3,4,5,6}S=\{1,2,3,4,5,6\}; for the darts, SS 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 {2,4,6}\{2,4,6\}. “The dart lands inside the circle” is the set of spots inside the circle. I name events with capital letters, AA, BB, and write Pr⁡{A}\Pr\{A\} for the probability of AA.

Events combine like regions of the square:

  • A∪BA\cup B, read ”AA or BB”, is every outcome in AA, in BB, or in both. This is the union.
  • A∩BA\cap B, read ”AA and BB”, is every outcome in both. This is the intersection.
  • AcA^\mathrm{c}, read “not AA”, is every outcome outside AA. This is the complement.
ABABABSSSA ∪ BA ∩ Bnot A
Fig. Two events A and B as regions of the sample space S. Shaded, from left to right: the union A ∪ B, the intersection A ∩ B, and the complement of A.

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, ∅\varnothing.

Three rules, and two that follow

Think of Pr⁡{A}\Pr\{A\} as the long-run share of throws that land in AA. Three facts about shares are plain:

  1. A share is never negative: Pr⁡{A}≥0\Pr\{A\}\ge0.
  2. Every throw lands somewhere in SS, so Pr⁡{S}=1\Pr\{S\}=1.
  3. If AA and BB are disjoint, a throw lands in at most one of them, so their shares add: Pr⁡{A∪B}=Pr⁡{A}+Pr⁡{B}\Pr\{A\cup B\}=\Pr\{A\}+\Pr\{B\}.

These three rules are the whole foundation. Everything else on this page follows from them.

The complement rule. AA and AcA^\mathrm{c} are disjoint and together make up SS. Rules 2 and 3 give Pr⁡{A}+Pr⁡{Ac}=1\Pr\{A\}+\Pr\{A^\mathrm{c}\}=1, so

Pr⁡{Ac}=1−Pr⁡{A}.\Pr\{A^\mathrm{c}\}=1-\Pr\{A\}.

The chance a dart misses the circle of radius 0.4 is 1−0.5027=0.49731-0.5027=0.4973.

The addition rule. When AA and BB overlap, adding their shares counts the overlap twice: look at the first panel of the figure. Take it away once:

Pr⁡{A∪B}=Pr⁡{A}+Pr⁡{B}−Pr⁡{A∩B}.\Pr\{A\cup B\}=\Pr\{A\}+\Pr\{B\}-\Pr\{A\cap B\}.

To see that it follows from rule 3, split A∪BA\cup B into three disjoint pieces: AA without BB, the overlap, and BB without AA. Then add the pieces.

Equally likely outcomes. When SS has a finite number of outcomes and each is as likely as the others, a probability is a count. I write ∣A∣\lvert A\rvert for the number of outcomes in AA:

Pr⁡{A}=∣A∣∣S∣.\Pr\{A\}=\frac{\lvert A\rvert}{\lvert S\rvert}.

A fair die gives Pr⁡{even}=3/6=1/2\Pr\{\text{even}\}=3/6=1/2. 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 ∣S∣=36\lvert S\rvert=36. Let AA be “the sum is 7” and BB be “at least one die shows a six”. What is Pr⁡{A∪B}\Pr\{A\cup B\}, the chance of a sum of 7 or a six?

123456123456first diesecond die
Fig. The 36 equally likely rolls of two dice. Shaded: B, at least one six, 11 cells. Rings: A, a sum of 7, 6 cells. Two cells, (1, 6) and (6, 1), are in both.

Count each event. AA holds (1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1): 6 outcomes. BB 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 BB by its complement. “No six on either die” leaves 5 faces for each die, 5×5=255\times5=25 pairs. So Pr⁡{B}=1−25/36=11/36\Pr\{B\}=1-25/36=11/36, the same as the count.

Add, and take the overlap away once.

Pr⁡{A∪B}=636+1136−236=1536=512=0.4167.\begin{aligned} \Pr\{A\cup B\}&=\frac{6}{36}+\frac{11}{36}-\frac{2}{36}\\ &=\frac{15}{36}=\frac{5}{12}=0.4167. \end{aligned}

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 π×0.09=0.283\pi\times0.09=0.283.
  • Throw 500 darts at a shape of area 0.2. Expect about 500×0.2=100500\times0.2=100 inside, give or take about 500×0.2×0.8=8.9\sqrt{500\times0.2\times0.8}=8.9, 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 ∣A∣\lvert A\rvert and ∣S∣\lvert S\rvert when there are far too many outcomes to list.

Reference card

QuantityFormulaNotes
Probabilitylong-run share of throws in AAwritten Pr⁡{A}\Pr\{A\}
Sample spaceSS, all outcomesPr⁡{S}=1\Pr\{S\}=1
Never negativePr⁡{A}≥0\Pr\{A\}\ge0
Disjoint eventsPr⁡{A∪B}=Pr⁡{A}+Pr⁡{B}\Pr\{A\cup B\}=\Pr\{A\}+\Pr\{B\}no common outcome
ComplementPr⁡{Ac}=1−Pr⁡{A}\Pr\{A^\mathrm{c}\}=1-\Pr\{A\}“not AA”
Addition rulePr⁡{A∪B}=Pr⁡{A}+Pr⁡{B}−Pr⁡{A∩B}\Pr\{A\cup B\}=\Pr\{A\}+\Pr\{B\}-\Pr\{A\cap B\}overlap counted once
Equally likely outcomesPr⁡{A}=∣A∣/∣S∣\Pr\{A\}=\lvert A\rvert/\lvert S\rverta count
Dartsarea of the shape / area of the squareunit square: the area
Typical miss after nn throwsp(1−p)/n\sqrt{p(1-p)/n}100 times the throws, 10 times smaller

Keep reading with a free account.

By creating an account you accept the terms of use.

Sign in

Already have an account? Use the service you signed up with.

Or keep reading: get new lessons by email

Are you 13 or over?

Accounts and email updates are for people aged 13 or over. We keep only your answer, never your date of birth.

End of the lesson

Where to go next.

Phasorium

Account

Sign inKeep your place on any device

Subjects

Site

Look