I am considering simple M/M/1 queue with customer impatience. Customer waits and leaves the system if the delay before service is more than an exponential
wait time. Arrival rate is $\lambda$, service rate is $\mu$, and abandonment rate due to delay is $\lambda_W$.
I assume state probabilities $p_n$ are known.
My problem is to find expected wait time given that customer receives service.
My approach to the problem is very simple:
if customer finds one customer in the system average queueing delay is $E[S_1 | S_1 < W]$ = $\frac{1}{\mu + \lambda_w}$, where $S_1$ is the random variable of service time (~exp($\mu$)), and $W$ is the exponential delay.
Similarly, if customer finds 2 customer in the system average queueing delay is the conditional expectation $E[S_1 + S_2 |S_1 + S_2 < W ] = \frac{1}{\mu + \lambda_w} + \frac{1}{\mu + 2\lambda_w}$
If customer finds $n$ customer in queue and successfully receives service, total queuing delay until service time begins is the sum of $n$ independent exponentials with rates $\mu +\lambda_w$, $\mu+2\lambda_w$, $\mu +3\lambda_w$...$\mu+n\lambda_w$. Thus, the expectation of queueing delay is $\frac{1}{\mu +\lambda_w}+...+\frac{1}{\mu + n \lambda_w}$
Thus, average delay $\overline{W}_q$ conditioning on states is
$\overline{W}_q = \sum_{i=1}^{\infty} E[S_n| S_n <W] p_n $.
The result I obtained from this approach does not agree with simulation results. I don`t know where I am doing wrong?