The probability of a Snap with two decks plus a single joker

  • Thread starter I_Dont_Know
  • Start date
  • Tags
    Probability
In summary, the conversation discussed the correct probability of two players flipping the same card value (joker included) before going through all 53 cards. The solution provided in the riddle book was deemed incorrect, and the conversation delved into the mathematical explanation for the correct probability, as well as the difficulty of calculating the probability for matching by value only.
  • #1
I_Dont_Know
2
0

Homework Statement


So here's a little background: This isn't exactly a homework question. I work for a small software company, and everyday I distribute a status update to disclose where we stand with our current software patch development. To keep it interesting, I ask a daily riddle/problem and those who answer correctly receive a prize. Yesterdays question caused a company wide argument as to what the correct probability of the following question is.

Two players each have 1 standard deck of cards (52 cards) PLUS 1 Joker per deck. If each player flips a card over per turn, what are the odds that they will flip the same card value (joker included) before both players have gone through all 53 cards. After nobody answered correctly, I posted the following home-grown, and highly debated solution.

Homework Equations


If we were trying to calculate the probability of each player flipping the same card (suit and value), then the riddle book presents this solution: 1 - ((52/53)^53)

The Attempt at a Solution


1 - ( (13/14)^53) equaling roughly 98%.

Using a Ruby program simulation, I found that 9814 out of 10,000 trials, the players WOULD flip the same card (value only, jokers included) at least once. The simulation accounts for non-replacement, and uniquely generates two unique numbers to produce an index for the two 53 element arrays (containing 52 standard cards, and 1 joker).

My coworkers argue that roughly 98% is completely incorrect, but cannot produce a solution of their own that they are confident in. Can anyone shine some light on this? If you would like me to produce the code for the Ruby program then let me know.

Thanks.
 
Last edited:
Physics news on Phys.org
  • #2
I_Dont_Know said:

Homework Statement


So here's a little background: This isn't exactly a homework question. I work for a small software company, and everyday I distribute a status update to disclose where we stand with our current software patch development. To keep it interesting, I ask a daily riddle/problem and those who answer correctly receive a prize. Yesterdays question caused a company wide argument as to what the correct probability of the following question is.

Two players each have 1 standard deck of cards (52 cards) PLUS 1 Joker per deck. If each player flips a card over per turn, what are the odds that they will flip the same card value (joker included) before both players have gone through all 53 cards. After nobody answered correctly, I posted the following home-grown, and highly debated solution.

Homework Equations


If we were trying to calculate the probability of each player flipping the same card (suit and value), then the riddle book presents this solution: 1 - ((52/53)^53)

The Attempt at a Solution


1 - ( (13/14)^53) equaling roughly 98%.

Using a Ruby program simulation, I found that 9814 out of 10,000 trials, the players WOULD flip the same card (value only, jokers included) at least once. The simulation accounts for non-replacement, and uniquely generates two unique numbers to produce an index for the two 53 element arrays (containing 52 standard cards, and 1 joker).

My coworkers argue that roughly 98% is completely incorrect, but cannot produce a solution of their own that they are confident in. Can anyone shine some light on this? If you would like me to produce the code for the Ruby program then let me know.

Thanks.

The solution you quote from the riddle book, seems incorrect. If the two flipped cards must agree in both suit and value then you have the classical "matching" problem, discussed on pages 107-108 of Feller, Introduction to Probability Theory, Vol. I, Wiley 1968. We say a match occurs if the two cards drawn at some stage are the same in the two decks. Feller derives results for the probability of k matches in two decks of N cards, for k = 0, 1, 2, ..., N; in the current case, N = 53. The probabilities are: P{no matches} = 1 - 1 + 1/2! - 1/3! + 1/4! - ... +- 1/N! = first (N+1) terms in the series expansion of e^(-1). Furthermore, P{exactly k matches} = (1/k!)[1 - 1 + 1/2! - 1/3! + ... +- 1/(N-k)!] =~= e^(-1)/k! for large N. So, the number of matches is almost Poisson with mean = 1; in fact, one can show that for any N the exact expected number of matches = 1.

Here is a table of the number of matches, k, and their probabilities (exact and Poisson approximation) for two decks of size N = 53:

k exact Poisson
0 0.367879 0.367879
1 0.367879 0.367879
2 0.183940 0.183940
3 0.061313 0.061313
4 0.015328 0.015328
5 0.003066 0.003066
6 0.000511 0.000511
7 0.000073 0.000073
8 0.000009 0.000009
9 0.000001 0.000001
10 0.000000 0.000000

So, the probability of no matches at all is about 37%, while the probability of exactly one match is about 37%, etc.

The problem of matching by value only (not suit) seems to be much harder, and I have not seen the solution presented anywhere. Off hand, I cannot see how to deal with it other than by a simulation.RGV
 
Last edited:
  • #3
Yes, that seems to be the consensus in the office as well. I appreciate the insight though. I will certainly pass the information along.
 

FAQ: The probability of a Snap with two decks plus a single joker

1. What is the probability of drawing a Snap with two decks and a single joker?

The probability of drawing a Snap with two decks and a single joker is 1 in 108. This is because the total number of cards in two decks plus a joker is 109, and there are only 1 possible combination of cards that can result in a Snap (a matching pair of cards with the same rank and color).

2. How does the probability change if we remove the joker from the deck?

Without the joker, the probability of drawing a Snap with two decks decreases to 1 in 1080. This is because now there are a total of 1080 cards, and only 1 combination of cards can result in a Snap.

3. Can the probability of a Snap with two decks and a joker be increased?

Yes, the probability can be increased by adding more jokers to the deck. Each additional joker will increase the probability by 1 in 108. For example, with 3 jokers, the probability would be 3 in 108.

4. Is there a way to calculate the exact probability of a Snap with two decks and a joker?

Yes, the exact probability can be calculated using the formula: P(Snap) = 1 / (n * (n-1) * (n-2)) where n is the total number of cards in the deck (including the joker). For two decks and one joker, the probability would be 1 / (109 * 108 * 107) = 1 / 1204920 = 1 in 1204920.

5. How does the probability of a Snap with two decks and a joker compare to a single deck of cards?

The probability of a Snap with two decks and a joker is significantly higher than with a single deck. With a single deck, the probability is 1 in 52. This is because there are fewer cards and therefore fewer possible combinations that can result in a Snap. With two decks and a joker, the probability is 1 in 108, which is over 20 times higher than with a single deck.

Similar threads

Back
Top