Q.7.27

Question

A deck of n cards numbered 1 through n, initially in any arbitrary order, is shuffled in the following manner: At each stage, we randomly choose one of the cards and move it to the front of the deck, leaving the relative positions of the other cards unchanged. This procedure is continued until all but one of the cards has been chosen. At this point, it follows by symmetry that all n! possible orderings are equally likely. Find the expected number of stages that are required. 

Step-by-Step Solution

Verified
Answer

The expected value will be E[X]=1+nn1++n2.

1Step 1: Given information

A deck of n cards numbered 1 through n, initially in any arbitrary order, is shuffled in the following manner: At each stage, we randomly choose one of the cards and move it to the front of the deck, leaving the relative positions of the other cards unchanged. 

2Step 2: Solution

Let Xi be the digit of cards that must be picked before one collects a distinct type after collecting i distinct types of cards.

So,

X=X0+X1++XN2

E[X]=EX0+EX1++EXN2

If one collects i distinct types of coupons,

The probability of obtaining a new distinct card after k pick will be,

PXi=k=ninink1,k1


3Step 3: Solution

Xi=geometric random variable

So the expectation value will be,

EXi=nni

The expectation value of X is given by.

E[X]=EX0+EX1++EXN2

=nn0+nn1++nnn+2

=1+nn1++n2

4Step 4: Final answer

The expected value is E[X]=1+nn1++n2.