Sets collect objects; counting formulas and Venn diagrams turn survey problems into simple arithmetic on the regions of the diagram.
| Subsets of a set with n elements | n[P(A)] = 2ⁿ; proper subsets 2ⁿ − 1 |
| Two sets | n(A ∪ B) = n(A) + n(B) − n(A ∩ B) |
| Only A | n(A − B) = n(A) − n(A ∩ B) |
| Exactly one of A, B | n(A) + n(B) − 2n(A ∩ B) |
| Neither | n(A′ ∩ B′) = n(U) − n(A ∪ B) |
| Three sets | n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(B ∩ C) − n(C ∩ A) + n(A ∩ B ∩ C) |
| Exactly two (everyone in at least one) | n(A) + n(B) + n(C) − n(A ∪ B ∪ C) − 2n(A ∩ B ∩ C) |
Every one of 73 customers chose at least one of shampoo A, shampoo B and shampoo C: 35 chose shampoo A, 32 shampoo B, 46 shampoo C; 11 chose shampoo A and shampoo B, 17 chose shampoo B and shampoo C, 21 chose shampoo C and shampoo A. Find (a) how many chose all three (b) how many chose exactly one.
Working: (a) 73 = 113 − 49 + n(all three); (b) only shampoo A = 35 − 11 − 21 + 9 = 12, and so on: 12 + 13 + 17
Answer: (a) 9; (b) 42