Introduction
Probability measures how likely an event is, on a scale from (impossible) to (certain). This topic covers sample spaces, Venn diagrams and set notation, the addition rule, mutually exclusive and independent events, conditional probability, and tree diagrams and two-way tables for combined events.
Why it matters
A medical test is 99% accurate, and you test positive for a rare disease. Are you 99% likely to have it? Usually not, and conditional probability shows why. Insurance prices, weather forecasts, spam filters and court cases all depend on reasoning about probability correctly.
Intuitive explanation
asks: "Given that happened, how likely is ?" Knowing happened throws away every outcome outside . Within that smaller world, the chance of is the share of that also lies in : .
Events are independent if knowing one happened does not change the probability of the other. Rolling a six does not change the chance of a coin landing heads.
Formal definitions
The sample space is the set of all possible outcomes. An event is a subset of it. For equally likely outcomes, .
and are mutually exclusive if they cannot both happen: .
and are independent if , equivalently .
Notation
- : and . : or (or both). : not .
- : probability of given .
Key rules
Key results
To show and are independent, show (or ). To show they are not, show these are different.
If and , are mutually exclusive, then knowing happened tells you did not: they are certainly not independent.
Why the addition rule works
Adding and counts the overlap twice, once in each. Subtract it once: .
∎Methods
Start from the centre (the intersection) and work outwards, then fill in the outside region so the total is .
Multiply along branches for "and"; add the end results of different paths for "or". Second-stage branches are conditional probabilities.
Restrict to the given row/column (or the branches where the condition holds) and work out the share.
Where the rules come from: thinking in frequencies
Imagine repeating an experiment times, with happening times, happening times, and both together times. Probabilities are long-run proportions, so:
- Addition rule: the outcomes in or number (the overlap was counted twice). Divide by to get .
- Conditional probability: among the trials where happened, also happened times. So .
- Multiplication rule: rearranging, . This is why you multiply along tree branches.
- Independence: gives no information about , so , which is equivalent to .
The law of total probability
If split the sample space (exactly one happens), then happens together with exactly one of them:
On a tree diagram, this is "add up all the branches that end in ".
Bayes' theorem in one line
, so
It reverses a conditional. The answer depends heavily on , the prior, and ignoring it is the base rate fallacy (questions Q31 and Q34).
Examples
The probability of a total of 9 with two fair dice: outcomes , so .
More worked examples are in the Worked examples tab.
Common mistakes
"The probability a person who tests positive has the disease" is different from "the probability a person with the disease tests positive".
Only multiply if you know the events are independent.
When items are not replaced, the second-stage probabilities change.
Applications
- Medical testing: false positives and conditional probability.
- Reliability: a system with independent components fails with probability given by products.
- Games and insurance: pricing depends on probabilities of events.
Connections
- Distributions: binomial probabilities come from independent trials.
- Hypothesis testing: probabilities of results under a model.
- Binomial expansion: counting arrangements with .
Summary
- ; .
- Mutually exclusive: . Independent: .
- .
- Trees: multiply along, add between paths.
Worked examples
Try each one yourself first, then open the solution.
, and . Find and .
Show the solution
- 1Addition rule
.
- 2Only
.
and
, , . Are and independent?
Show the solution
- 1Product
.
- 2Compare
This equals , so and are independent.
Yes, independent
80 students chose a language.
| French | Spanish | Total | |
|---|---|---|---|
| Year 12 | 18 | 22 | 40 |
| Year 13 | 26 | 14 | 40 |
A student who chose Spanish is picked at random. Find the probability they are in Year 13.
Show the solution
- 1Restrict to Spanish
students chose Spanish.
- 2Share in Year 13
.
A bag has 5 red and 3 blue counters. Two are taken without replacement. Find the probability they are different colours.
Show the solution
- 1Red then blue
.
- 2Blue then red
.
- 3Add
.
1% of people have a condition. A test is positive for 95% of people with it and 5% of people without it. Find the probability that someone who tests positive has the condition.
Show the solution
- 1Positive and has it
.
- 2Positive and does not
.
- 3Conditional
.
- 4Interpret
Only about 16%: most positives are false positives because the condition is rare.
University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.
Kolmogorov's axioms: probability made rigorous (university)
For centuries probability was a collection of clever tricks for dice and cards, with no agreed foundation. In 1933 Kolmogorov gave one, based on measure theory, and it is still the standard.
A sample space , a collection of subsets of called events (closed under complements and countable unions: a -algebra), and a function satisfying:
- ;
- countable additivity: if are pairwise disjoint, then .
Everything else is a theorem. For example:
- ;
- ;
- ;
- the addition rule;
- continuity: if then .
Why such machinery?
Infinite sample spaces. "Pick a uniformly random real number in ": every single point has probability , yet the total is . You cannot add up the probabilities of points. You must work with intervals and, more generally, with measurable sets.
Not every set can have a probability. Vitali (1905) showed, using the axiom of choice, that there are subsets of to which no "length" can consistently be assigned. That is why is not simply "all subsets".
What is the probability that a "random chord" of a circle is longer than the side of the inscribed equilateral triangle?
- Random endpoints on the circle: .
- Random distance of the chord from the centre: .
- Random midpoint in the disc: .
Three reasonable answers, because "random chord" is not well defined until you specify the probability measure. The lesson: probabilities depend on the model, and "uniformly at random" must be made precise.
Bayesian inference (university)
Bayes' theorem is more than a formula for medical tests. It is a complete theory of learning from evidence: start with a prior belief, observe data, and update to a posterior.
Let be the unknown probability of heads, with a uniform prior on . We toss times and see heads. The likelihood is proportional to , so the posterior density is
a Beta distribution. (The normalising constant is the Beta integral from the Integration lesson.) Its mean is .
After successes in trials, with a uniform prior, the probability that the next trial succeeds is .
Laplace famously asked: given that the sun has risen every day for years, what is the probability it rises tomorrow? His answer, about , was partly a joke, but the formula is sound. It never claims certainty from finite data, and it gives sensible answers for small samples: after success in trial, rather than the overconfident .
Bayesian vs frequentist
- Frequentist: probability is a long-run frequency. Parameters are fixed unknowns; data are random. This gives hypothesis tests and confidence intervals (see Hypothesis testing).
- Bayesian: probability is a degree of belief. Parameters have distributions. This gives posterior distributions and credible intervals.
Both are internally consistent. Modern statistics and machine learning use both, often together. Spam filters, recommendation systems and many AI models are Bayesian at heart.
Never give a prior probability of exactly or to anything not logically certain. If , then whatever the evidence: no amount of data can change your mind. The name comes from Cromwell's plea: "I beseech you, in the bowels of Christ, think it possible that you may be mistaken."
Markov chains (university)
Many random processes move between states, with the next state depending only on the current one, not on the history. That is a Markov chain.
States and a transition matrix , where is the probability of moving from state to state . Each row sums to . If is the row vector of state probabilities at time , then
Sunny tomorrow with probability after a sunny day, and after a rainy one:
A stationary distribution satisfies . Here gives , so . In the long run it is sunny two days in three, whatever today's weather.
If every state can reach every other (irreducible) and the chain is not periodic, then , the unique stationary distribution, from any starting distribution. Moreover, the long-run fraction of time spent in each state equals .
In linear algebra terms, is a left eigenvector of with eigenvalue . The other eigenvalues have modulus less than , and their influence decays geometrically.
Applications
- Google PageRank: a random surfer follows links. Each page's importance is its stationary probability.
- Gambler's ruin (question Q44): a chain with absorbing states, solved by first-step analysis.
- Text prediction: Shannon (1948) generated eerily English-like text with letter-level Markov chains. Modern language models are vastly more sophisticated descendants.
- MCMC (Markov chain Monte Carlo): build a chain whose stationary distribution is a target you cannot sample directly. It is the workhorse of Bayesian statistics and computational physics.
- Card shuffling: Bayer and Diaconis (1992) showed that about riffle shuffles bring a pack close to the uniform distribution. Fewer leave detectable order.
Paradoxes of probability (university)
Probability is where intuition most often fails. These classic paradoxes each teach a precise lesson.
A hospital trial of two kidney-stone treatments (a real 1986 study):
| small stones | large stones | all | |
|---|---|---|---|
| A | |||
| B |
is better for small stones and for large stones, yet looks better overall. Why: was mostly given to the harder, large-stone cases. Stone size is a confounding variable. Aggregated data can reverse a trend that holds in every subgroup, so correlation alone cannot settle causation.
Toss a coin until it lands heads; if that takes tosses you win £. The expected winnings are
Yet nobody would pay £1000 to play. Daniel Bernoulli's resolution (1738): people value money by its utility, roughly , not its face value. The expected utility is finite. This was the birth of economic decision theory.
One envelope holds twice as much as the other. You open one and find £. "The other holds £ or £ with equal chance, expected £, so switch!" But the same argument then says switch back, for ever. The flaw: "equal chance" for every requires a uniform prior on all amounts, which is not a probability distribution. With any genuine prior, the argument breaks down.
After ten reds at roulette, black is not "due": each spin is independent (question Q50). In 1913 at Monte Carlo, black came up times in a row, and gamblers lost millions betting on red. The converse belief, the "hot hand" in sport, was long dismissed as the same fallacy. Then Miller and Sanjurjo (2018) found a subtle bias in the original statistical analysis, and a modest hot-hand effect may be real after all.
Why does this work?
Knowing has happened restricts the possible outcomes to . Probabilities within this new world must still add to , so we rescale everything in by . The part of still possible is . Rearranging gives Bayes' theorem, , which turns "probability of the evidence given the cause" into "probability of the cause given the evidence".
Beyond the syllabus
Mathematical curiosities
With just 23 people, the probability that two share a birthday exceeds : . There are pairs, each a chance for a match.
Two envelopes hold amounts and . You open one and see £100. Switching seems to give , so always switch... and by symmetry switch back. The error: there is no uniform distribution over all possible amounts, so the "" is not justified.
Further exploration
Reading pathway: Fifty Challenging Problems in Probability (Mosteller); Probability and Random Processes (Grimmett and Stirzaker).