I Ran into this question and I can't find the right way to approach it.
We have $n$ different wine bootles numbered $i=1...n$. the first is 1 year old, the second is 2 years old ... the $n$'th bottle is $n$ years old.
Each bottle is still good at probability of $1/i$.
We pick out a random bottle and it is good. what is the expected value of the age of the bottle?
I'm really not sure what the random varable here is and how to aproach the question. I'd be grateful for a lead.
Thanks,
Yaron.
You are interested in the age of the bottle (the random variable), conditioned on it being good.
The probability the bottle selected is of age $i$ given it is good is $\dfrac{\frac{1}{i}}{\sum_1^n \frac{1}{j}} = \dfrac{1}{iH(n)}$ where $H(n)$ is a harmonic number.
So the expected age given it is good is $\displaystyle\sum_1^n i\frac{1}{iH(n)} = \dfrac{n}{H(n)}.$