I have a set of practice questions to prepare for finals. And I have worked through most.
I am unsure about my approach to the below question. I have outlined what I have worked out here.
Suppose there are $n$ questions to be solved, and suppose two students divide the work as follows. Student $A$ starts with question $1$, and student $B$ starts with question $2$. Whenever one of them finishes a question, they immediately start on the next question which is not attempted by either of them.
Suppose student $A$ finishes each question independently in Exponential $(\mu_A)$ amount of time, and student $B$ finishes each question independently in Exponential $(\mu_B)$ amount of time.
Here, I have to calculate the expected amount of time it takes to finish all the $n$ questions.
My attempt:
$\begin{aligned}\Bbb E(\text{time taken to finish }n\text{ questions})&=\Bbb E(T_1+T_2+\cdots+T_n)\\&=\Bbb E(T_1)+\Bbb E(T_2)+\cdots+ \Bbb E(T_n)\end{aligned}$
where $T_1$ is the time taken to finish question $1$, $T_2$ is the time taken to finish question $2$, and so on.
We are given that student $A$ starts with question $1$, and student $B$ starts with question $2$.
So, $E(T_1)=\Bbb E(T_A)=\frac1{μ_A}$, because $T_A\sim\operatorname{Exp}(μ_A)$.
And $\Bbb E(T_2)=\Bbb E(T_B)=\frac1{μ_B}$, because $T_B\sim\operatorname{Exp}(μ_B)$.
Now, I think:
$$\Bbb E(T_3)=\Bbb E(T_A\mid T_A < T_B) + \Bbb E(T_B\mid T_B < T_A)$$
So, $\Bbb E(T_3)=\frac2{μ_A + μ_B}$.
This is because, $A$ and $B$ are working on questions $1$ and $2$ respectively, and whoever among $A$ and $B$ finishes first, will start with the $3$rd question.
Is this approach correct in calculating $\Bbb E(T_3)$?
Further, I think that $\Bbb E(T_4)=\Bbb E(T_5)=\cdots=\Bbb E(T_n)=\frac2{μA + μB}$.
Therefore, $\Bbb E(\text{time taken to finish }n\text{ questions})=\frac1{\mu_A}+\frac1{\mu_B}+(n-2)\frac2{\mu_A+\mu_B}$
Is this approach correct, or am I going off track somewhere? Any advice will be very helpful. Thank you!