Calculate Overlapping Arrival Probabilities for Continuous Windows
Statistics & ExperimentsModel answerLast updated
Find the exact probability that two independent continuous arrivals within a 60-minute interval occur within 15 minutes of each other.
Two colleagues agree to meet at a designated location during a 60-minute period (from time $t = 0$ to $t = 60$).
- Each person chooses an arrival time independently and uniformly at random within the 60-minute duration.
- Once both arrive, they successfully connect if the absolute time gap between their arrivals is 15 minutes or less.
Determine the precise probability that they successfully connect within this window. Show your derivation mathematically and explain how you would handle general time windows or asymmetric conditions.
Hints
Hint 1
Model the arrival times as independent continuous random variables $X$ and $Y$ on a 2D coordinate plane $[0, 60] \times [0, 60]$.
Hint 2
Because the joint probability density function is uniform, computing the target probability is equivalent to finding the area of the region where $|X - Y| \le 15$ divided by the total area.
Hint 3
Calculating the complement—the area where they miss each other—is often much simpler than integrating the interior band directly.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Exact Solution
The exact probability that the two arrivals occur within 15 minutes of each other is $\frac{7}{16}$ or $0.4375$ ($43.75%$).
Method 1: Geometric Probability (Recommended Approach)
1. Define the Sample Space and Event
Let $X \in [0, 60]$ be the arrival time of Person A and $Y \in [0, 60]$ be the arrival time of Person B.
- $X \sim \text{Uniform}(0, 60)$
- $Y \sim \text{Uniform}(0, 60)$
- $X$ and $Y$ are independent, so the joint distribution is uniform over the square region $S = [0, 60] \times [0, 60]$.
The total area of the sample space is: $$\text{Area}(S) = 60 \times 60 = 3600$$
The event $M$ where the two people meet corresponds to: $$M = { (x, y) \in S \mid |x - y| \le 15 }$$
2. Use the Complementary Region
Instead of calculating the area of the strip $-15 \le X - Y \le 15$ directly, calculate the probability of the complement event $M^c$ (where they miss each other): $$M^c = { (x, y) \in S \mid |x - y| > 15 }$$
This non-meeting region consists of two identical right triangles in opposite corners of the square:
- Upper-Left Triangle: $y - x > 15 \implies y > x + 15$
- Vertices at $(0, 15)$, $(0, 60)$, and $(45, 60)$.
- Base = $60 - 15 = 45$, Height = $60 - 15 = 45$.
- Lower-Right Triangle: $x - y > 15 \implies y < x - 15$
- Vertices at $(15, 0)$, $(60, 0)$, and $(60, 45)$.
- Base = 45, Height = 45.
3. Compute Areas and Final Probability
$$\text{Area}(M^c) = 2 \times \left( \frac{1}{2} \times 45 \times 45 \right) = 45^2 = 2025$$
The probability of missing each other is: $$P(M^c) = \frac{\text{Area}(M^c)}{\text{Area}(S)} = \frac{45^2}{60^2} = \left(\frac{45}{60}\right)^2 = \left(\frac{3}{4}\right)^2 = \frac{9}{16}$$
Therefore, the probability of meeting is: $$P(M) = 1 - P(M^c) = 1 - \frac{9}{16} = \mathbf{\frac{7}{16} = 0.4375}$$
Method 2: Integration (Analytical Proof)
To verify the geometric intuition using calculus, we can integrate the probability density function over the meeting condition.
The length of the meeting interval for $Y$ given $X = x$ is defined as $L(x)$: $$L(x) = \min(x + 15, 60) - \max(x - 15, 0)$$
Breaking this down across the domain $x \in [0, 60]$:
- For $0 \le x \le 15$: $L(x) = (x + 15) - 0 = x + 15$
- For $15 < x \le 45$: $L(x) = (x + 15) - (x - 15) = 30$
- For $45 < x \le 60$: $L(x) = 60 - (x - 15) = 75 - x$
Integrating over all three sub-intervals: $$\int_{0}^{15} (x + 15) , dx = \left[ \frac{x^2}{2} + 15x \right]0^{15} = 112.5 + 225 = 337.5$$ $$\int{15}^{45} 30 , dx = 30 \times (45 - 15) = 900$$ $$\int_{45}^{60} (75 - x) , dx = \left[ 75x - \frac{x^2}{2} \right]_{45}^{60} = 337.5$$
Total meeting area: $$\text{Total Area} = 337.5 + 900 + 337.5 = 1575$$
Dividing by the total space area $3600$: $$P(M) = \frac{1575}{3600} = \frac{7}{16}$$
Generalization Formula
For any total time window $T$ and maximum waiting tolerance $w$ (where $0 \le w \le T$):
$$P(\text{Meeting}) = 1 - \left(1 - \frac{w}{T}\right)^2 = \frac{2w}{T} - \left(\frac{w}{T}\right)^2$$
- Boundary Check 1: If $w = 0$, $P = 0$. (Exact simultaneous arrival of continuous variables has probability zero).
- Boundary Check 2: If $w = T$, $P = 1$. (If the wait time equals the total span, they are guaranteed to meet).
- Plug in parameters: $w = 15, T = 60 \implies \frac{w}{T} = \frac{1}{4}$. $$P = 1 - \left(1 - \frac{1}{4}\right)^2 = 1 - \frac{9}{16} = \frac{7}{16}$$
Follow-Up: Asymmetric Waiting Windows
What if Person A arrives and is willing to wait up to 15 minutes, but Person B is in a hurry and only willing to wait 5 minutes?
Here, the condition becomes $-5 \le X - Y \le 15$:
- Upper-left corner triangle: legs are $60 - 15 = 45$. Area = $\frac{1}{2} \times 45^2 = 1012.5$.
- Lower-right corner triangle: legs are $60 - 5 = 55$. Area = $\frac{1}{2} \times 55^2 = 1512.5$.
$$\text{Area}(M^c) = 1012.5 + 1512.5 = 2525$$ $$P(M) = 1 - \frac{2525}{3600} = \frac{1075}{3600} = \frac{43}{144} \approx 0.2986$$
Common Pitfalls to Avoid
- Treating it as a 1D problem: Guessing $\frac{15}{60} = 25%$ or $\frac{30}{60} = 50%$. This fails because both variables are independently random.
- Ignoring Edge Truncation: Simply computing $2 \times \frac{w}{T}$ (which gives $50%$) overcounts because arrivals near $t=0$ or $t=T$ cannot extend their full window past the boundary.
- Miscalculating Complement Triangles: Writing the side lengths as $15$ rather than $T - w = 45$.