1,243 views
2 2 votes
Consider the following technique for shuffling a
deck of n cards: For any initial ordering of the
cards, go through the deck one card at a time and
at each card, flip a fair coin. If the coin comes
up heads, then leave the card where it is; if the
coin comes up tails, then move that card to the
end of the deck. After the coin has been flipped n
times, say that one round has been completed. For
instance, if n = 4 and the initial ordering is 1, 2, 3,
4, then if the successive flips result in the outcome
h, t, t, h, then the ordering at the end of the round
is 1, 4, 2, 3. Assuming that all possible outcomes of
the sequence of n coin flips are equally likely, what
is the probability that the ordering after one round
is the same as the initial ordering?

1 Answer

Best answer
2 2 votes

Here we have to construct solution for larger problem using smaller problems i.e. first we consider n=2 , then n=3, based on the observation we can conclude for higher value of 'n'..

For  n = 2,

Say the initial  ordering is  { 1 , 2 } , then the instances of 2 tosses where this order will be preserved are : { HH , HT , TT } and violated for  { TH } ..

Hence P(order is preserved for n = 2)   =  3 / 4

Now for n = 3 , we have to ignore those instances which end  in  "TH" as we have seen in previous subproblem that "TH" creates the violation and hence adding either head or tail before it wont help..

Hence instances remaining   =   8 - 2   =   6..

Now out of these 6 instances , we cannot add tail to "HH" and "HT" because it will put the first element at the last preserving the last 2 elements (2 and 3) thereby disturbing the overall order..However , tail can be added to "TT" because if we perform the second operation as mentioned in question to {1,2,3} , then we will get back {1,2,3} only..Also as "HH" and "HT" are already valid as shown in previous subproblem , adding head wont create a problem..

Hence favorable outcomes  =   6 - 2    =  4 

Hence P(order remains same for n = 3)    =   4 / 8

Now these 4 favorable outcomes will be considered for  n  =  4..

As similar to approach described for n = 3 , except the instance "TTT" , for all other 3 valid instances , we can have head in front not tail..For "TTT" , we can have either head or tail..

Hence P(order remains same for n = 4)     =  5 / 16

This way for any general integer 'n' , we can generalise as :

P(order remains same after n tosses)       =  (n + 1) / 2n

Hence the required probability should be   (n + 1) / 2n

• selected by
Position:
Show:

Related questions

2 2 votes
2 2 answers
500
500 views
GO Classes asked Jul 26, 2025
500 views
A fair die is rolled. Let X be the square of the number obtained. Compute $E[X]$.
2 2 votes
2 2 answers
516
516 views
GO Classes asked Jul 14, 2025
516 views
Let $X$ be a continuous random variable with the PDF $f(x)=2 x$ for $0 \leq x \leq 1$. What is the expected value of $X$ ?
1 1 vote
4 4 answers
569
569 views
GO Classes asked Jul 14, 2025
569 views
Two fair six-sided dice are rolled. What is the probability that the sum of the numbers is divisible by $3$ ? 
9 9 votes
2 answers 2 answers
1.7k
1.7k views
Suraj Reddy asked Apr 8, 2023
1,700 views
The probability of 2 children to be twins is given as 2% and the probability of them being identical twins is 0.16%. If both genders are equally likely and identical twin...