Make learning comfortable
Intermediate Counting and Probability / LEVEL 2 · DIFFICULTY 2/5
Exclusion, Expectation and Recurrences
Count indirectly and build recursive models.
Choose a node to explore its lesson.
STAGE IC 2.1 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Derangements
Useful preparation: Upper Bounds by Subtraction
Goal: Understand and apply derangements.
Before you begin: Upper Bounds by Subtraction
Understand the idea
A derangement is a permutation with no object in its original position. Events saying a particular position is fixed overlap, making inclusion–exclusion suitable.
Choose and carry out a method
Start with all permutations. Alternately subtract and restore choices with specified fixed positions: at step k.
Check the reasoning
For there are none, and for there is one. These small cases check the sign and the empty-permutation convention .
There are 4 labeled positions. The first 0 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?
- Use inclusion-exclusion on the events that a particular object stays fixed.
- ·(-…).
- The derangement count is 9. Fixing k specified positions leaves arrangements.
9
There are 5 labeled positions. The first 0 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?
- Use inclusion-exclusion on the events that a particular object stays fixed.
- ·(-…).
- The derangement count is 44. Fixing k specified positions leaves arrangements.
44
Common pitfalls
Possible mix-up: Subtract each fixed-position event only once.
Permutations fixing several positions lie in overlapping events and need correction.
Possible mix-up: A correct numerical answer alone explains the method.
State the governing relationship and check the conditions described above.
Explain it to yourself
Explain why choosing k fixed positions leaves permutations.
Preview the eight practice prompts
There are 7 labeled positions. The first 0 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?
There are 4 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?
There are 5 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?
There are 6 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?
There are 7 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?
There are 8 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?
5 name cards go into matching labeled envelopes. The first 2 cards must be placed correctly and all remaining cards incorrectly. How many assignments are possible?
6 name cards go into matching labeled envelopes. The first 2 cards must be placed correctly and all remaining cards incorrectly. How many assignments are possible?
STAGE IC 2.2 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Indicator Variables
Useful preparation: Derangements
Goal: Understand and apply indicator variables.
Before you begin: Derangements
Understand the idea
An indicator is one when a particular event occurs and zero otherwise, so its expectation equals the event’s probability. Summing indicators counts successes.
Choose and carry out a method
Define one indicator for each trial and add their probabilities. Linearity of expectation does not require the indicators to be independent.
Check the reasoning
Dependence affects distributions and joint probabilities, but not the rule that expectations add. Confirm what one indicator actually measures.
A fair die is rolled 9 times. What is the expected number of sixes?
- Write the count as a sum of zero-one indicators and add their expectations.
- Each indicator has expectation , so E(total)=.
- The expectation is . It may be nonintegral even though every actual count is an integer.
A fair die is rolled 10 times. What is the expected number of sixes?
- Write the count as a sum of zero-one indicators and add their expectations.
- Each indicator has expectation , so E(total)=.
- The expectation is . It may be nonintegral even though every actual count is an integer.
Common pitfalls
Possible mix-up: Expectations add only for independent events.
Linearity holds even with dependence.
Possible mix-up: A correct numerical answer alone explains the method.
State the governing relationship and check the conditions described above.
Explain it to yourself
Why can expectation be easier to find than the entire distribution of a count?
Preview the eight practice prompts
A fair die is rolled 12 times. What is the expected number of sixes?
A fair die is rolled 13 times. What is the expected number of sixes?
A fair die is rolled 14 times. What is the expected number of sixes?
A fair die is rolled 15 times. What is the expected number of sixes?
A fair die is rolled 16 times. What is the expected number of sixes?
A fair die is rolled 17 times. What is the expected number of sixes?
18 sensors each independently trigger with probability . What is the expected number that trigger on a check?
19 sensors each independently trigger with probability . What is the expected number that trigger on a check?
STAGE IC 2.3 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Recurrences from First Choices
Useful preparation: Indicator Variables
Goal: Understand and apply recurrences from first choices.
Before you begin: Indicator Variables
Understand the idea
A tiling by lengths one and two begins with exactly one of those tile lengths. Removing the first tile leaves a shorter problem of the same kind.
Choose and carry out a method
Let T(n) count tilings of length n. Use , with and , and build a table forward.
Check the reasoning
The empty remainder counts as one successful completion. The two first-tile cases are disjoint and exhaustive.
How many ways can a row of 5 unit cells be tiled with unit tiles and dominoes?
- Classify by the first move or tile: length one or length two.
- Let and ; then .
- The recurrence gives . The empty completion counts once.
8
How many ways can a row of 6 unit cells be tiled with unit tiles and dominoes?
- Classify by the first move or tile: length one or length two.
- Let and ; then .
- The recurrence gives . The empty completion counts once.
13
Common pitfalls
Possible mix-up: An empty board has zero tilings.
There is one way to finish with no tiles left to place.
Possible mix-up: A correct numerical answer alone explains the method.
State the governing relationship and check the conditions described above.
Explain it to yourself
How would allowing a tile of length three change the recurrence?
Preview the eight practice prompts
How many ways can a row of 8 unit cells be tiled with unit tiles and dominoes?
How many ways can a row of 9 unit cells be tiled with unit tiles and dominoes?
How many ways can a row of 10 unit cells be tiled with unit tiles and dominoes?
How many ways can a row of 11 unit cells be tiled with unit tiles and dominoes?
How many ways can a row of 12 unit cells be tiled with unit tiles and dominoes?
How many ways can a row of 13 unit cells be tiled with unit tiles and dominoes?
A robot climbs 14 steps using moves of one or two steps. How many different move sequences reach the top exactly?
A robot climbs 15 steps using moves of one or two steps. How many different move sequences reach the top exactly?

