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
SUMMARY

The discussion revolves around calculating the probability that none of n distinct balls are placed in their corresponding n distinct boxes, known as the derangement problem. The probability is derived using the formula P(none) = 1 - P(at least one), where P(at least one) is calculated through combinatorial arrangements. The final expression simplifies to 1 - (1/2! - 1/3! + 1/4! - ...), confirming the intuition behind derangements. The term "derangements" is crucial for understanding this probability calculation.

PREREQUISITES
  • Understanding of combinatorial mathematics
  • Familiarity with factorial notation and calculations
  • Knowledge of probability theory
  • Basic concepts of permutations and combinations
NEXT STEPS
  • Research "derangements" in combinatorial mathematics
  • Study the principle of inclusion-exclusion for counting problems
  • Explore advanced probability concepts related to arrangements
  • Learn about applications of derangements in real-world scenarios
USEFUL FOR

Mathematicians, students studying combinatorics, educators teaching probability theory, and anyone interested in solving complex counting problems.

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
6K
  • · 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