Use a complementary event to simplify a count
Keep the numerator and denominator in the stated order. · 180 words
A bookstore receives 120 new books. Eighteen are mysteries, and the rest cover other subjects. Let M mean that a chosen book is a mystery. The complementary event, written M^c, means that the book is not a mystery. It includes every other genre. If a stock report asks for the number of books that are not mysteries, count the complement directly: 120 - 18 = 102. This is often easier than sorting all 102 books into separate genre lists. In general, count(M^c) equals the total count minus count(M).
At a train station, 3 of 40 scheduled trains are delayed. Choose one train uniformly from these forty. Let D mean that this train is delayed. Its complement means the chosen train is on time. Since forty minus three leaves thirty-seven trains on time, the probability of the complement is 37/40, or 92.5 percent. The probability of D is 3/40, or 7.5 percent. Every possible case belongs either to D or to D^c, but not both. The shortcut is useful when the desired event includes many cases while its complement has few.
Check your recall
A bookstore receives 120 books, and 18 are mysteries. How many books are not mysteries?
Check your answer
There are 102 non-mystery books. Use the complementary event and subtract: 120 - 18 = 102.
Sources and credits
Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.