Instant PDF download, name-and-email checkout. Complete bundle: every Economics and Statistics book
Statistics guide, Unit 2, step 7 of 22Previous stepNext step

Step 7: Probability

SyllabusAP Stats 2.4–2.7
In 30 seconds
  • Probability measures how likely an event is, on a scale from 0 to 1. With equally likely outcomes, it is just counting: favourable outcomes ÷ total outcomes.
  • The key rules: complement \( P(A’) = 1 – P(A) \); addition \( P(A \text{ or } B) = P(A) + P(B) – P(A \text{ and } B) \); multiplication \( P(A \text{ and } B) = P(A) \times P(B \mid A) \).
  • Conditional probability \( P(B \mid A) = P(A \text{ and } B) \div P(A) \) shrinks the sample space to the cases where A happened.
  • Main exam point: \( P(A \mid B) \neq P(B \mid A) \). With a rare condition, even an accurate test produces more false positives than true ones, so always ask for the base rate.
Video lesson coming soonA short animated lesson for this step will appear here.

Randomness, sample spaces and events

When you roll a die, you can’t say which number will come up. But roll it 6,000 times and each number will turn up roughly 1,000 times. That is the heart of probability: single outcomes are unpredictable, but the long-run pattern is predictable.

Key termRandom experiment: any process whose individual outcome cannot be predicted with certainty, even though the pattern over many repetitions is predictable.

The sample space \( S \) is the set of all possible outcomes. For one die roll, \( S = \{1, 2, 3, 4, 5, 6\} \). An event is any collection of outcomes; “rolling an even number” is the event \( \{2, 4, 6\} \). The probability of an event, \( P(A) \), always lies between 0 (impossible) and 1 (certain), and the probabilities of all outcomes in \( S \) add up to 1.

When every outcome is equally likely, probability is just counting:

\[ P(A) = \frac{\text{number of outcomes in } A}{\text{total number of outcomes in } S} \]

For example, the chance of rolling more than 4 on a fair die is \( 2 \div 6 = 1/3 \approx 0.333 \), because only 5 and 6 qualify.

The law of large numbers says that as you repeat an experiment more and more times, the observed proportion of an event settles towards its true probability.

Common mistakeThe gambler’s fallacy. After five heads in a row, tails is not “due”. The chance of tails on the next flip is still 0.5, because a coin has no memory.

The complement and addition rules

The complement of event A, written \( A’ \) (“not A”), is everything in the sample space outside A. Since A and not-A cover everything:

\[ P(A’) = 1 – P(A) \]

This is often the fastest route to an answer. Whenever a question says “at least one”, work out the probability of “none” and subtract from 1. For four coin flips, the only way to get no heads is four tails: \( 0.5^4 = 0.0625 \). So \( P(\text{at least one head}) = 1 – 0.0625 = 0.9375 \).

The addition rule handles “A or B”. Two events are mutually exclusive if they cannot happen together; a single die roll can’t be both a 2 and a 5. If events can overlap, simply adding their probabilities counts the overlap twice, so you subtract it once.

\[ P(A \text{ or } B) = P(A) + P(B) – P(A \text{ and } B) \]

For mutually exclusive events \( P(A \text{ and } B) = 0 \), so the rule becomes \( P(A) + P(B) \).

Worked example

One card is drawn from a standard 52-card deck. Find the probability that it is a heart or a face card (J, Q, K).

Step 1Hearts: \( P(\text{heart}) = 13/52 \). Face cards: \( P(\text{face}) = 12/52 \).
Step 2Overlap (J, Q, K of hearts): \( P(\text{heart and face}) = 3/52 \).
Step 3\( P(\text{heart or face}) = \dfrac{13 + 12 – 3}{52} = \dfrac{22}{52} \approx 0.423 \)

Forgetting to subtract the 3 overlapping cards would give the wrong answer of 25/52.

The multiplication rule and independence

The multiplication rule handles “A and B”: both events happening.

Key termIndependent events: two events where knowing that one happened does not change the probability of the other.
\[ P(A \text{ and } B) = P(A) \times P(B \mid A) \qquad \text{independent: } P(A \text{ and } B) = P(A) \times P(B) \]

\( P(B \mid A) \) means “the probability of B given that A happened”. Successive coin flips are independent. Drawing two cards without putting the first back is not, because removing the first card changes what is left.

Worked example

A bag holds 6 red and 4 blue marbles. Find the probability of drawing two reds (a) with replacement and (b) without replacement.

Step 1With replacement the bag resets, so the draws are independent: \( \dfrac{6}{10} \times \dfrac{6}{10} = 0.36 \)
Step 2Without replacement, after one red is taken, 5 reds remain among 9 marbles: \( P(\text{2nd red} \mid \text{1st red}) = 5/9 \)
Step 3\( \dfrac{6}{10} \times \dfrac{5}{9} = \dfrac{30}{90} \approx 0.333 \)

The second answer is smaller because removing a red leaves fewer reds.

Common mistakeConfusing “mutually exclusive” with “independent”. They mean opposite things. Mutually exclusive: the events cannot happen together, so \( P(A \text{ and } B) = 0 \). Independent: one tells you nothing about the other, so \( P(A \text{ and } B) = P(A)P(B) \). Two mutually exclusive events (each with probability above 0) are always dependent: if A happened, you know for certain B did not.

Tree diagrams

When an experiment happens in stages, a tree diagram keeps track. Each branch carries the probability of that step. Multiply along a path to get the probability of that whole sequence, and add across paths that give the event you want.

Worked example

Machine A makes 60% of a factory’s items, and 3% of its items are defective. Machine B makes the other 40%, with 5% defective. Find (a) the overall proportion defective and (b) the probability that a defective item came from machine A.

Step 1Path A then defective: \( 0.60 \times 0.03 = 0.018 \)
Step 2Path B then defective: \( 0.40 \times 0.05 = 0.020 \)
Step 3Add the defective paths: \( P(\text{defective}) = 0.018 + 0.020 = 0.038 \), or 3.8%.
Step 4Restrict to defective items: \( P(A \mid \text{defective}) = 0.018 \div 0.038 \approx 0.474 \)

Machine A makes most of the items (60%) but slightly fewer than half the defects, because its defect rate is lower. Reversing the condition changed the answer.

Conditional probability and two-way tables

A conditional probability asks about one event given that another has already happened. It shrinks your attention to just the cases where the given event occurred.

\[ P(B \mid A) = \frac{P(A \text{ and } B)}{P(A)} \]

Read it as: of all the times A happens, what fraction also have B? For example, if 40% of students play a sport and 25% play a sport and an instrument, then \( P(\text{instrument} \mid \text{sport}) = 0.25 \div 0.40 = 0.625 \). A and B are independent exactly when \( P(B \mid A) = P(B) \).

Two-way tables make this easy. Here 200 students are classified by laptop ownership and commuting:

CommutesDoes not commuteRow total
Owns laptop7060130
No laptop502070
Column total12080200
  • Joint (one inner cell over the grand total): \( P(\text{laptop and commutes}) = 70/200 = 0.35 \)
  • Marginal (a row or column total over the grand total): \( P(\text{laptop}) = 130/200 = 0.65 \)
  • Conditional (restrict to one row or column): \( P(\text{laptop} \mid \text{commutes}) = 70/120 \approx 0.583 \)

The denominator tells you which kind you are calculating.

Reversing the condition: the medical-test problem

The probability that someone carries an umbrella given that it is raining is high. The probability that it is raining given that someone carries an umbrella is much lower, because people carry umbrellas on cloudy days too. Same two events, very different conditional probabilities.

Mixing these up is called the prosecutor’s fallacy. To reverse a condition properly, you need the base rate.

Key termBase rate: how common a condition is in the population before any test or evidence is considered.

Here is the classic case. A disease affects 1% of people. A test correctly detects 99% of people who have it, and correctly clears 95% of people who don’t, so it has a 5% false-positive rate. You test positive. How likely is it that you have the disease? Most people guess 95–99%. Imagine a large group and count.

Worked example

Imagine 10,000 people and find \( P(\text{disease} \mid \text{positive}) \).

Step 1Split by disease: \( 1\% \times 10000 = 100 \) sick; \( 10000 – 100 = 9900 \) healthy.
Step 2True positives: \( 0.99 \times 100 = 99 \). False positives: \( 0.05 \times 9900 = 495 \).
Step 3Total positives: \( 99 + 495 = 594 \).
Step 4\( P(\text{disease} \mid \text{positive}) = \dfrac{99}{594} \approx 0.167 \), about 17%.

Even after a positive result from an accurate test, there is roughly an 83% chance you do not have the disease. The 5% error rate is small, but it is applied to 9,900 healthy people, so false alarms swamp the 99 true detections. That is why doctors usually order a second, different test.

Exam tipWrite each probability in symbols before calculating, such as \( P(\text{disease} \mid \text{positive}) \), so the examiner can see which event is “given”. For base-rate questions, build a table of counts from 1,000 or 10,000 people and show every count. Then sanity-check: every answer must lie between 0 and 1, and the branches of a tree must add to 1.

Practise: 6 questions

Try each one on paper first, then check the worked answer.

EasyQ1. A bag has 5 red, 3 green and 2 yellow marbles. Find \( P(\text{green}) \) and \( P(\text{not yellow}) \). Show worked answer
Total marbles: \( 5 + 3 + 2 = 10 \).
\( P(\text{green}) = 3/10 = 0.3 \).
\( P(\text{yellow}) = 2/10 = 0.2 \), so \( P(\text{not yellow}) = 1 – 0.2 = 0.8 \).
EasyQ2. \( P(A) = 0.5 \), \( P(B) = 0.4 \) and \( P(A \text{ and } B) = 0.2 \). Find \( P(A \text{ or } B) \). Show worked answer
\( P(A \text{ or } B) = 0.5 + 0.4 – 0.2 = 0.7 \).
The overlap is subtracted once so it is not counted twice.
MediumQ3. A fair die is rolled twice. Find the probability of at least one 6. Show worked answer
Use the complement. \( P(\text{no 6 on one roll}) = 5/6 \).
The rolls are independent: \( P(\text{no 6 on either}) = \dfrac{5}{6} \times \dfrac{5}{6} = \dfrac{25}{36} \).
\( P(\text{at least one 6}) = 1 – \dfrac{25}{36} = \dfrac{11}{36} \approx 0.306 \).
MediumQ4. Using the laptop and commuting table, find \( P(\text{owns laptop} \mid \text{does not commute}) \) and \( P(\text{does not commute} \mid \text{owns laptop}) \). Why are they different? Show worked answer
Restrict to the 80 non-commuters: \( 60/80 = 0.75 \).
Restrict to the 130 laptop owners: \( 60/130 \approx 0.462 \).
They use different denominators: reversing the condition changes the group you are looking at, so \( P(A \mid B) \neq P(B \mid A) \).
MediumQ5. \( P(A) = 0.5 \), \( P(B) = 0.4 \) and \( P(A \text{ and } B) = 0.30 \). Are A and B independent? Show worked answer
If independent, \( P(A \text{ and } B) \) would equal \( 0.5 \times 0.4 = 0.20 \).
The actual value is 0.30, and \( 0.30 \neq 0.20 \), so A and B are not independent.
(Equivalently, \( P(B \mid A) = 0.30 \div 0.5 = 0.6 \), which differs from \( P(B) = 0.4 \).)
ExamQ6. A disease affects 2% of a population. A test detects 90% of cases and has a 10% false-positive rate. Using 10,000 people, find the probability that a person who tests positive has the disease, and explain why it is so much lower than 90%. [6 marks] Show worked answer
Sick: \( 0.02 \times 10000 = 200 \); healthy: \( 9800 \) [1].
True positives: \( 0.90 \times 200 = 180 \) [1].
False positives: \( 0.10 \times 9800 = 980 \) [1].
Total positives: \( 180 + 980 = 1160 \) [1].
\( P(\text{disease} \mid \text{positive}) = 180 \div 1160 \approx 0.155 \), about 16% [1].
Explanation: the healthy group is 49 times larger than the sick group, so its 10% error rate produces far more false alarms (980) than true detections (180). The low base rate, not the test’s quality, drives the result [1].

Check yourself

1. Two events each have probability above 0 and cannot happen together. They are…

If one happens you know the other did not, so knowing one changes the probability of the other.

2. A fair coin has landed heads five times in a row. The probability of heads on the next flip is…

Flips are independent; believing otherwise is the gambler’s fallacy.

3. In a two-way table, which denominator gives a conditional probability?

Conditioning restricts you to one row or column, so its total goes underneath.

Your score: 0 out of 3

The short version

  • Probabilities lie between 0 and 1; with equally likely outcomes, count favourable over total. Past flips do not change the next one.
  • Complement for “at least one”; addition for “or” (subtract the overlap); multiplication for “and” (use \( P(B \mid A) \) unless independent).
  • Mutually exclusive is not the same as independent. Trees: multiply along, add across.
  • \( P(B \mid A) = P(A \text{ and } B) \div P(A) \), and \( P(A \mid B) \neq P(B \mid A) \). With a rare condition, false positives can swamp true ones.
  • The full chapter in Statistics Made Simple has 54 practice questions with worked answers, including more base-rate problems.
Want more questions like these, with worked answers?
The practice book has hundreds more, graded from easy to exam level.
Next: step 8 of 22Discrete Random Variables