Library · Geometric Probability · Chapter 11
Three friends at the café
Problem 11.1
Three friends each arrive at a café at an independent uniform random time in a one-hour window, and each waits exactly hours before leaving, where . What is the probability that all three end up meeting (i.e., the last to arrive reaches the café before the first to leave)?
Solution. Let be iid uniform arrivals in (units of one hour). Friend is present during the interval . All three are simultaneously present iff the intersection of their intervals is non-empty, i.e., iff where are the largest and smallest arrival times.
For iid uniform random variables in , the range has the classical density on . Integrating, For :
For common waiting times:
: .
: .
: .
: .
Compare with the two-friend case (Chapter 5), where the meeting probability is . For the two-friend case gives , far exceeding the three-friend . Adding a third friend sharply reduces the chance of simultaneous meeting.
import numpy as np
w = 0.4
arr = np.random.rand(3, 10**7)
meet = (arr.max(axis=0) - arr.min(axis=0)) <= w
print(f"sim: {meet.mean():.5f} exact: {3*w**2 - 2*w**3:.5f}")
# sim: 0.35272 exact: 0.35200