Find the Expected Number of Diners at 2 p.m.:
The expected number of diners in the restaurant at time ( t ) is given by:
[
E[N(t)] = \lambda \int_0^t P(T > t - s) , ds
]
where ( T ) is the time a customer spends in the restaurant, and ( s ) is the arrival time.
Since ( T ) is exponentially distributed with a mean of 40 minutes, the survival function is:
[
P(T > t - s) = e^{-\frac{t - s}{40}}
]
Substituting into the integral:
[
E[N(t)] = \lambda \int_0^t e^{-\frac{t - s}{40}} , ds
]
Let ( u = t - s ). Then ( du = -ds ), and when ( s = 0 ), ( u = t ); when ( s = t ), ( u = 0 ).
Changing variables:
[
E[N(t)] = \lambda \int_{u=t}^{u=0} e^{-\frac{u}{40}} (-du) = \lambda \int_0^t e^{-\frac{u}{40}} , du
]
Evaluating the integral:
[
E[N(t)] = \lambda \left[ -40 e^{-\frac{u}{40}} \right]_0^t = \lambda \left(40 \left[1 - e^{-\frac{t}{40}}\right]\right)
]
Plugging in ( \lambda = 5 ) customers per minute and ( t = 120 ) minutes:
[
E[N(120)] = 5 \times 40 \left[1 - e^{-\frac{120}{40}}\right] = 200 \left[1 - e^{-3}\right]
]
[
e^{-3} \approx 0.0497871
]
[
E[N(120)] \approx 200 \times (1 - 0.0497871) \approx 200 \times 0.950213 \approx 190.0426
]