Elevator Stops
A lift starts in the basement of a building with floors above it. Twelve people get in, and each independently chooses one of the floors uniformly at random as their destination. Find the expected number of floors at which the lift stops to let out at least one person.
Work it out, then compare with the answer.
SolutionShow the worked solution
Let indicate that at least one person gets out at floor , for . The number of stops is .
A given person avoids floor with probability . The choices are independent, so
By linearity of expectation and symmetry between the floors,
Since , this gives
Generalisation. With people and equally likely floors, the expected number of stops is .
Variations
The same idea with a twist. Each solution gives only the changed step.
A bag contains sweets: blue, red, green, and yellow. Three sweets are drawn at random without replacement. Find the expected number of distinct colours among the sweets drawn.
Work it out, then compare with the answer.
Solution
Let indicate that a particular colour appears among the three sweets, and suppose that colour has sweets in the bag. The draw misses the colour exactly when all three sweets come from the other . All draws are equally likely, so
This gives for blue (), for red (), and each for green and yellow (). Summing,
Suppose balls are thrown independently and uniformly at random into bins. Let denote the (random) proportion of bins that end up empty. Determine , or state that it does not exist.
Work it out, then compare with the answer.
Solution
Each ball misses a given bin with probability , and the balls are independent. So a given bin is empty with probability .
Let be the number of empty bins. By linearity, , so
For this expectation is positive, and is continuous at . Hence the limit exists:
A factory operates every day of a -day year and runs hours on any day when none of its employees has a birthday; on any day when at least one employee has a birthday, the factory shuts down for the whole day and no one works. Employees’ birthdays are independent and uniform over the days. The factory wants to choose the number of employees to hire so as to maximise the expected total number of hours per year that employees are not working. Is any finite number of employees optimal? If so, how many should it hire?
Work it out, then compare with the answer.
Solution
Write . A given day contains at least one of the birthdays with probability . So the expected number of shut-down days is .
On each such day all employees are off for hours. The expected number of employee-hours off is therefore
Both factors and are positive and strictly increasing in . So is strictly increasing and , and no finite attains a maximum.
If one counts instead the hours during which the factory is idle, the expectation is still strictly increasing in . It never reaches its supremum , so again no finite is optimal.
Suppose people each have a birthday chosen independently and uniformly among days. Let denote the expected number of days of the year on which exactly one of the people has a birthday. There are exactly two positive integers at which attains its maximum value. Find them.
Work it out, then compare with the answer.
Solution
Write . A given day is the birthday of exactly one person with probability . Summing over the days gives
Compare consecutive values:
This ratio is greater than for , equal to at , and less than for . So increases up to , satisfies , and decreases from onwards. The maximisers are therefore