TOPICS
Search

Classical Occupancy Problem


For positive integers m and n, the classical occupancy problem asks how many of n distinguishable boxes are occupied after m distinguishable balls are placed into the boxes, with the box choices independent and identically distributed according to the discrete uniform distribution (Feller 1968). It is the basic probabilistic case of the broader occupancy problem and one case of the twelvefold way. If T is the number of occupied boxes, then

 P(T=t)=((n; t)t!S(m,t))/(n^m),

where S(m,t) is a Stirling number of the second kind and 0<=t<=min(m,n). The factors choose the t occupied boxes, form a set partition of the m balls into t nonempty groups, and assign those groups to the selected boxes.

The expectation value of the number of occupied boxes is

 E(T)=n[1-(1-1/n)^m].

This follows by writing T as the sum of n indicator functions, one for each box. The related coupon collector's problem asks how long it takes to occupy every box.


See also

Coupon Collector's Problem, Discrete Uniform Distribution, Distinguishable Objects, Independent and Identically Distributed, Indicator Function, Nonempty Set, Occupancy Problem, Set Partition, Stirling Number of the Second Kind, Twelvefold Way

Explore with Wolfram|Alpha

References

Feller, W. An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd ed. New York: Wiley, 1968.

Cite this as:

Weisstein, Eric W. "Classical Occupancy Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ClassicalOccupancyProblem.html

Subject classifications