All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
Riffling Chance (Posted on 2005-08-30) Difficulty: 5 of 5
When shuffling a deck of cards using a riffle shuffle, one divides the deck in two and lets the two halves riffle down to the table, interleaving as they do so. Assume that a person using this shuffle will always divide a deck of 52 cards exactly evenly, and that the riffle will start equally often from the left as from the right.

The expert dealer that I am, when I perform a riffle shuffle the cards from the two halves always interleave perfectly, the cards alternating from the left and right halves of the deck.

How many times must I shuffle the deck before the probability of correctly guessing the next card down in the deck after seeing a card chosen randomly from some place in the deck will be less than 1.97%? (If the cards were perfectly random, the probability of correctly guessing the next card would be 1/51 = 1.96%)

Bonus: What if there were a 10% chance that, as each card falls during the riffle, the card will be covered by another card from the same half, instead of strictly alternating?

(Assume that the person guessing knows the original order of the cards, the number of times the deck has been shuffled, and the probability of the cards interleaving perfectly.)

No Solution Yet Submitted by Sam    
Rating: 4.5000 (6 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts More simulation | Comment 8 of 10 |

Using monte carlo simulation of 1M trials...

When tracking the position of a single card, it's distribution throughout the shuffled deck becomes almost uniform at 10 shuffles.  The way the histograms appear in my simulation shows that even at 6 and 7 shuffles, there are large regions in the deck where one would expect to find the card.  At 8 shuffles and beyond, it switches and the entire distribution is roughly uniform at a little less than 2% (avg 1.92% = 1/52) with only small regions of slightly lower probability.  At 12 shuffles, the max of the distribution is below 1.97%

The question however was about predicting the next card in the deck.  Here, even at 8 shuffles there are still large spikes in the likelihood of certain cards following a selected card (on the order of 10-15%)  Unfortunately, these spikes don't seem to go away.  Even at 12-14 shuffles I see spikes on the order of 5%.


  Posted by Bob Smith on 2005-09-16 17:40:01
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (17)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information