[Math] Probability question regarding pairs of gloves

combinatoricsprobability

I've been thinking about this question but don't know how to approach it. I think there should be 10! ways of the gloves being paired but I'm having trouble after that. Here is how it goes:

I have 10 different pairs of gloves, each of a different color. They are randomly shuffled and paired. Each pair still contains a left and right glove (there are no left-left or right-right pairs). From this newly arranged set of gloves, I can pick up to 4 pairs of gloves of my choice.

I am satisfied if out of these pairs of gloves that I pick, the number of colors is equal to the number of pairs I picked. For example, if I choose to pick 2 pairs of gloves and the first pair is Red/Green and the second pair is Green/Red, then I am satisfied because in the end I have exactly 2 colors and I picked exactly 2 pairs of gloves.

What is the probability that I will be satisfied?

Best Answer

If you randomly decide upon n pairs of gloves, you will be satisfied if the set of left glove colours exactly matches the set of right glove colours. There are 10-choose-n sets of colours of size n, and since each is equally likely, there's a one in 10-choose-n chance of you being satisfied. 10-choose-n is 10!/(n!(10-n)!), so 1/10 for one glove, 1/45 for two, 1/120 for three etc.

If, on the other hand, you specifically search for a set of gloves that will satisfy you, the odds of being satisfied are obviously much higher. Rather than counting ways in which you might be satisfied, it's easier to identify the specific permutations where you will not be satisfied. As a commenter has already stated, it's equivalent to asking what proportion of permutations of 10 things have a cycle of length 4 or less. Think of it this way, you start with one pair of gloves, consider the left glove, and look for the pair with the matching right glove. Keep repeating this until the pair you're looking for next is the pair you started with. You now have a cycle in the permutation, and if it's of length four or less you've found a set of gloves to satisfy you.

Firstly observe that all permutations consist of a disjoint set of cycles. Which means, if a permutation has a cycle of length 8, then the remaining two elements must either be in a cycle of length 2 or two cycles of length 1. So, you will be satisfied if there are any cycles of length 1, 2, 3 or 4, and you will also be satisfied if there are any cycles of length 6, 7, 8 or 9 since all of those force there to be a cycle of length 4 or less in the remaining elements. The only options under which you will be unsatisfied are two cycles of length 5, or one cycle of length 10.

There are:

  • 10! permutations in total
  • 9! cycles of length 10, thus a 9!/10! = 1/10 chance of this happening
  • 10-choose-5.4!.4! / 2 = 10!4!4!/(5!5!2) pairs of cycles of length 5, thus a 1/50 chance of this happening. That's 10-choose-5 choices for the members of the "first" of the cycles, 4! different 5-cycles for each of the two, and dividing by 2 because (as you observed) this counts each pair twice.

Final probability is 1 - 1/10 - 1/50 = 88% of being able to satisfy yourself.

Related Question