Tricky counting problem(n distinct balls in n distinct boxes)

  • Thread starter Thread starter chrisandmiss
  • Start date Start date
  • Tags Tags
    Balls Counting
Click For Summary
The discussion revolves around calculating the probability that none of n distinct balls are placed in their corresponding n distinct boxes. The approach involves determining the probability of at least one ball being in the correct box and using the formula P(none) = 1 - P(at least one). The calculations involve combinatorial reasoning, where the total arrangements are represented by n! and the arrangements with at least one correct placement are expressed through a series involving combinations and factorials. The final expression simplifies to a series that converges to the probability of none being in the correct box. The term "derangements" is suggested for further exploration to understand this concept better.
chrisandmiss
Messages
12
Reaction score
0

Homework Statement


There are n distinct balls, and n distinct boxes, and one right order for the boxes to be in. What is the chance that none of the balls are in the correct box.
And each ball can go into only one box.

Homework Equations


The chance that none of the boxes are in the correct, is P(none)=1-P(at least one)

The chance that at least one is in the right box, is A(1)+A(2)+...A(n)-((A(1)and A(2))...+(A(n-1)+A(n))+...

n!/(k!(n-k)!)=C(n,k)

The Attempt at a Solution



The amount of times A(k) is correct is the number of ways to arrange the balls that are not in position k, which is (n-1)!. The amount of times A(1) and A(2) are correct is the amount of times you can arrange all but them, which is (n-2)!

The number of A(k) is n. The number of A(k) and A(r)(both k and r are in the right box) is the number of ways you can choose 2 out of n

Continue that line of reasoning. So, the total number of ways at least one ball is in the right box is C(n,1)-C(n,2)(n-2)!+C(n,3)(n-3)!-c(n,4)(n-4)!... and the chance that happens is that number divided by the total number of arrangements, which is n!

that cancels out to 1-1/2!+1/3!-1/4!... one minus that is the number of times that none are in the right box.

This really breaks my intuition. Is this line of reasoning correct?
 
Last edited:
Physics news on Phys.org
Your reasoning is OK. For more on this, Google "derangements".

RGV
 

Similar threads

Replies
10
Views
3K
Replies
9
Views
3K
  • · Replies 32 ·
2
Replies
32
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K