Tutorials › Introduction to Statistics › Complementary Counting for Restricted Selections

Probability Rules and Counting · Tutorial 316 of 996

Complementary Counting for Restricted Selections

Use combinations and a carefully defined complement to count selections that meet an “at least one” condition or avoid a forbidden arrangement.

Beginner 8 min read

What You'll Learn

  • Identify the full set of possible unordered selections.
  • Define the disallowed selections that form the complement of a target condition.
  • Count selections with combinations when order does not matter.
  • Apply complementary counting to “at least one” requirements.
  • Count selections that exclude a specified combination of objects.
  • Check that the target and disallowed counts partition all possibilities.

Why Count What You Do Not Want?

Some selection questions sound as though they require listing many different cases. For example, a committee might need to include at least one person from a particular group. One approach is to count committees with exactly one person from that group, then exactly two, and so on, and add the results. But if the condition is simply “at least one,” there is often a shorter route: count all possible committees, then subtract committees with no one from the group.

This strategy is called complementary counting. It is especially useful when the disallowed selections are easier to describe and count than all the separate ways to satisfy the condition. The selections in these examples are unordered: a committee containing A, B, and C is the same committee regardless of the order in which its members are named.

Definition: For a set of possible selections and a target condition, the complement of the target consists of all possible selections that do not satisfy that condition. If the target selections and their complement together make up the full set, with no selection in both groups, then $$ \text{number satisfying the condition} = \text{number of all selections} - \text{number violating the condition}. $$

Counting a Selection and Its Complement

When choosing \(k\) objects from \(n\) distinct objects without regard to order, the number of selections is \(\binom{n}{k}\). In particular, choosing \(k\) people for a committee does not create different outcomes for different orderings of the same people.

Suppose \(r\) of the \(n\) objects belong to a group of interest, and the other \(n-r\) objects do not. For a selection of \(k\) objects, the condition “at least one object from the group” fails exactly when every selected object is outside the group. There are \(\binom{n}{k}\) selections altogether and \(\binom{n-r}{k}\) selections made entirely from outside the group. Therefore:

$$ \text{number with at least one from the group} = \binom{n}{k}-\binom{n-r}{k}. $$

This expression assumes the full pool is divided into the group and its complement, the objects are distinct, and each selection contains exactly \(k\) objects. If there are fewer than \(k\) objects outside the group, then no selection can avoid the group. In that case the disallowed count is zero; equivalently, we use \(\binom{n-r}{k}=0\) when \(k>n-r\).

Why the Subtraction Works

The key is not a special property of committees; it is that every possible selection falls into exactly one of two categories: it satisfies the target condition, or it does not. Those categories do not overlap, and together they account for every selection. This gives a direct counting justification.

1
Count the full set.
List or calculate the number of all selections allowed by the basic setup, before applying the extra condition.
2
State the opposite condition precisely.
For “at least one from a group,” the opposite is “none from that group.” For a rule against selecting two particular people together, the opposite is “both are selected.”
3
Count the disallowed selections.
Use combinations to count only selections that meet the opposite condition.
4
Subtract and check.
Subtract the disallowed count from the full count. Confirm that the result is nonnegative and no greater than the full count.

In symbols, let \(S\) be the set of all possible selections and \(A\) the subset satisfying the target condition. The selections in \(S\) that are not in \(A\) form its complement, written \(A^c\). Since \(A\) and \(A^c\) are disjoint and together equal \(S\), their counts add:

$$ |S|=|A|+|A^c| \quad\Longrightarrow\quad |A|=|S|-|A^c|. $$

The proof depends on identifying the complement correctly. Subtraction is valid even when there are many ways to satisfy the condition, but only if every disallowed selection is counted once and only once.

Worked Example: A Committee With at Least One Nurse

A fictional clinic has 10 distinct staff members: 3 nurses and 7 other staff members. A four-person committee is selected. How many possible committees include at least one nurse?

Model the selections. A committee is an unordered selection of 4 people from the 10, so the total number of committees is \(\binom{10}{4}\). The target is “at least one nurse.” Its complement is “no nurses,” meaning all 4 committee members must be chosen from the 7 other staff members.

Count all committees:

$$ \binom{10}{4} = \frac{10!}{4!6!} = 210. $$

Count committees with no nurses:

$$ \binom{7}{4} = \frac{7!}{4!3!} = 35. $$

Subtract the disallowed committees:

$$ 210-35=175. $$

There are 175 possible four-person committees with at least one nurse. The calculation counts committees, not different ways of arranging committee members; each group of four people is counted once.

When the Complement Fixes Some Objects

Not every restriction is an “at least one” condition. Complementary counting also works when a rule forbids a particular combination. For instance, if two specified people may not serve together, the disallowed selections are precisely those containing both people. To count those, treat the two specified people as already included and choose the remaining positions from everyone else.

Worked Example: Excluding a Pair From the Same Committee

A fictional club has 11 distinct members. A four-person committee is selected, but two particular members, Lee and Morgan, may not both be on the committee. How many committees obey the rule?

Count all committees. Ignoring the restriction, there are

$$ \binom{11}{4} = \frac{11!}{4!7!} = 330. $$

Count the forbidden committees. Every forbidden committee contains Lee and Morgan. Once those two positions are filled, two more people must be chosen from the other 9 members:

$$ \binom{9}{2} = \frac{9!}{2!7!} = 36. $$

The rule allows all committees except those 36 forbidden ones. Thus:

$$ 330-36=294. $$

There are 294 committees in which Lee and Morgan are not both selected. This includes committees with neither person and committees with exactly one of them. It excludes only committees with both.

Choosing the Easiest Side to Count

A complement is useful when the opposite condition has a simple description. “At least one” often has an especially simple opposite: “none.” Likewise, a rule forbidding a particular pair has a clearly defined forbidden group: selections containing that pair. In other problems, directly counting the target may be just as easy, or easier. The goal is not to use subtraction automatically, but to compare the work involved in counting each side.

For example, suppose a fictional reading group chooses 5 books from a shelf of 12, of which 4 are reference books and 8 are novels. To find the number of selections with at least one reference book, counting “no reference books” is straightforward: choose all 5 books from the 8 novels. The set of all books and the disallowed set satisfy the assumptions for combinations: the books are distinct, exactly 5 are chosen, and order on the shelf does not affect which books were selected.

Worked Example: Selecting at Least One Reference Book

A fictional reading group selects 5 distinct books from 12. Four are reference books and eight are novels. How many selections contain at least one reference book?

There are \(\binom{12}{5}\) selections in total. A selection with no reference books must consist entirely of novels, so there are \(\binom{8}{5}\) such selections. Evaluating each count:

$$ \binom{12}{5} = \frac{12!}{5!7!} = 792, \qquad \binom{8}{5} = \frac{8!}{5!3!} = 56. $$

Therefore the number containing at least one reference book is

$$ 792-56=736. $$

There are 736 possible selections of 5 books with at least one reference book. As a check, the number is positive and smaller than the total of 792, as it must be after removing the 56 selections with no reference books.

Common Mistakes

  • Subtracting the wrong complement. For “at least one nurse,” subtract committees with no nurses, not committees with exactly one nurse. The exact opposite of “at least one” is “none.”
  • Counting the forbidden selections incorrectly. If a forbidden committee must contain two specified people, those two people are already chosen. Count only the remaining positions from the remaining people.
  • Using permutations for an unordered selection. If a committee is defined by its members, rearranging the same members does not create a new committee. Use combinations, not arrangements.
  • Subtracting a count that overlaps itself. If the forbidden condition can happen in different ways, check whether a selection could be counted under more than one forbidden case. The complement count must count each disallowed selection exactly once.
  • Forgetting the basic selection setup. The combination count assumes distinct objects and a fixed selection size. If order matters, or objects can be selected more than once, the counting model must change.

A useful final check is to describe in words what one item in each count represents. For example, \(\binom{7}{4}\) in the committee example counts one particular group of four people chosen from the seven non-nurses. This makes it easier to catch a mismatch between the scenario and the formula.

Check Your Understanding

For each question, identify the full set of selections and the disallowed selections before calculating.

  1. A fictional department has 9 staff members, including 2 statisticians. How many three-person groups include at least one statistician?
  2. A team of 5 is chosen from 13 distinct players. How would you count teams with no members from a specified group of 4 players?
  3. Seven distinct prizes are available, and 3 are selected. Two particular prizes cannot both be selected. What combination counts the disallowed selections?
  4. Why is “at least one person from a group” naturally counted by subtracting selections with none from that group?
  5. A student counts every ordering of the same four-person committee as a different committee. Explain the error and name the appropriate counting method.