Probability of getting the same 10 cards after a 104 card shuffle

1k Views Asked by At

Consider this situation:

You have two standard decks merged together (104 cards). You give 10 cards to 4 players. What is the probability that the next time you deal (after the deck is randomly shuffled), everyone gets the same hand they got last turn? Just one person gets the same hand they got last turn?

My approach was something along 104 choose 40 (for everyone getting the same card) or 104 choose 10 (for one person getting the same card), but in my approach I'm not considering the duplicate cards in my deck. I don't think it's 52 choose 40 or 52 choose 10 because then I wouldn't be considering that there is more than one card.

I am very curious about this question and I would love to get an answer. I know its a combinatorics question, but I am unsure of the details.

P.S. If the question is confusing or non-descriptive, please ask for clarification instead of down voting.

3

There are 3 best solutions below

0
On

1st Question: Of the $52$ distinct cards in a deck, choose $40$. Given $2$ decks, this is the only way we can duplicate the hands of all players in the second deal. In the second deal, we need the same $40$ cards chosen in the first deal. However, each card can come from either deck, giving us $2^{40}$ ways to choose them. Finally, in dealing groups of $10$ out to our players, we choose $10$ from $40, 30, 20$ in succession, giving the remainder to the final player. In doing so, there is only one way to designate the correct groups of $10$ to each player according to our previous deal. So the probability that all get their original hands would be:$$\frac{\binom{52}{40}}{\binom{104}{40}}\cdot\frac{2^{40}}{\binom{104}{40}}\cdot\frac{1}{\binom{40}{10}\binom{30}{10}\binom{20}{10}}$$

0
On

This is not a complete answer, but provides some suggestions on how to proceed.

Merge two $n$ card decks, and deal one hand of $k$ cards. The merged deck has $2n$ cards, but only $n$ kinds of card. A hand can contain the same kind of card twice. When a card appears in a hand along with the other card of the same kind, we call it a double. Otherwise, we call it a single.

There are $\binom{2n}{k}$ ways of dealing a $k$ card hand. There are $\binom{n}{d}\binom{n-d}{k-2d}$ kinds of hand with $d$ doubles and $k-2d$ singles. There are $2^{k-2d}$ different ways of dealing a given $k$ card hand with exactly $d$ doubles, giving a probability of $2^{k-2d}\big/\binom{2n}{k}$ of getting such a hand. There are $2^{k-2d}\binom{n}{d}\binom{n-d}{k-2d}$ ways of dealing some $k$ card hand with exactly $d$ doubles. If we sum over all possible values of $d,$ we should get $\binom{2n}{k}.$ It can be confirmed that, indeed, $$ \sum_{d=0}^{\lfloor k/2\rfloor}2^{k-2d}\binom{n}{d}\binom{n-d}{k-2d}=\binom{2n}{k} $$ by evaluating the $x^k$ term in $(1+x)^{2n}=(1+2x+x^2)^n$ in two different ways.

Define $g(n,k,d)$ to be the probability that a $k$ card hand contains exactly $d$ doubles: $$ g(n,k,d):=\frac{2^{k-2d}\binom{n}{d}\binom{n-d}{k-2d}}{\binom{2n}{k}}. $$ Define $h(n,k,d)$ to be the probability of getting a particular $k$ card hand with exactly $d$ doubles: $$ h(n,k,d):=\frac{2^{k-2d}}{\binom{2n}{k}}. $$

Then $$ \begin{aligned} &\Pr[\text{I get the hand I was dealt last time}]\\ &\quad=\sum_{d=0}^{\lfloor k/2\rfloor}\Pr[\text{hand last time had exactly $d$ doubles}]\\ &\quad\quad\cdot\Pr[\text{I get a particular hand with exactly $d$ doubles}]\\ &\quad=\sum_{d=0}^{\lfloor k/2\rfloor}g(n,k,d)\,h(n,k,d)\\ &\quad=\sum_{d=0}^{\lfloor k/2\rfloor}\frac{2^{k-2d}\binom{n}{d}\binom{n-d}{k-2d}}{\binom{2n}{k}}\frac{2^{k-2d}}{\binom{2n}{k}}. \end{aligned} $$ By means of further manipulations, this expression can be written in terms of Gauss's ${}_2F_1$ hypergeometric function: $$ \begin{aligned} &\Pr[\text{I get the hand I was dealt last time}]\\ &\ =\frac{1}{\left[\binom{2n}{k}\right]^2}\sum_{d=0}^{\lfloor k/2\rfloor}\frac{4^{k-2d}n!}{d!(k-2d)!(n-k+d)!}\\ &\ =\frac{\binom{n}{k}}{\left[\binom{2n}{k}\right]^2}\sum_{d=0}^{\lfloor k/2\rfloor}\frac{4^{k-2d}k!(n-k)!}{d!(k-2d)!(n-k+d)!}\\ &\ =\frac{4^k\binom{n}{k}}{\left[\binom{2n}{k}\right]^2}\sum_{d=0}^\infty\frac{4^{-2d}k(k-1)(k-2)\ldots(k-2d+1)}{d!(n-k+1)(n-k+2)\ldots(n-k+d)}\\ &\ =\frac{4^k\binom{n}{k}}{\left[\binom{2n}{k}\right]^2}\\ &\ \ \cdot\sum_{d=0}^\infty\frac{4^{-d}\left(-\frac{k}{2}\right)\left(-\frac{k}{2}+1\right)\ldots\left(-\frac{k}{2}+d-1\right)\cdot\left(-\frac{k}{2}+\frac{1}{2}\right)\left(-\frac{k}{2}+\frac{3}{2}\right)\ldots\left(-\frac{k}{2}+d-\frac{1}{2}\right)}{d!(n-k+1)(n-k+2)\ldots(n-k+d)}\\ &\ =\frac{4^k\binom{n}{k}}{\left[\binom{2n}{k}\right]^2}{}_2F_1\left(-\frac{k}{2},-\frac{k}{2}+\frac{1}{2};n-k+1;\frac{1}{4}\right). \end{aligned} $$

Now let's suppose that $k$ card hands are dealt to two players. What is the probability that if this is done twice, both players get the same hands on both deals? We need to generalize the functions defined in the previous analysis. Let $G(D,S,k,d,e,i)$ denote the probability that a $k$ card hand dealt from a deck with $D$ doubles and $S$ singles contains $d$ doubles, $e$ singles with no matching card left in the deck, and $k-2d-e$ singles with a matching card left in the deck. Then $$ G(D,S,k,d,e)=\frac{2^{k-2d-e}\binom{D}{d}\binom{S}{e}\binom{D-d}{k-2d-e}}{\binom{2D+S}{k}}. $$ Let $H(D,S,k,d,e)$ be the probability of getting a particular $k$ card hand with exactly $d$ doubles and $e$ singles with no matching card left in the deck. Then $$ H(D,S,k,d,e)=\frac{2^{k-2d-e}}{\binom{2D+S}{k}}. $$

Then the probability that both players get the same hand on the second deal as on the first is $$ \begin{aligned} &\sum_{d_1=0}^{\lfloor k/2\rfloor}\sum_{d_2=0}^{\lfloor k/2\rfloor}\sum_{e_2=0}^{k-2d_2}G(n,0,k,d_1,0)G(n-k+d_1,k-2d_1,d_2,e_2)\\ &\qquad\qquad\qquad\times H(n,0,k,d_1,0)H(n-k+d_1,k-2d_1,d_2,e_2). \end{aligned} $$ This doesn't appear to simplify. The upper limits on the sums can be replaced by $\infty$ since the summand will be zero beyond those limits.

To find the probability that exactly one of the two players gets the same hand on the second deal as on the first, subtract the probability that both players do from the probability one player does. Then double the result. To find the probability that at least one of the two players gets the same hand, add the probability that both do to the probability that exacty one does.

This doesn't answer your questions, but the method can be extended to handle the four-player situation.

0
On

Let's deal the cards one player at a time. We start out with $52$ pairs. The first player can get $k_1$ pairs and $10-2k_1$ singletons, and we're left with $42+k_1$ pairs and $10-2k_1$ singletons. Now the second player can get $k_2$ of the $42+k_1$ pairs, $l_2$ of the $10-2k_1$ singletons and $10-2k_2-l_2$ more singletons from the $42+k_1-k_2$ pairs, leaving $32+k_1+k_2+l_2$ pairs and $20-2k_1-2k_2-2l_2$ singletons. Continuing like this, we get the number of deals with the structure described by the $k_i$ and $l_i$. Such a deal can be realised in $2^s$ ways, where $s=40-2\sum k_i-\sum l_i$ is the number of pairs split between different hands (where the cards remaining with the dealer count as a hand).

This allows us to compute the probability for all four players to get the same hands as the sum over all deals of

$$ \left(\frac{2^s}{\binom{104}{10,10,10,10,64}}\right)^2\;, $$

the squared probability of dealing that deal. Here's code that performs the calculation. (It also checks the result with a simulation, but this check has to be performed with other parameters since the probability is too low for the parameters you specified.) The result is

$$ \frac{7683023161806299916174123665677069289}{607098460760890092102460570884608470089475894094877266506103080457248835064000}\approx1.3\cdot10^{-41}\;. $$

You also asked about the probability for "just one player" to get the same hand. I'll interpret that to mean that exactly one of the four players gets the same hand and the others don't. To calculate that probability, we need the probabilities $p_k$ for $k$ particular players to get the same hand. We already have $p_4$ above, and the same code calculates the other probabilities (the players not under consideration simply being ignored):

$$ p_0=1\;,\\ p_1=\frac{152278728013}{5504698517437436677360}\approx2.8\cdot10^{-11}\;,\\ p_2=\frac{1086700670964115606359}{880043859993122482497643462935080214890480}\approx1.2\cdot10^{-21}\;,\\ p_3=\frac{3866195995526868625259545979}{41727596897577772382664902619698896449456112224637596456000}\approx9.3\cdot10^{-32}\;. $$

Then by inclusion-exclusion the probability for exactly one player to get the same hand is

$$ \sum_{k=0}^4(-1)^{k+1}\binom k1\binom4kp_k\\ =4p_1-12p_2+12p_3-4p_4\\ =\frac{159546925275167564178572733070594965470667375716438648882008381952183}{1441858844307113968743343855850945116462505248475333507951994816085965983277000}\\ \approx1.1\cdot10^{-10}\;. $$