Probability
Probability measures how likely an event is, from 0 (impossible) to 1 (certain). Learn the probability formula, sample spaces, the complement rule, independent and dependent events, tree diagrams, the addition rule and conditional probability, with worked examples.
Probability is a number from 0 to 1 that measures how likely an event is to happen: 0 means impossible, 1 means certain. When all outcomes are equally likely, the probability formula is P(event) = number of favorable outcomes ÷ total number of outcomes. The probability of rolling a 4 with a fair die is 1/6, because one of the six equally likely outcomes is a 4. Probabilities can be written as fractions, decimals or percents: 1/4 = 0.25 = 25%.
This page explains sample spaces and events, the probability scale, the complement rule, theoretical and experimental probability, independent and dependent events, tree diagrams, the addition rule and conditional probability, all with worked examples and practice problems with answers.
Sample space, outcomes and events
A probability question always starts with an experiment: something with an uncertain result, like rolling a die, flipping a coin or drawing a card.
- An outcome is one possible result: rolling a 3.
- The sample space is the set of all possible outcomes: {1, 2, 3, 4, 5, 6} for a die, {H, T} for a coin.
- An event is a set of outcomes you are interested in: “rolling an even number” is the event {2, 4, 6}.
The probability scale
Every probability lies between 0 and 1. An event with probability 0 is impossible (rolling a 7 on a normal die), 1/2 is an even chance (heads on a fair coin), and 1 is certain (rolling a number less than 7). Values near 0 are unlikely, values near 1 are likely. A probability of 1.2 or −0.3 is always a sign of a calculation error.
The probability formula
This formula, sometimes called classical or theoretical probability, only works when all outcomes are equally likely: a fair die, a fair coin, a well-shuffled deck, marbles of the same size.
The complement rule
The complement of an event A is “A does not happen.” Since one of the two must happen, their probabilities add up to 1: P(not A) = 1 − P(A). The complement is often the easy way to answer questions with “at least one.”
Sample space for two dice
When you roll two dice, there are 6 × 6 = 36 equally likely outcomes, from (1, 1) to (6, 6). The sums are not equally likely: there is only one way to roll a sum of 2, but six ways to roll a 7.
| Sum | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Ways | 1 | 2 | 3 | 4 | 5 | 6 | 5 | 4 | 3 | 2 | 1 |
| Probability | 1/36 | 2/36 | 3/36 | 4/36 | 5/36 | 6/36 | 5/36 | 4/36 | 3/36 | 2/36 | 1/36 |
A quick way to count outcomes is the counting principle: if one choice can be made in m ways and a second in n ways, both together can be made in m × n ways. Three shirts and four pairs of pants give 3 × 4 = 12 outfits.
Theoretical vs. experimental probability
Theoretical probability comes from reasoning about equally likely outcomes. Experimental probability (relative frequency) comes from actually doing the experiment: the number of times the event happened divided by the number of trials. If you flip a coin 50 times and get 28 heads, the experimental probability of heads is 28/50 = 0.56. The more trials you do, the closer the experimental probability usually gets to the theoretical one; this is called the law of large numbers.
Probabilities also predict how often to expect an event: in 600 rolls of a die you expect about 600 × 1/6 = 100 sixes, though the actual number will vary.
Independent and dependent events
Two events are independent if one does not change the probability of the other, like flipping a coin and rolling a die. Then the probability that both happen is the product:
P(A and B) = P(A) × P(B)
Two events are dependent if the first changes the probability of the second. This happens when you draw without replacement: after you take out a red marble, there is one red marble fewer and one marble fewer in total. Then
P(A and B) = P(A) × P(B given A)
Tree diagrams
A tree diagram shows all outcomes of an experiment with several steps. Each branch is labeled with its probability, and the branches leaving one point add up to 1.
- Draw a branch for each outcome of the first step and write its probability on it.
- From the end of each branch, draw the branches for the second step with their (possibly changed) probabilities.
- Multiply along a path to get the probability of that combination.
- Add the probabilities of all paths that belong to the event you want.
The addition rule: A or B
For “A or B” (at least one of them), add the probabilities and subtract the overlap so it is not counted twice:
P(A or B) = P(A) + P(B) − P(A and B)
If A and B cannot happen together (they are mutually exclusive), the overlap is 0 and you just add. Rolling a 1 or a 2: 1/6 + 1/6 = 1/3.
Conditional probability
The conditional probability P(A | B), read “the probability of A given B,” is the probability of A when you already know that B happened. You restrict the sample space to B: P(A | B) = P(A and B) ÷ P(B). Drawing a king from the 12 face cards of a deck: P(king | face card) = 4/12 = 1/3. Two-way tables make conditional probabilities easy to read off.
| Pet | No pet | Total | |
|---|---|---|---|
| Grade 6 | 14 | 6 | 20 |
| Grade 7 | 16 | 14 | 30 |
| Total | 30 | 20 | 50 |
Common mistakes
- Assuming outcomes are equally likely when they are not: a sum of 7 with two dice is six times as likely as a sum of 2.
- Adding when you should multiply: “A and B” for independent events multiplies; “A or B” adds (minus the overlap).
- Forgetting to change the numbers without replacement: the second draw has one marble fewer.
- Counting the overlap twice in “or” questions, such as the king of hearts.
- The gambler’s fallacy: after five heads in a row, the next flip of a fair coin is still 1/2.
- Mixing up P(A | B) and P(B | A).
Practice problems
Frequently asked questions
How do you calculate probability?
If all outcomes are equally likely, divide the number of favorable outcomes by the total number of outcomes. The probability of drawing a heart from a deck is 13/52 = 1/4.
What is the probability formula?
P(A) = (number of favorable outcomes) ÷ (total number of outcomes). For combined events: P(A and B) = P(A) × P(B) if independent, and P(A or B) = P(A) + P(B) − P(A and B).
What is the difference between independent and dependent events?
Independent events do not affect each other, like two coin flips. Dependent events do, like drawing two cards without putting the first one back: the second draw has different probabilities.
How do tree diagrams work?
Each branch shows an outcome and its probability. Multiply along a path to get the probability of that sequence, and add the paths that make up your event. See the tree diagram example.
What is the difference between probability and odds?
Probability compares favorable outcomes to all outcomes; odds compare favorable to unfavorable outcomes. For rolling a 6, the probability is 1/6, but the odds in favor are 1 to 5.
Keep learning
- Previous topic: geometry.
- Next topic: statistics.
- Writing probabilities as percents: percentages.
- In German: Wahrscheinlichkeitsrechnung.
Spotted a mistake or have a request? Send us a short message and we will take care of it.