Any help on following question will be much appreciated:
Mr A selects a number X randomly from the uniform distribution on [0,1]. Then Mr B repeatedly and independently draws numbers Y1,Y2 ..... from the uniform distribution on [0,1], until he gets a number larger than X/2, then stops. The expected number of draws that B makes
Answer: 2 ln2
I tried using iterated expectation but could not proceed successfully.Can some one please explain it to me.
If $X=x$, the probability B has a "success" on any trial (gets a result greater than $x/2$) is $1-x/2$.
Thus the distribution of the number of trials, given $X=x$, is geometric with parameter $p=1-x/2$. The mean of a geometrically distributed random variable with parameter $p$ is $\frac{1}{p}$.
So the conditional expectation of the number of trials, given $X=x$, is $\frac{1}{1-x/2}$. tt follows that the expected number of trials is $$\int_0^1 \frac{1}{1-x/2}\,dx.$$ An antiderivative is $-2\ln(2-x)$, so the definite integral is $2\ln 2$.