# Probability question: getting matching cards from two decks

**URL:** <https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022>\
**Category:** Factual Questions\
**Created:** [February 28, 2003, 12:27am UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022 "2003-02-28T00:27:21Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![aahala](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@aahala](https://boards.straightdope.com/u/aahala)\
**Post date:** [February 28, 2003, 6:11am UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022/21 "2003-02-28T06:11:12Z")

</div>

I stand corrected, four is also a match.

---

<div class="post-metadata">

**Author:** ![Cabbage](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Cabbage](https://boards.straightdope.com/u/Cabbage)\
**Post date:** [February 28, 2003, 6:24am UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022/22 "2003-02-28T06:24:59Z")

</div>

In the OP, both decks are shuffled together. The cards are then dealt in one long row. If two of the same cards are next to each other, we have a match.

In Montmort, the two decks are side by side. Cards are simulataneously dealt off the top of each deck, one by one. The cards are not placed in one long row as in the OP. There is a match in Montmort only if on any particular deal, the two cards are the same.

If, however, we try to simulate the OP using Montmort, we could pretend the cards are being placed in one long row as they’re dealt from the two decks. The two cards from the first deal start the row, followed by the next two cards, and so on. This, however creates more possibilities for matches–the second card from the first deal could match the first card from the second deal. For example, the first deal from the two decks could be 2H and 8S; the second deal 8S and 5C. No matches for Montfort, but when they’re laid in a row:

2H **8S 8S** 5C

A match for the OP.

---

<div class="post-metadata">

**Author:** ![Ximenean](https://avatars.discourse-cdn.com/v4/letter/x/aca169/32.png) [@Ximenean](https://boards.straightdope.com/u/Ximenean)\
**Post date:** [February 28, 2003, 1:45pm UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022/23 "2003-02-28T13:45:53Z")

</div>

> [@](#):
>
> \*Originally posted by MC Master of Cermonies \*  
> \*\*but now I’ve started down the wrong line, can anyone tell me what the probabilty is of laying out two decks of 52 cards, where NO card is next to another of either the same rank or suite? \*\*

> [@](#):
>
> \*Originally posted by Royal Nonesuch \*  
> **37%, as per my first post. Get them reading glasses post-haste!**

No, **MC** ’s question is different. For any card, there are only 72 cards in the two decks that don’t match it in either rank or suit, so the probability is (72/103)^103 = virtually zero.

---

<div class="post-metadata">

**Author:** ![Cabbage](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Cabbage](https://boards.straightdope.com/u/Cabbage)\
**Post date:** [February 28, 2003, 8:02pm UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022/24 "2003-02-28T20:02:11Z")

</div>

> [@](#):
>
> For any card, there are only 72 cards in the two decks that don’t match it in either rank or suit, so the probability is (72/103)^103 = virtually zero.

Unfortunately, neither the OP’s problem nor **MC** ’s problem can be done that simply.

If I have my two decks shuffled together and deal my first card, it’s true that the probability of no match when I deal the second card is 72/103. However, to say that the probability of no match in the entire row is (72/103)^103 is to assume that the probability of matching one particular pair of cards is independent of matching another particular pair of cards. For example, say the first two cards you deal are a match, say both clubs. What’s the probability of a match on cards two and three? Slightly less than what it was to start with, since there are now _two_ clubs out of the deck, leaving fewer potential matches on the third card. You would have to use conditional probability with this approach, and I believe that would get very messy very quickly.

---

<div class="post-metadata">

**Author:** ![Ximenean](https://avatars.discourse-cdn.com/v4/letter/x/aca169/32.png) [@Ximenean](https://boards.straightdope.com/u/Ximenean)\
**Post date:** [February 28, 2003, 8:07pm UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022/25 "2003-02-28T20:07:38Z")

</div>

Yeah, I would have realised that if I had actually read the whole thread before diving in…

---

<div class="post-metadata">

**Author:** ![Roadfood](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Roadfood](https://boards.straightdope.com/u/Roadfood)\
**Post date:** [February 28, 2003, 9:48pm UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022/26 "2003-02-28T21:48:24Z")

</div>

Wow, thanks everyone. I didn’t expect this to get “controversial” :). As I expected, the method of calculating the probability is not simple, but it’s also nice to see that the actual probability is not too far off from what I’d guessed from experience.

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [February 28, 2003, 9:56pm UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022/27 "2003-02-28T21:56:57Z")

</div>

Wow. When I read this thread and saw the ref. to the Montmort problem I thought “But it’s a different problem!” But then I did the math myself and what do you know. It is right. Again, wow.

This kind of analysis comes up in Hashing functions in Computer Science. What are the chances of two values being “hashed” to the same address. So that 1-1/e business is quite familiar.

---

<div class="post-metadata">

**Author:** ![Cabbage](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Cabbage](https://boards.straightdope.com/u/Cabbage)\
**Post date:** [February 28, 2003, 11:01pm UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022/28 "2003-02-28T23:01:15Z")

</div>

**ftg** , they are different problems, but the probabilities do end up being very close, which kind of surprised me, too.

The probability of a match in the Montfort problem 63.21205588%, but the probability of a match in this problem is 63.39019684%.

---

<div class="post-metadata">

**Author:** ![AWB](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@AWB](https://boards.straightdope.com/u/AWB)\
**Post date:** [March 3, 2003, 1:56am UTC](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022/29 "2003-03-03T01:56:03Z")

</div>

My imperical test came up with about 63.4%.

[Previous page](https://boards.straightdope.com/t/probability-question-getting-matching-cards-from-two-decks/158022.md?page=1)
