There are n balls b1, . . . , bn and n bins B1, . . . , Bn. Each ball bi
is placed into a uniformly random
bin, independently for 1 ≤ i ≤ n. Let k be a positive integer. Fix some 1 ≤ j ≤ n and let Ej be
the event that the bin Bj has at least k balls. For a subset T ⊆ {b1, . . . , bn}, |T| = k, let Ej,T be
the event that all the balls in subset T are placed in the bin Bj .
What is Pr[Ej,T ]?
Express the event Ej in terms of events Ej,T .
What is an upper bound on Pr[Ej ]?
What is the least value of k (call it k
∗
), as a function of n, such that
Pr[Ej ] ≤
0.01
n
.
Give justification. Your answer needs to be correct up to a constant factor (partial credit
otherwise).
Show that with probability 0.99, all bins have at most k
∗ balls.
Note: You can assume that 2 1
2
k log k ≤ k! ≤ 2
k log k
.
Assistant
1.
Each ball is placed into a bin independently and uniformly at random, so each ball has probability (1/n) to be in bin (B_j).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
For a subset (T) of (k) balls, the probability that all (k) balls in (T) are placed into (B_j) is:
[
\Pr[E_{j,T}] = \left( \frac{1}{n} \right)^k
]
2.
The event (E_j) that bin (B_j) has at least (k) balls occurs if there exists a subset (T) of (k) balls such that all the balls in (T) are in (B_j). Therefore, (E_j) is the union of the events (E_{j,T}) over all subsets (T) of size (k):
[
E_j = \bigcup_{\substack{T \subseteq {b_1, \dots, b_n} \ |T| = k}} E_{j,T}
]
3.
We can model the number of balls in bin (B_j) as a Binomial random variable (X_j \sim \text{Binomial}(n, 1/n)). The probability that (B_j) contains at least (k) balls is:
[
\Pr[E_j] = \Pr[X_j \geq k]
]
Since (X_j) is approximately Poisson with mean 1 (when (n) is large), we have:
[
\Pr[X_j \geq k] = e^{-1} \sum_{\ell=k}^\infty \frac{1}{\ell!} \leq \frac{1}{k!}
]
Thus, an upper bound is:
[
\Pr[E_j] \leq \frac{1}{k!}
]
4.
We want (\Pr[E_j] \leq \frac{0.01}{n}). From (3), we have (\Pr[E_j] \leq 1/k!), so we need:
[
\frac{1}{k!} \leq \frac{0.01}{n}
]
This implies:
[
k! \geq 100 n
]
Using the given approximation (k! \geq 2^{(1/2) k \log k}), we get:
[
2^{(1/2) k \log k} \geq 100 n
]
Take logarithms (base 2):
[
\frac{1}{2} k \log k \geq \log (100 n)
]
[
k \log k \geq 2 \log n + \text{constant}
]
Solving for (k) up to a constant factor, we find:
[
k^* = \Theta\left( \frac{\log n}{\log \log n} \right)
]
So the least value of (k) is proportional to (\frac{\log n}{\log \log n}).
5.
The probability that any particular bin has at least (k^) balls is at most (\Pr[E_j] \leq \frac{1}{k^!}). The expected number of bins with at least (k^) balls is:
[
n \cdot \Pr[E_j] \leq n \cdot \frac{1}{k^!} \leq 0.01
]
by the choice of (k^) in part (4). By Markov's inequality, the probability that any bin has at least (k^) balls is at most (0.01). Therefore, with probability at least (0.99), all bins have at most (k^*) balls.
Answers:
1. An explicit expression: Pr [Ej, T] = (1 ⁄ n)ᵏ.
2. As the union over T: Ej = ⋃₍ₜ ∈ size k subsets₎ Ej, T.
3. An upper bound: Pr [Ej] ≤ 1 ⁄ k!.
4. A least k such that Pr [Ej] ≤ 0.01⁄n is k* ≈ (constant × ln n) ⁄ ln ln n.
5. Since Pr [Ej] ≤ 0.01⁄n, with probability 0.99 all bins have at most k* balls.