The sum rule states that if A and B are disjoint sets then ∣A∪B∣=$|A| + |B|$.
According to the sum rule, if A1,A2,...,An are nparwise disjoint sets then ∣A1∪A2∪...∪An∣=$|A_1| + |A_2| + ... + |A_n|$.
title: ExampleA student can choose one project from project lists of three lecturers.- John's list has 11.- Bill's has 10.- Eve's has 8.No project occurs twice. How many possible projects are there to choose from?- $A = \{ p | p \text{ is a project on John's list} \}$- $B = \{ p | p \text{ is a project on Bill's list} \}$- $C = \{ p | p \text{ is a project on Eve's list} \}$Hence $|A \cup B \cup C| = |A| + |B| + |C| = 29$.
The inclusion-exclusion principle states that ∣A∪B∣=$|A| + |B| - |A \cap B|$.
The inclusion-exclusion principle can be applied for three sets, by applying the same rule twice, ∣A∪(B∪C)∣, giving us:
?
∣A∪B∪C∣=∣A∪(B∪C)∣=∣A∣+∣B∪C∣−∣A∩(B∪C)∣=∣A∣+∣B∣+∣C∣−∣B∩C∣−∣A∩(B∪C)∣=∣A∣+∣B∣+∣C∣−∣B∩C∣−∣(A∩B)∪(A∩C)∣=∣A∣+∣B∣+∣C∣−∣B∩C∣−(∣A∩B∣+∣A∩C∣−∣(A∩B)∩(A∩C)∣)=∣A∣+∣B∣+∣C∣−∣B∩C∣−∣A∩C∣−∣A∩C∣+∣A∩B∩C∣Link to original