How to Calculate the Average Number of Boxes with Different Ball Distributions?

  • Context: Undergrad 
  • Thread starter Thread starter Ionophore
  • Start date Start date
  • Tags Tags
    Balls
Click For Summary
SUMMARY

This discussion focuses on calculating the average number of boxes with different ball distributions when distributing M balls into N boxes, each containing two compartments. The probabilities for each scenario are derived as follows: the probability of a box being full (P_full) is calculated as (M/(2N))^2, while the probability of a box having one ball (P_1/2) is (M/(2N))(1-M/(2N)), and the probability of a box being empty (P_empty) is (1-M/(2N))^2. A key insight is that P_1/2 must be doubled to account for the two possible configurations of one ball in the compartments.

PREREQUISITES
  • Understanding of probability theory, specifically binomial distributions.
  • Familiarity with basic combinatorial concepts.
  • Knowledge of random variable distributions.
  • Ability to perform calculations involving fractions and probabilities.
NEXT STEPS
  • Research the concept of binomial distributions in probability theory.
  • Learn about random variable distributions and their applications.
  • Explore combinatorial methods for calculating probabilities in multi-compartment scenarios.
  • Study the implications of probability theory in statistical modeling.
USEFUL FOR

Mathematicians, statisticians, data scientists, and anyone interested in probability theory and combinatorial analysis related to random distributions.

Ionophore
Messages
17
Reaction score
0
Hi all,

I’m trying to distribute M balls into N boxes. Each box has two compartments (thus 2N compartments total), each of which can hold one ball. There are more compartments total than balls. What I would like to do is calculate the number of boxes, on average:

1) With no balls (2 empty compartments)
2) With 1 ball (1 full compartment and one empty compartment)
3) With 2 balls (2 full compartments)

My first hunch was to say that, because I just want to scatter the balls randomly, the probability of a compartment being occupied is M/(2N), and therefore the probability of a compartment being empty is 1-M/(2N). Then the probability of encountering a full box should be the probability that the first compartment is full x the probability that the second compartment is full, and so forth, giving me:

P_full = (M/(2N))^2

P_1/2 = (M/(2N))(1-M/(2N))

P_empty = (1-M/(2N))^2

But these don’t add to one! What’s going on?
Thanks in advance.
 
Physics news on Phys.org
You need to double P_1/2, since the are 2 possibilities: comp. 1 empty or comp. 2 empty.
 

Similar threads

  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 108 ·
4
Replies
108
Views
8K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K