Conditional probability and independence
Find a conditional probability from a contingency table, use the multiplication rule to test whether two events are independent, and follow the branches of a two-stage tree.
It opens on
Among Harbor and Pine's online customers, is the share who bought Outdoor gear higher than, lower than or the same as the share among all 500 customers?
Why it matters
Chances in business change with what we already know, such as the chance of a defect given the supplier, and treating dependent events as independent leads to wrong forecasts.
Good to know first
- marginal and joint probability
Step by step
Conditional probability
Compute P(A | B) from a contingency table by restricting to the row or column of B.
P(Outdoor | Online) = 90 / 250 = 0.36.
P(Outdoor | Online) = 90 / 250 = 0.36
A common mix-up
P(A | B) is the same as P(B | A).
In fact: The whole changes: 0.36 of online customers bought Outdoor, but 0.60 of Outdoor buyers were online.
The multiplication rule and independence
Use P(A and B) = P(B) × P(A | B) and test independence by comparing P(A | B) with P(A).
P(Online and Outdoor) = P(Online) × P(Outdoor | Online) = 0.50 × 0.36 = 0.18, which matches the cell 90 / 500.
0.50 × 0.36 = 0.18
A common mix-up
Events that look unrelated are independent.
In fact: Independence is a numerical fact to be checked: P(A | B) = P(A), or P(A and B) = P(A) × P(B).
Tree diagrams for two stages
Draw and multiply along a two-stage tree to find the joint probabilities and the total probability of an outcome.
P(B and defective) = 0.40 × 0.05 = 0.020.
0.40 × 0.05 = 0.020
A common mix-up
The 2% and 5% can simply be averaged.
In fact: The defect chance must be weighted by how many parts each supplier sends, so P(defective) is 3.2%, not 3.5%.
Try it
Find P(Home | Online).Answer
65 / 250 = 0.26
Hint: The Online row is the whole
P(A) = 0.50, P(B) = 0.40 and P(A and B) = 0.25. Are A and B independent?Answer
No, since 0.50 × 0.40 = 0.20, not 0.25
Hint: Compare the product with the joint
Warehouse X ships 70% of orders and is late 10% of the time. Warehouse Y ships 30% and is late 20% of the time. Find P(late).Answer
0.70 × 0.10 + 0.30 × 0.20 = 0.13
Hint: Multiply along each late path, then add
Given that a customer shops in store, what is the probability she bought Apparel?Answer
95 / 250 = 0.38
Apparel has P(Apparel | Online) = 95 / 250 = 0.38 and P(Apparel) = 190 / 500 = 0.38. Are Apparel and Online independent?Answer
Yes, since P(Apparel | Online) = P(Apparel)
