medium   Probability

Card Turner

A release-checked medium problem for training Expected Value, Discrete Random Variables.

Question

Suppose you have $20$ cards with the values $1-10$ each appearing twice in a deck. You draw $2$ cards at a time uniformly at random from the $20$ cards. If they match in value, you remove them from the deck. Otherwise, they are put back into the deck. The game finishes once there are no more cards to draw. Each drawing of two cards is a turn. Find the expected number of turns needed to finish the game.

Practice focus

This Probability problem is tagged Expected Value, Discrete Random Variables. State the random variables and conditioning information explicitly, then check the result against boundary cases before opening hints or a solution.

Explore related collections

Reviewed questions in this area

easyBaby BoyReviewed

Probability · SIG, DE Shaw

easyBad BagelReviewed

Probability · SIG, Jane Street