problem : After bikes are produced by the factory, they appear in a test center, where they are tested for defects. Only 20% are usually tested as defective . Let S1= number of bikes tested until first positive result, S2= number of bikes tested until second positive result. compute $E[S2|S1=n]$ and compute $E[S2]$ via de identity $E[S2] = E[ E[S2|S1] ]$
Could anyone help to understand how to calculate?
You can use the lack of memory property of the Geometric distributioni finding immediately
$\mathbb{E}[S_2|S_1=n]=n+5$
....and now the result of the marginal $\mathbb{E}[S_2]$ is trivial
The other way to calculate $\mathbb{E}[S_2]=10$ is via Negative Binomial law