What is the expected valued of this problem ? And what I'm doing wrong?

74 Views Asked by At

Imagine a game, where you have to pass n successive levels.

$\frac{1}{2}$ of the players get past the first level.

$\frac{1}{3}$ of the players get past the second level, given that they've passed the first level.

$\frac{1}{4}$ of the players get past the third level, given that they've passed the second level.

What is the expected value of level at which a random player stops?

What I thought was: The Probability of passing the second level is $\frac{1}{3}$(probability of winning the second game) * $\frac{1}{2}$(probability of passing the first level) = $\frac{1}{6}$ .

The Probability of passing the third level is $\frac{1}{6}$* $\frac{1}{4}$= $\frac{1}{24}$.

So in general the probability of winning the n-th game is $\frac{1}{(n+1)!}$.

Knowing that the expected value of a random Variable is given by:

$$ E[X] =\sum_{i = 0}^n {iP(X=i)}= \sum_{i = 0}^n {\frac{i}{(i+1)!}} = 1 $$

Which apparently is incorrect.

Here's my professor answer (At the beginning of his supposition he says "Let X be the level")

Can someone explain how he arrives to the conclusion that the answer is indeed $e-1$, I mean why he doesn't use the normal Expected Value formula ?

Thanks to everyone who will take some of their time even to read this far.

2

There are 2 best solutions below

4
On BEST ANSWER

For a rv defined on non-negative integers, the mean can be calculated also in the following way

$$\mathbb{E}[X]=\sum_x P[X>x]$$

$x=0,1,2,...$

thus the solution is

$$\sum_{i=0}^{\infty}\frac{1}{(1+i)!}=\sum_{k=1}^{\infty}\frac{1^k}{(k)!}=\sum_{k=0}^{\infty}\frac{1^k}{(k)!}-1=e-1$$

0
On

alternative proof for Continuous rv's

Suppose you have a continuous non negative rv.

$$\mathbb{E}[X]=\int_{0}^{\infty} x f(x)dx$$

Let's prove that

$$\mathbb{E}[X]=\int_{0}^{\infty} [1-F(x)]dx$$

that is the same as saying $\sum P[X>x]$ but in the continuous case

To prove it let's solve the integral by parts

$$\int_{0}^{\infty} [1-F(x)]dx=\underbrace{\Bigg[ x(1-F(x))\Bigg]_{0}^{\infty}}_{=0}+\int_{0}^{\infty}xf(x)dx$$

(to prove that the first addend is zero you can easy solve the limit with de l'Hôpital)