Sometimes to count possibilities it is easier to over count and then count how much the over count was and fix it. For example, consider the size of the union of two sets \(A\) and \(B\) as shown in FigureΒ 4.5.1. Note that \(|A|+|B|\) over counts the size of the union by precisely \(|A \cap B|.\) Thus the correct count is \((|A|+|B|)-|A \cap B|.\)
This can be extended to three sets. See FigureΒ 4.5.2. This time there are three pairs of sets that overlap. Thus the count starts \((|A|+|B|+|C|)-(|A \cap B|+|A \cap C|+|B \cap C|).\) However this removes \(|A \cap B \cap C|\) three times. Thus the correct count is \((|A|+|B|+|C|)-(|A \cap B|+|A \cap C|+|B \cap C|)+|A \cap B \cap C|.\)
Because this process first includes (adds) everything, next excludes (subtracts) some things, then includes (adds) other things, the technique is called inclusion/exclusion.
Suppose you know that in the fall 2020 semester 37 distinct students took MATH A261, 25 distinct students took CSCE A311, and 11 distinct students took both. How many students total took either MATH A261 or CSCE A311 in the Fall 2020 semester?
If you know the following, what do you still need to know to determine the number of distinct students placing into MATH A054, WRTG A080, or having an SAT score below 1290?