Q. 2.17

Question

Consider the matching problem, Example5m, and define it to be the number of ways in which theN men can select their hats so that no man selects his own.

Argue thatAN = (N  1)(AN-1 + AN-2) . This formula, along with the boundary conditionsA1 = 0, A2 = 1, can then be solved forAN, and the desired probability of no matches would be AN/N!.

Hint: After the first man selects a hat that is not his own, there remain N  1 men to select among a set of N  1 hats that do not contain the hat of one of these men. Thus, there is one extra man and one extra hat. Argue that we can get no matches either with the extra man selecting the extra hat or with the extra man not selecting the extra hat.

Step-by-Step Solution

Verified
Answer

AN=(N-1)AN-1+AN-2

1Step 1 Given Information.

Consider the matching problem, Example5m, and define ANit to be the number of ways in which the N men can select their hats so that no man selects his own.

2Step 2 Explanation.

There are Kmen, and each man has their own hat, after the experiment, the hats are permuted among men, so each man has a different hat.

AN- the number of ways in which the experiment ends so that no men have their hats.

Now let's try to express ANrecursively using the hint.

Count the number of ways in which none of Nthe men selects the right hat.

Since the ordering of man-hat pairs is not important, select a man, and he can be paired with one of the (N-1)hats.

Let's say he chose the hat of the i-th man.

For each pairing of the selected man and a hat, there remains N-1a man and N-1hat.

If the i-th man selects the hat of the first man, the remaining N-2people can choose from their N-2 hats, and they can choose hats that are not theirs in An-2ways.

And if ia -th man doesn't select the hat of the first man, each of the N-1men cant choose one of the N-1hats, the number of such choices isAn-1.

So the remaining people can choose hats in AN-1+AN-2ways if none of them selects their own hat.

By the basic principle of counting

AN=(N-1)AN-1+AN-2