Basic probability and contingency tables
Read simple, joint and marginal probabilities from a contingency table of 500 customers and use the complement and addition rules, including for mutually exclusive events.
It opens on
One of the 500 customers is picked at random. Which is more likely: that she bought Outdoor gear, or that she is an online customer who bought Outdoor gear?
Why it matters
Every risk estimate, from the chance an order is returned to the chance a shipment is late, starts as a count in a table turned into a probability, and the rules let us combine those chances correctly.
Good to know first
- contingency table
Step by step
Simple, marginal and joint probabilities
Read marginal and joint probabilities from the totals and cells of a contingency table of counts.
Half the customers are in the Online row, so P(Online) = 250 / 500 = 0.50. This comes from a total, so it is a marginal probability.
P(Online) = 250 / 500 = 0.50
A common mix-up
A joint probability can exceed one of its marginals.
In fact: Both events together are a smaller group, so a joint probability is never larger than either marginal.
The complement and addition rules
Use P(not A) = 1 − P(A) and the addition rule P(A or B) = P(A) + P(B) − P(A and B).
The chance that a customer did not buy Outdoor is 1 − 0.30 = 0.70, which matches 350 / 500.
P(not Outdoor) = 1 − 0.30 = 0.70
A common mix-up
P(A or B) is simply P(A) + P(B).
In fact: If the events overlap, that counts the overlap twice, and it must be subtracted once.
Mutually exclusive events
Recognise mutually exclusive events and use the simpler addition rule for them.
P(Outdoor or Apparel) = 0.30 + 0.38 = 0.68, and counting gives 340 / 500 = 0.68.
0.30 + 0.38 = 0.68
A common mix-up
Mutually exclusive events are independent.
In fact: Exclusive events cannot both happen, so knowing one happened tells you the other did not, which is dependence.
Try it
Find P(In store and Outdoor) and P(Apparel).Answer
60 / 500 = 0.12 and 190 / 500 = 0.38
Hint: a cell, then a column total
P(A) = 0.40, P(B) = 0.25 and P(A and B) = 0.10. Find P(A or B) and P(not A).Answer
0.55 and 0.60
Hint: Subtract the overlap once
In a month, an order is either shipped early, on time or late, with probabilities 0.15, 0.70 and 0.15. What is P(early or late), and why can you add?Answer
0.30, because the events are mutually exclusive
Hint: Can an order be both?
What is the probability that a random customer bought Home gear in store?Answer
95 / 500 = 0.19
What is P(In store or Apparel)? Store 0.50, Apparel 0.38, and the 95 store customers who bought Apparel are in both.Answer
0.50 + 0.38 − 0.19 = 0.69
