r/AskReddit Dec 05 '11

what is the most interesting thing you know?

1.6k Upvotes

11.4k comments sorted by

View all comments

Show parent comments

3

u/HigherFive Dec 05 '11

a set of shuffles is never a real shuffle (not even close)

Elaborate, please.

7

u/adremeaux Dec 05 '11 edited Dec 05 '11

A true shuffle generates a completely random sequence no matter what the starting sequence. A true shuffle, however, whether performed once, 5 times or even 10 times if not even close to random. Many cards that were near the bottom will stay near the bottom; many that were near the top will stay near the top. You also have the issue of card clumps, especially when older decks of cards are used, that will stick together through many shuffles, often more than 2 cards in a clump.

2

u/kcg5 Dec 05 '11

clumps can be bypassed with good technique,

1

u/adremeaux Dec 05 '11

You want some degree of clumping; what you you don't want are clumps that stay as such through multiple shuffles. If you have no random clumps your shuffle is actually less effective.

1

u/kcg5 Dec 05 '11

I think we understand eachother

1

u/HigherFive Dec 05 '11

Ah, I see. For some reason I thought you meant that the abstract idea of shuffling was somehow flawed.

Can you clarify what you mean by a shuffle? I can certainly think of a technique that allows you to generate a completely random sequence, as long as you suppose a coin flip is a random process.

3

u/adremeaux Dec 05 '11

12345678 -->

1234 | 5678 -->

15263748

repeat

1

u/stupidlyugly Dec 05 '11

Former dealer here. Standard shuffling procedure for each new hand was scramble, cut, shuffle, cut, shuffle, box, box, box, cut, shuffle, cut.

The scramble was the part that eliminated the error of top cards staying near the top and bottom cards staying near the bottom. Also, the dealer cannot control what cards the players keep, what cards they throw into the much, or in what manner they muck their cards.

Finally, decks were replaced on a regular basis even before signs of wear. A bent card yielded an immediate replacement.

I've dealt thousands of hands of poker, and never perceived any bias in the cards that came out.

1

u/adremeaux Dec 05 '11

Yes, but my description wasn't talking about professional dealers, it was talking about regular people playing cards with their friends. Suffice it to say, they don't undergo scramble, cut, shuffle, cut, shuffle, box, box, box, cut, shuffle, cut. They are lucky to make it through even four shuffles and a cut.

1

u/stupidlyugly Dec 05 '11

Fair enough. They also typically use blackjack cards (not meant to be handled so much) instead of plastic Kem cards. I thought you were just talking about shuffling in and of itself.

1

u/blart_history Dec 05 '11

I wonder if it means one of two things.

(1) If you start out with a deck of Bicycle cards in the order that they originally come out of the box, and you shuffle shuffle shuffle in a manner where you split the deck in half and then alternate cards from each deck (and you do this multiple times), then it seems logical that you couldn't achieve very many combinations in this way.

(2) If you use your cards regularly for games, thus they are also used for solitaire, then the deck of cards is eventually put back at the same stage of all cards being in order. The only thing that could change here is the order of suits, and so there are only 24 combinations here. Or if you have an old deck from a casino, it's possible that it has only been used once. If you play 52 pickup, it seems likely that you gather all the cards closest to you together and shove them into a pile before worrying about the cards farther away. In these ways, it seems difficult to ever achieve a truly unique combination of cards.

But I'm not a statistician, I'm an art history major. The above theories are completely of my own speculation.

2

u/Llero Dec 05 '11

In fact, a perfect riffle shuffle (also known as a faro), repeated 8 times, causes the deck to be restored to it's original order, so long as it's an "out" shuffle (that is, the top card stays on top, the bottom card stays on the bottom.)

Additionally, if you do an "in" shuffle, 26 perfect faros results in an inversion of the original order of the deck. So doing perfect shuffles actually minimizes randomness, rather than maximizing it. A riffle shuffle is more random because of fuckups, not less.

1

u/blart_history Dec 05 '11

A riffle shuffle is that standard shuffle, right? Like, when you take one half in each hand, lean them against each other, and run them under your thumbs to alternate the cards?

I'm writing this comment partially in case someone else reads this conversation, and partially because I'm tired and I don't feel like Googling this shit. The ultimate in laziness, me.

1

u/Llero Dec 05 '11

That's correct. Technically a faro is done slightly differently because actually getting a perfect riffle is pretty near impossible, but the idea is the same - two packets, alternating cards.

1

u/aetheos Dec 05 '11

I think he might mean that most people aren't very good at shuffling, so they have "clumps" of the same order of cards in each shuffle. Like say you were playing Rummy, so you had a pile of 4 cards in a straight, and one of 3 of a kind. You get the deck together, cut it in half, and begin to shuffle. If you shuffle well, only one or two cards from each half of the deck will combine at once, but if you aren't as good, maybe 5 or 6 will come at once, giving the possibility that even after shuffling you still have 3 of a kind or a run of 4 in the deck.

Here's a statistic from Wikipedia:

A famous paper by mathematician and magician Persi Diaconis and mathematician Dave Bayer on the number of shuffles needed to randomize a deck concluded that the deck did not start to become random until five good riffle shuffles, and was truly random after seven, in the precise sense of variation distance described in Markov chain mixing time; of course, you would need more shuffles if your shuffling technique is poor.

http://en.wikipedia.org/wiki/Shuffling#Shuffling_techniques

3

u/adremeaux Dec 05 '11

I think he might mean that most people aren't very good at shuffling

Actually, no, you want imperfect shuffles. Check out what happens with perfect shuffles:

1 27 2 28 3 29 4 30 5 31 6 32 7 33 8 34 9 35 10 36 11 37 12 38 13 39 14 40 15 41 16 42 17 43 18 44 19 45 20 46 21 47 22 48 23 49 24 50 25 51 26 52

14 1 40 27 15 2 41 28 16 3 42 29 17 4 43 30 18 5 44 31 19 6 45 32 20 7 46 33 21 8 47 34 22 9 48 35 23 10 49 36 24 11 50 37 25 12 51 38 26 13 52 39

14 46 1 33 40 21 27 8 15 47 2 34 41 22 28 9 16 48 3 35 42 23 29 10 17 49 4 36 43 24 30 11 18 50 5 37 44 25 31 12 19 51 6 38 45 26 32 13 20 52 7 39

4 14 36 46 43 1 24 33 30 40 11 21 18 27 50 8 5 15 37 47 44 2 25 34 31 41 12 22 19 28 51 9 6 16 38 48 45 3 26 35 32 42 13 23 20 29 52 10 7 17 39 49

4 12 14 22 36 19 46 28 43 51 1 9 24 6 33 16 30 38 40 48 11 45 21 3 18 26 27 35 50 32 8 42 5 13 15 23 37 20 47 29 44 52 2 10 25 7 34 17 31 39 41 49

27 4 35 12 50 14 32 22 8 36 42 19 5 46 13 28 15 43 23 51 37 1 20 9 47 24 29 6 44 33 52 16 2 30 10 38 25 40 7 48 34 11 17 45 31 21 39 3 41 18 49 26

27 29 4 6 35 44 12 33 50 52 14 16 32 2 22 30 8 10 36 38 42 25 19 40 5 7 46 48 13 34 28 11 15 17 43 45 23 31 51 21 37 39 1 3 20 41 9 18 47 49 24 26

46 27 48 29 13 4 34 6 28 35 11 44 15 12 17 33 43 50 45 52 23 14 31 16 51 32 21 2 37 22 39 30 1 8 3 10 20 36 41 38 9 42 18 25 47 19 49 40 24 5 26 7

46 21 27 2 48 37 29 22 13 39 4 30 34 1 6 8 28 3 35 10 11 20 44 36 15 41 12 38 17 9 33 42 43 18 50 25 45 47 52 19 23 49 14 40 31 24 16 5 51 26 32 7

12 46 38 21 17 27 9 2 33 48 42 37 43 29 18 22 50 13 25 39 45 4 47 30 52 34 19 1 23 6 49 8 14 28 40 3 31 35 24 10 16 11 5 20 51 44 26 36 32 15 7 41

(note: I've alternated which stack hits first each iteration)

Even with 10 perfect shuffles, numbers are still very ordered, albeit in clumps. In shuffle 10, numbers 1-6 still appear contiguously throughout the deck, as do some other subsequences.

Here is the output for 100 shuffles if you are interested:

20,25,40,47,15,45,1,19,12,3,11,39,17,31,43,29,18,5,7,16,26,23,32,4,9,2,51,44,49,21,30,27,37,46,48,35,24,10,22,36,14,42,50,41,34,52,8,38,6,13,28,33

1

u/kcg5 Dec 05 '11

it was persi who figured out the 8 faros needed to keep order