Lesson 42 of 46 · Data analysis
Probability: compound events and conditional probability
Find probabilities by counting, combine events with "and", "or" and "not", draw without replacement, and read conditional probabilities from a two-way table.
About 24 minutes
In this lesson
- Compute a probability by counting equally likely outcomes, and use the complement for "at least one".
- Combine events with the addition rule and, for independent or dependent events, the multiplication rule.
- Find a conditional probability from a two-way table and tell P(A given B) from P(B given A).
The idea
Probability as a fraction of outcomes
When every outcome is equally likely,
A probability is always between 0 (impossible) and 1 (certain). Drawing one marble from a bag of 5 red, 3 blue and 2 green, . Everything in this lesson either counts outcomes like this or combines probabilities you already have.
"Not": the complement
The probability that an event does not happen is
This is the tool for "at least one". Counting all the ways to get at least one success is messy; the only way to fail is to get no successes, which is usually one simple case. So .
"Or": the addition rule
The subtraction removes outcomes counted in both, exactly as in a Venn diagram. If and cannot happen together (they are mutually exclusive), and the probabilities simply add. Rolling a fair six-sided die, "even" and "greater than 4" overlap at 6, so ; listing the outcomes 2, 4, 5, 6 confirms it.
"And": the multiplication rule
Two events are independent if knowing that one happened does not change the probability of the other: separate coin tosses, separate dice, draws with replacement. For independent events,
When the first event changes the situation for the second, the events are dependent, and you multiply by the probability of the second given the first:
Drawing without replacement is the usual case. From the bag of 10 marbles above, the probability that two draws are both red is , because after one red marble is gone, 4 of the 9 left are red.
Do not confuse "independent" with "mutually exclusive". Mutually exclusive events with positive probabilities are never independent: if one happens, the other's probability drops to 0.
Probability by counting
When the process is a selection, counting methods give the probability directly. The chance that a random group of 2 from the 10 marbles is both red is
the same as . Having two routes gives you a check.
When an outcome can happen in more than one order (one red and one blue, say), multiplying along one order counts only that order. Either add the orders, or count unordered groups.
Conditional probability
, read "the probability of given ", is the probability of when you already know happened. Knowing shrinks the set of possible outcomes to itself:
With a two-way table of counts, this is just a fraction of one row or one column: the count in the cell for " and " divided by the total for . The word after "given" (or after "of those who", "among") names the total you divide by.
and are different numbers in general, because they divide by different totals. The probability that a randomly chosen basketball player is tall is high; the probability that a randomly chosen tall person plays basketball is low.
Two events are independent exactly when : knowing tells you nothing new about . A two-way table lets you test this by comparing a row's proportion with the overall proportion.
A routine for any question
- Decide what one outcome is, and whether outcomes are equally likely.
- Translate the words: "and" multiplies, "or" adds (minus the overlap), "not" and "at least one" use the complement, "given" divides by a smaller total.
- Check independence before multiplying.
- Sanity-check: the answer lies between 0 and 1, and an "and" probability is no larger than either event alone.
Worked examples
Example 1: Two draws without replacement
A bag holds 5 red, 3 blue and 2 green marbles. Two marbles are drawn at random without replacement. What is the probability that both are red?
First draw: 5 of the 10 marbles are red, so .
Given that a red marble is gone, 4 of the remaining 9 are red: .
Multiply: .
Check by counting: red pairs out of pairs in all, and .
Answer
The probability is , about 0.22. Treating the draws as if the first marble were replaced gives , the tempting wrong answer.
Example 2: At least one, through the complement
On any day, a machine breaks down with probability 0.1, independently of other days. What is the probability that it breaks down on at least one of three days?
"At least one" has several cases (one, two or three breakdowns). Its complement, "no breakdown on any day", is a single case.
No breakdown on one day: . On three independent days: .
At least one breakdown: .
Answer
The probability is 0.271. Adding is the tempting wrong answer: it counts the days with two or three breakdowns more than once, and with enough days it would exceed 1.
Example 3: Conditional probability from a two-way table
A firm's 200 employees, by department and where they work:
| Remote | Office | Total | |
|---|---|---|---|
| Engineering | 48 | 32 | 80 |
| Sales | 36 | 84 | 120 |
| Total | 84 | 116 | 200 |
An employee is chosen at random. Find and , and decide whether working remotely is independent of department.
Given engineering, the total is the Engineering row, 80, and 48 of them are remote: .
Given remote, the total is the Remote column, 84, and 48 of them are in engineering: .
Overall, .
Since is not , knowing the department changes the probability: the events are not independent.
Answer
, , and the events are not independent. Using for either conditional probability is the common slip: that is the probability of "remote and engineering".
Common traps
Adding probabilities that overlap
counts the outcomes in both events twice. Subtract unless the events cannot happen together. A sum above 1 is a sure sign of this error.
Multiplying dependent events as if independent
Without replacement, the second draw comes from a smaller, changed collection. Reduce both the favourable count and the total before multiplying.
Reversing a conditional probability
"Of the remote workers, what fraction are engineers?" divides by the remote total; "of the engineers, what fraction work remotely?" divides by the engineering total. Name the total after "given" or "of those" before writing the fraction.
Counting only one order
"One red and one blue" can happen as red then blue or blue then red. Multiplying along one order gives half the answer; add both orders, or count unordered selections.
Check yourself
Answer each question before you open its answer.
Question 1: One of each colour
Data Analysis: probability
A box contains 4 white tokens and 6 black tokens. Two tokens are drawn at random without replacement. What is the probability that one token is white and the other is black?
- A.
- B.
- C.
- D.
- E.
Show the answer
Answer: E.
Working
White then black: . Black then white: . Total: . By counting: mixed pairs out of pairs, and . As a further check, .
Why the other options are wrong
- A. This is the probability that both are white, .
- B. This counts only one order, white then black (); black then white is equally likely and must be added.
- C. This is the probability that both are black, .
- D. This is , which treats the draws as if the first token were put back.
What carries over
For a mixed outcome, count every order or count unordered groups; the two routes must agree.
Question 2: "Or" for independent events
Quantitative Comparison
Events and are independent, with and .
| Quantity A | Quantity B |
|---|---|
| The probability that or (or both) occurs | 0.7 |
- A.Quantity A is greater.
- B.Quantity B is greater.
- C.The two quantities are equal.
- D.The relationship cannot be determined from the information given.
Show the answer
Answer: C. The two quantities are equal.
Working
Because the events are independent, . Then . Through the complement: , and .
Why the other options are wrong
- A. This adds without removing the outcomes where both events occur.
- B. This comes from subtracting too much, for example treating "or" as "exactly one of them" ().
- D. The overlap is not given directly, but independence fixes it: .
What carries over
Independence gives you the overlap; then use the addition rule or the complement.
Question 3: Given that they prefer tea
Data Analysis: conditional probability
A survey of 150 people:
| Prefers tea | Prefers coffee | Total | |
|---|---|---|---|
| Under 30 | 18 | 42 | 60 |
| 30 and over | 54 | 36 | 90 |
| Total | 72 | 78 | 150 |
One of the people who prefer tea is chosen at random. What is the probability that this person is under 30?
- A.
- B.
- C.
- D.
- E.
Show the answer
Answer: B.
Working
The person is known to prefer tea, so the total is the tea column, 72. Of these, 18 are under 30: .
Why the other options are wrong
- A. This is , the probability that a person from the whole survey is both under 30 and prefers tea.
- C. This is , the probability of preferring tea given under 30: the condition is reversed.
- D. This is , the share of everyone surveyed who are under 30, ignoring that the person prefers tea.
- E. This is , the probability of preferring tea, not of being under 30.
What carries over
The condition names the row or column you divide by; the cell where both hold goes on top.
Key points
"And" multiplies (using the updated probability if events are dependent); "or" adds and subtracts the overlap.
For "at least one", subtract the probability of "none" from 1.
Without replacement, both the favourable count and the total shrink.
divides by the total for ; it is generally not equal to .
All questions here are original and written for UniExamer; none comes from the test maker.
Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.