I found this problem while preparing for interviews. The same problem is asked here.
You have two decks of (52) distinct cards. You shuffle each deck. Now you keep drawing the top card from each of the two decks and you compare the two top cards. If they are the same card, you get one point. Otherwise, you get zero points. You then throw the two cards away (so there is no repetition). You keep drawing cards until both decks are exhausted (so 52 times in total). What is the expected number of points you receive?
I have an idea on how to approach this and it would be great to get some feedback and/or alternative ideas.
I draw one card for the left deck and I ask what's the probability that the card drawn from the right deck matches.
I define $X_i$ the random variable that for the $i$-th draw is equal to 1 if the cards are the same and 0 otherwise. The total number of points is therefore $N=\sum_{i=1}^{52} X_i$, with $E[N]=\sum_{i=1}^{52} E[X_i]$.
Now I could use the fact that for the expectation value $E[X_i]$ it holds that $E[X_i]=\sum P(Y_i)E[X_i|Y_i]$, where $Y_i$ is the random variable associated to the event that the matching card is present in the right deck at the $i$-th draw.
The probability $P(Y_i)$ is $\frac{53-i}{52}$ and we have that $E[X_i|Y_i]=\frac{1}{53-i}\cdot 1$, being $\frac{1}{53-i}$ the probability to draw the same card from the right deck at the $i$-th draw. Therefore $E[X_i]=\frac{53-i}{52}\cdot \frac{1}{53-i}=\frac{1}{52}$. The requested expected number of points is then $E[N]=\sum_{i=1}^{52}\frac{1}{52}=1$.
Many thanks for any comments.