Double countingIn combinatorics, double counting, also called two-way counting, is a proof technique that involves counting the size of a set in two ways in order to show that the two resulting expressions for the size of the set are equal.
For instance, consider the number of ways in which a committee can be formed from a total of n people:
Method 1: There are two possibilities for each person - they may or may not be on the committee. Therefore there are a total of 2 * 2 * ... * 2 (n times) = 2n possibilities.
Method 2: The size of the committee must be some number between 0 and n. The number of ways in which a committee of r people can be formed from a total of n people is nCr (this is a well known result; see binomial coefficient). Therefore the total number of ways is nCr summed over r = 0, 1, 2, ... n.
Equating the two expressions gives
Double counting is also a fallacy in which, when counting events or occurrences in probability or in other areas, a solution counts events two or more times, resulting in an erroneous number of events or occurrences which is higher than the true result. For example, what is the probability of seeing a 5 when throwing a pair of dice? The erroneous argument goes as follows: The first die shows a 5 with probability 1/6; the second die shows a 5 with probability 1/6; therefore the probability of seeing a 5 is 1/6 + 1/6 = 1/3. However, the correct answer is 11/36, because the erroneous argument has double-counted the event where both dice show fives. See also inclusion-exclusion principle.