Two people agree to meet at a restaurant. Assume their arrival times are independent
and uniformly distributed on the one hour interval from 1:00–2:00 p.m. Assuming the two people wait for each other, what is the expected
waiting time?
$\textbf{Hint}$: Let X be the arrival time of one person and Y the arrival time of the other
person. Express the event of interest in terms of X and Y . S
I think the expected time of waiting should be 0 right? Since it's a uniform distribution, then EX = 30 and EY = 30. Therefore E(X-Y) = 0.
What do you guys think?
Best Answer
Because the joint distribution is so simple: $$f_{X,Y}(x,y) = 1, \quad 0 \le x, y \le 1,$$ it is easier to integrate directly: $$\operatorname{E}[|X-Y|] = \int_{x=0}^1 \int_{y=0}^1 |x-y| f_{X,Y}(x,y) \, dy \, dx = \int_{x=0}^1 \int_{y=0}^x x-y \, dy \, dx + \int_{x=0}^1 \int_{y=x}^1 y-x \, dy \, dx.$$