All Exams Test series for 1 year @ ₹349 only
Question

A deck of playing cards contains 52 cards, 4 each with face values in the set {A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K}. Let us define face values of the top and bottom cards as X and Y. The shuffling algorithm is defined as follows :

Sh1 : Permute the cards randomly due to that each arrangement occurs with probability \(1/52!\)

Sh2 : If \(X \ne Y\), flip the biased coin that comes up heads with probability P and go back to Sh1 if heads turns up otherwise stop.

Each coin flip and each permutation is assumed to be independent of all the other randomization. What value of P will make X and Y independent random variables once this process of shuffling will stops ?

This question was previously asked in
MH SET 2024 Paper 2 Computer Science and Applications Question Paper (07-Apr-2024)
The correct answer is

\(P = 1/4\)

For X and Y to be independent at the end, every ordered pair of face values (a, b) must finally occur with probability \(\frac{1}{13} \cdot \frac{1}{13} = \frac{1}{169}\), since each face value appears equally often in the deck and the marginals are uniform by symmetry.

In one random permutation, the probability that the top and bottom cards are a particular equal pair (a, a) is \(\frac{4 \times 3}{52 \times 51} = \frac{12}{2652}\), and for a particular unequal pair (a, b) it is \(\frac{4 \times 4}{52 \times 51} = \frac{16}{2652}\).

If X = Y the process always stops. If \(X \ne Y\) it stops only when the coin shows tails, with probability \(1 - P\); otherwise the deck is reshuffled and the trial repeats independently.

So the final probability of each pair is proportional to its stopping weight: \(12\) for an equal pair and \(16(1 - P)\) for an unequal pair.

All pairs become equally likely, and hence X and Y independent, exactly when \(12 = 16(1 - P)\), i.e. \(1 - P = \frac{3}{4}\), which gives \(P = \frac{1}{4}\).

Check: with \(P = \frac{1}{4}\) the unequal weight is \(16 \times \frac{3}{4} = 12\), equal to the equal-pair weight, so all 169 pairs share probability \(\frac{1}{169}\), and \(P(X = a, Y = b) = P(X = a) \, P(Y = b)\) holds.

Hence, \(P = 1/4\).

Was this answer helpful?

Similar Questions

  1. Let \(\varphi, \psi\) be the formula, \(\varphi \models \Psi\), if and only if \(\varphi \models \Psi\) is a :

  2. Which of the following relations defined on X = {1, 2, 3} is an equivalent relation ?

  3. A rod is divided into six segment is to be colored with one or more of 4 different colors. In how many ways can this be done ?

  4. Consider the following linear programming problem : Maximize \(z = 5x_{1} + 2x_{2} + 3x_{3} - x_{4} + x_{5}\) Subject to : \(x_{1} + 2x_{2} + 2x_{3} + x_{4} = 8\), \(3x_{1} + 4x_{2} + x_{3} + x_{5} = 7\), \(x_{1}, x_{2}, x_{3}, x_{4}, x_{5} \geq 0\) What will be the basic feasible solution after iteration 1 ?

  5. The thickness of a graph G is defined as minimum number of (edge-disjoint) planar subgraphs into which G can be decomposed. The thickness of G is defined as \(\theta(G)\). What is the thickness of planar graph ?

  6. A committee is to be selected from 5 candidates a, b, c, d and e. The selection must satisfy all the following conditions : 

    • Either a or b must be included, but not both

     • Either c or e or both must be included 

    • If d is included then b must be included 

    • Either a or c are included or neither is included. 

    • If e is included, then c and d must be included. How should selection be made ?

  7. Let us consider the letters from a through h, and all 5 letters are made using these letters. (words are just strings of letters). How many of these words contain no repeated letters ?

  8. Let us consider the following primal problem : Maximize \(z = 2x_{1} + x_{2}\) Subject to \(x_{1} - x_{2} \leq 4\), \(x_{1} - x_{2} \leq 2\), \(x_{1}, x_{2} \geq 0\) What will be its dual problem ?

  9. Identify an appropriate operation sequence with respect to execution of a machine level language instruction.

  10. The “instruction decode” phase in CPU’s instruction cycle is responsible to _____ .


Important Questions from Mixed Topic (MH-SET)

  1. .................... is a client server application that identifies each host on the internet with a unique user-friendly name.

  2. Every OS has a ................ or .......... which primarily resides in the main memory of the computer to perform some of the basic functions of the OS.

    (i) Kernel

    (ii) Interface

    (iii) Nucleus

    (iv) Compiler

    Codes:

  3. Which of the following are referred to as low level language?

    (i) Machine language

    (ii) Assembly language

    (iii) High level language

    (iv) Natural language

    Codes:

  4. Match the following:

    List IList II
    (a) New York Public Library(i) Shelv AR
    (b) Miami University Augmented Research Group(ii) Smart library
    (c) Oula University Library(iii) Wolf Walk
    (d) North Carolina State University(iv) Find the future

    Codes:

  5. Which part of the QR code represents the encoded data?

Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
MH-SET img
Teaching
MAHA TAIT Mock Test Series (New)
58 Tests 1 Tests Free
3854 Attempts
4.9(108)
English, Hindi, Marathi
More Questions from MH-SET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App