Chapter 94
Which Geyser Gushes First?
You arrive at Three Geysers National Park, where geysers , and erupt at intervals of precisely two, four and six hours respectively. You have no idea how the eruptions are staggered: assume each geyser started at some independently random point in history. What are the probabilities that , and , respectively, will be the first to erupt after your arrival?
The Riddler, FiveThirtyEight(original post)
Solution
Because each geyser’s starting time is random and it erupts on a fixed cycle, the time you must wait for its next eruption is uniform on one full period. So the waits are independent with and geyser wins exactly when is the smallest of the three. Conditioning on , the chance exceeds it is and the chance exceeds it is , so For to win it must beat , but always, so any is already too late; only can win, giving The three probabilities sum to , so takes what is left: The shortest cycle wins most often, as it should: erupts first nearly two-thirds of the time.
The computation
Replay the visit. Draw each geyser’s wait uniformly over its own period, see which is smallest, and tally the winners over many arrivals.
import numpy as np
rng = np.random.default_rng(0)
N = 10_000_000
a = rng.uniform(0, 2, N) # wait until A's next eruption
b = rng.uniform(0, 4, N)
c = rng.uniform(0, 6, N)
print("A:", round((( a < b) & (a < c)).mean(), 4))
print("B:", round((( b < a) & (b < c)).mean(), 4))
print("C:", round((( c < a) & (c < b)).mean(), 4))
# A: 0.6391 (23/36 = 0.6389)
# B: 0.2222 ( 8/36 = 0.2222)
# C: 0.1387 ( 5/36 = 0.1389)