The Cellar

The Cellar (http://cellar.org/index.php)
-   Home Base (http://cellar.org/forumdisplay.php?f=2)
-   -   No two card shuffles will EVER be the same. (http://cellar.org/showthread.php?t=16562)

Happy Monkey 02-06-2008 11:49 AM

Doh! You're right. You're never guaranteed to get any particular match, but you are guaranteed to get A match.

classicman 02-06-2008 12:22 PM

OK, how many shuffles does it take to get them back in the same order they were originally in - ie: right outta the box?

Happy Monkey 02-06-2008 12:44 PM

Eight, if you know what you're doing.

If not, then that's the situation where P will never be one, and there are no guarantees.

classicman 02-06-2008 12:49 PM

holy crap! - :::head spins off:::

Flint 02-06-2008 01:18 PM

Quote:

Originally Posted by Happy Monkey (Post 430289)
Eight, if you know what you're doing.

Quote:

A perfect shuffle occurs when the deck is divided exactly in half, and the cards are perfectly interlaced, with one card coming from one hand, then one card coming from the other hand, then one card coming from the first hand, etc. There are two types of perfect shuffles, the "in-shuffle" and the "out-shuffle." Let's assume that the deck is divided in two with the top cards going into the left hand and the bottom cards into the right hand. Then an in-shuffle begins with the first card coming from the left, the second from the right, the third from the left, etc. An out-shuffle begins with the first card coming from the right. If the right hand originally took the top cards, then the definitions are reversed (the in-shuffle begins with the first card coming from the right...). It has been shown that eight perfect out-shuffles returns the 52-card deck to its original order. Apparently, it takes more in-shuffles to do that.
I'm not calculating this scenario based on professional magicians doing elaborate card tricks. I'm talking about people playing a hand of cards, and then shuffling a few times, and then playing another hand. And, maybe they drop them on the floor, or one of the cards get bent, etc.

Saying the possible shuffles is 52! assumes randomness, which isn't entirely accurate, but it's more believable than a series of "perfect" shuffles.

If one card gets out of order in your series of "perfect" shuffles, you've started down the long road of 8.06581751709439 e+67 permutations.

Flint 02-06-2008 02:19 PM

Quote:

Yes you are, because the outcomes are limited--it's like if you have four different colors of socks, and you choose five socks. Your fifth sock must match one of the other four.
Except, in this case, you’ve got four pairs of socks in a box, and you’re pulling them out one at a time and lining them up in that order. You have to get them in the exact same order, not just draw the same ones.

If you’ve got a red, green, blue, and orange sock; you could draw:

R G B O
R G O B
R B G O
R B O G
R O G B
R O B G


And that’s just what could happen if you draw the red sock first. It carries on for a total of 24 friendly, manageable permutations.

But the factorial of 52 is 8.065 817 517 094 39 x10 to the 67th power (roughly 8 with 67 zeroes). That's how many shuffles there are.

Any card of 52 could be in the first position, then for the 51 choices for the second card, there are 50 choices that could be the third card. But they might not be first, second, or third; they could be anywhere in the deck. The number of possible shuffles is so large that the human brain cannot comprehend it directly.

It’s not only possible that the same shuffle has never happened, it’s the most likely outcome; considering the number of permutations, and the number of chances we have had to crunch through them. Certainly you aren’t required to go through all of them to get a repeat, but…

...we’re talking about something like taking all the grains of sand in the world, throwing them up in the air, and having them all fall back down in the exact same place. That isn't going to happen very often, and if you don't have enough time to keep trying, it will never happen. We haven't had enough time to get the same shuffle twice. And before we get the chance, we'll be long gone. It will never happen.

Happy Monkey 02-06-2008 02:27 PM

Quote:

Originally Posted by Flint (Post 430302)
I'm not calculating this scenario based on professional magicians doing elaborate card tricks. I'm talking about people playing a hand of cards, and then shuffling a few times, and then playing another hand. And, maybe they drop them on the floor, or one of the cards get bent, etc.

Right. I believe I addressed that in the second sentence. You are never guaranteed to match any particular shuffle (including the initial order), no matter how many times you shuffle.

The perfect shuffle thing was an amusing aside.
Quote:

If one card gets out of order in your series of "perfect" shuffles, you've started down the long road of 8.06581751709439 e+67 permutations.
Worse than that. If you make one mistake, and then continue a series of perfect shuffles, you will never get the original order back. You'll cycle through a sequence of eight incorrect shuffles until you make another mistake.

edit:
Another aside- out-shuffles have a cycle of eight, and in-shuffles have a cycle of 52.

Happy Monkey 02-06-2008 02:32 PM

Quote:

Originally Posted by Flint (Post 430326)
Except, in this case, you’ve got four pairs of socks in a box, and you’re pulling them out one at a time and lining them up in that order. You have to get them in the exact same order, not just draw the same ones.

In Clodfobble's example, each sock represents a shuffle, not a card, and "four" represents "52!". So you are guaranteed to get a match with five socks, or 52!+1 shuffles. Clodfobble was correcting my misunderstanding of HungLikeJesus' post.

lookout123 02-06-2008 02:40 PM

Wow. I've been visiting the cellar for nearly four years now for threads like this. I honestly couldn't care less about this subject and certainly am incapable of following, let alone creating the calculations you are all doing. In most circles I find myself in I (all arrogance aside) would rank near the top in intelligence and mental ability. Then I come to the cellar and feel like a true simpleton. You guys amaze me. While this subject holds no interest for me, the fact that it has captured your attention enough so that you actually calculate the truthiness of the thread title fascinates me.

Well done, geniuses. Well done.

Flint 02-06-2008 02:46 PM

Quote:

Originally Posted by Happy Monkey (Post 430333)
I believe I addressed that in the second sentence.

Well, I believe I addressed this in post #54:
Quote:

Originally Posted by Flint (Post 430221)
I haven't met my quota for scathing remarks this morning.

Plus, I was addressing the perfect shuffle thing, because it had been mentioned once before. And, 52!+1 ... ha! That's funny.

The interesting thing is that you really must get a match eventually, it's just that we don't have that kind of time. It reminds me of the idea that, given the universe is infinite in size, you can calculate how far you would have to go before you encounter an identical Earth, down to the last atom. Think about that.

By the way, what happened here is that my dad mentioned that the same card shuffle has never happened, and it bothered me. A few weeks later I asked him, did he mean one person has never had the same shuffle in their life? And he said, no, nobody. Ever. It's hard to believe, but we got out some scratch paper and a calculator and started pecking away at it. I'll be damned if I'm not completely convinced. I don't think it's possible that any given shuffle has ever repeated. So, lookout, you can thank my dad for this thread.

I really don't want to have to get out my statistics textbook, but...
I'm curious to know how many permutations it would take to have a 1% chance of repeating a shuffle.

Flint 02-06-2008 03:02 PM

Quote:

Originally Posted by lookout123 (Post 430337)
Well done, geniuses. Well done.

And, yes, I too love the Cellar for having five pages worth of interest in this subject, in just two days. You guys are top-notch.

Cicero 02-06-2008 03:54 PM

Actually- Sheldon is all the proof we need K?

:)

Happy Monkey 02-06-2008 04:46 PM

1 Attachment(s)
Here's the formula to calculate the chance, in n shuffles, that there will be NO matches:

Clodfobble 02-06-2008 05:51 PM

So if Flint sets that equation equal to 99, and solves for n, then he'll have his 1%-chance-of-a-duplicate answer, right?


Note I said Flint does it, because I sure as hell don't have the energy. :)

Happy Monkey 02-06-2008 06:29 PM

0.99, but yeah.

zewb 02-10-2008 01:03 AM

As long as there are a finite number of cards, it is completely possible that two identical shuffles could happen, although highly unlikely.

Perry Winkle 02-10-2008 03:58 AM

Why not write a computer program to see if you can get any repeat shuffles in a reasonable time frame?

Or even do it for one suit and then extrapolate how long it would take for the same thing to occur in an entire deck?

Card_shuffler 09-01-2013 09:49 PM

Hand shuffler seeks advice
 
I shuffle cards to pass time and break boredom. I know the montony of shuffling can produce boredom, but for some reason it relaxes and helps sooth tension, stress and anxiety.

One thing I have been noticing lately when I shuffle the deck and look through it afterwards to just see the distribution.

sometimes there is only on set of double number (same number, varying suit) and at other times as many a five such pairings in a single after-shuffle. Recently too I have been finding instances of 3 same number of differing suits grouped together and at others straights and the such.

I am a math affecianado too, and probability/Permutations fascinate me, and I am just wondering why this occurs, it seems that shuffling the deck is just as chancy as playing a game of Poker and that everything is determined by the luck of the draw.

I would appreciate some banter on this phenomenon because it bugs me that it happens, but I accept it begrudingly. I mean seeing one, two and as many pairings as 5 from a single overhand shuffle of 8 to 20 passes really annoys me.

And I guess we are all looking for that perfect shuffle, aren't we? Well I guess it'll never happen, not with the number of permutations available for a standard Poker deck. Thanks.

Undertoad 09-01-2013 10:11 PM

I think the perfect shuffle is merely an entirely random shuffle. And that means there are going to be pairs and whatnot... because it's random. You shouldn't have the expectation of no pairs if it's more likely that pairs will happen.

sexobon 09-01-2013 11:16 PM

Anyone expecting a perfect shuffle from a random shuffle is doing it wrong. One should do a stratified random shuffle to break up the patterns. The Wizard of Oz told me so.

footfootfoot 09-02-2013 09:03 AM

Faro shuffle.

Griff 09-02-2013 09:22 AM

How many permutations does the Icky Shuffle have?

tw 09-02-2013 09:48 AM

So what happens when I shuffle down the road?

sexobon 09-02-2013 02:01 PM

1 Attachment(s)
Will you be doing the Airborne Shuffle? Sounds like something one would do before playing 52 Pickup; but, noooooooooooo ...

Attachment 45338

Gravdigr 09-02-2013 02:21 PM

Quote:

Originally Posted by tw (Post 874990)
So what happens when I shuffle down the road?

You end up in Buffalo.

Pete Zicato 09-04-2013 02:13 PM

Tangentially pertinent. I read somewhere years ago that 7 shuffles between hands was optimal. After that, the deck does not get more random.

Spexxvet 09-04-2013 02:41 PM


Gravdigr 09-06-2013 02:27 PM

1 Attachment(s)
Since we're drifting, kinda...

I don't know how many times the cards were shuffled, but, this one time, at whiskey camp, I got dealt this hand. Deuces were wild. True Story®.

:yelgreedy

Attachment 45397

:D

[/drift]

Spexxvet 09-07-2013 09:21 AM

Quote:

Originally Posted by Gravdigr (Post 875400)
Since we're drifting, kinda...

I don't know how many times the cards were shuffled, but, this one time, at whiskey camp, I got dealt this hand. Deuces were wild. True Story®.

:yelgreedy

Attachment 45397

:D

[/drift]

How many did you draw? ;)

Gravdigr 09-07-2013 02:55 PM

Hell, I almost didn't give the cards back after the hand!

Flint 09-22-2013 04:07 PM


lumberjim 09-22-2013 11:27 PM

Fool in the rain?

I like it, but I don't get the reference

Griff 09-23-2013 05:36 AM

teh beat

jimhelm 09-23-2013 09:56 AM

eh? still not getting it. is it in reference to spexx's youtube?, cuz i cant view that.

Undertoad 09-23-2013 10:05 AM

A shuffle is a type of swing drum beat

http://en.wikipedia.org/wiki/Shuffle...osanna_shuffle

lumberjim 09-23-2013 11:23 AM

Oh. Um. Ok.

Flint is usually funny.

Flint 02-03-2017 01:34 PM

Your face is usually funny.

classicman 02-03-2017 05:41 PM

His face is always fun - - - - - ny

Gravdigr 02-06-2017 04:15 PM

Quote:

Originally Posted by lumberjim (Post 876754)
Oh. Um. Ok.

Flint is usually funny.

Quote:

Originally Posted by Flint (Post 981263)
Your face is usually funny.

~3.5 years, and that's the best comeback ya could come up with?

:lol2:

Flint 12-17-2018 04:49 PM

Yeah, and I still feel that way.

lumberjim 12-18-2018 02:20 AM

Feel these

Flint 12-18-2018 12:23 PM

bro, get this lump checked out

Griff 12-19-2018 06:31 AM

lol

Flint 12-19-2018 12:09 PM

*compassionate assholeism


All times are GMT -5. The time now is 03:10 AM.

Powered by: vBulletin Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.