I have a well shuffled deck of $52$ cards, and I can not see their faces. I am going to take one card at a time and check its face. If it is not the Ace of Spades, then keep it aside and pick another card. I am going to repeat this process until I get the Ace of Spades. What will be the expected number of cards required to be turned over?
I solved this question in two different approaches, but I got two different answers.
Let $X$ be a random variable that denotes the number of cards we have to turn over.
So $X$ can take any integral value from $1$ to $52$.
We have to calculate $E[X]=\sum\limits_{x=1}^{52}\left(x\cdot P[x]\right)$.
Here are the two ways I tried to find the Probability function:
- $P[X=i]=\left(\dfrac{51}{52}\right)^{i-1}\cdot\dfrac{1}{52}$
- $P[X=i]=\dfrac{\binom{51}{i-1}}{\binom{52}{i-1}}\cdot\dfrac{1}{52}$
Which one is the right method and why?
Let $X$ be the number of cards you have to reveal in total, including the ace of spades. It can also be interpreted as the position of the ace of spades in the deck.
As we all know, when the deck is well shuffled, the ace of spades is equally likely to be in any position, so we have $$P(X=i)=\frac{1}{52}$$ for any natural number $i\leq 52$.
Now we can calculate the expectation: $$ E(X)=\frac1{52}+\frac2{52}+\cdots+\frac{52}{52}\\=\frac{52\cdot53}{2\cdot52}=\frac{53}2=26.5 $$