Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Math

Magician Turned Professor Talks About the Math Behind Shuffling Cards 63

An anonymous reader writes with this story about magician and professor of mathematics and statistics at Stanford University Persi Diaconis. "Now a professor of mathematics and statistics at Stanford University, Diaconis has employed his intuition about cards, which he calls 'the poetry of magic,' in a wide range of settings. Once, for example, he helped decode messages passed between inmates at a California state prison by using small random 'shuffles' to gradually improve a decryption key. He has also analyzed Bose-Einstein condensation — in which a collection of ultra-cold atoms coalesces into a single 'superatom' — by envisioning the atoms as rows of cards moving around. This makes them 'friendly,' said Diaconis, whose speech still carries the inflections of his native New York City. 'We all have our own basic images that we translate things into, and for me cards were where I started.' In 1992, Diaconis famously proved — along with the mathematician Dave Bayer of Columbia University — that it takes about seven ordinary riffle shuffles to randomize a deck. Over the years, Diaconis and his students and colleagues have successfully analyzed the effectiveness of almost every type of shuffle people use in ordinary life."
This discussion has been archived. No new comments can be posted.

Magician Turned Professor Talks About the Math Behind Shuffling Cards

Comments Filter:
  • by Anonymous Coward on Wednesday April 15, 2015 @02:39PM (#49480413)

    to complete randomness, is to leave an open pack sitting on the floor and let loose the kittens.

    • by Livius ( 318358 )

      The kittens want you to believe that the outcome would be random.

  • by account_deleted ( 4530225 ) on Wednesday April 15, 2015 @02:41PM (#49480431)
    Comment removed based on user account deletion
  • by myrrdyn ( 562078 ) on Wednesday April 15, 2015 @02:53PM (#49480519)
    Brady Haran on Numberphile has a series of interviews with Persi Diaconis: https://www.youtube.com/playli... [youtube.com]
    • by Barny ( 103770 )

      Dang it, I had my link all ready and you beat me to it. Damn good series, very interesting in that he describes in simpler terms why and how it is worked out.

    • I suspect the Numberphile videos about shuffling inspired this article.
  • Perfect shuffle (Score:1, Interesting)

    by Anonymous Coward

    If you do 13 perfect shuffles (deck cut in exactly half, one card from each half going on top of the other), you will end up with the same deck. So it's not surprising that 7 "shuffles" would maximize entropy, by how they are measuring it (where does the top card end up, are there adjacent cards still "stuck"). You do end up with interesting pattern on a perfect shuffle using a sorted deck.

    --sf

  • by xxxJonBoyxxx ( 565205 ) on Wednesday April 15, 2015 @02:56PM (#49480537)

    This topic might have warranted a video, considering it's a demo. It would sure beat all the "some dude talks about something for flipping forever" videos Slashdice keeps trying to dump on us instead.

    • by Anonymous Coward

      I'm still waiting for an option to find sex partners with /. video.

    • by myrrdyn ( 562078 )

      This topic might have warranted a video, considering it's a demo. It would sure beat all the "some dude talks about something for flipping forever" videos Slashdice keeps trying to dump on us instead.

      As I already pointed out in a different post, there are some video interviews on Numberphile:
      https://www.youtube.com/playli... [youtube.com]

      Ok, it's not a Slashdot video but hey :-)

  • Hmm, I recall learning the seven shuffle result when I was in math grad school in the 80s (from Prof Diaconus himself.) Did he not publish it until '92?
  • First of all, my respect to devoted professor and mathematician who is able to concentrate into observation and to think it through various aspects.

    I have read article carefully and what it says is that certain type of shuffling produces desired random sequence of cards.

    Also, consequently, we have mathematician who is trying to prove statistical correlation between how much time is spent mixing (smooching) and the randomness.

    It can be proved empirically that this is a correct theory - the longer you shuffle

    • It can be proved empirically that this is a correct theory - the longer you shuffle cards, the more random sequence you have.

      Not for a riffle-shuffle, which is what most people do. For a riffle, the more you do IMPERFECT shuffles, the more random, but for every perfect riffle shuffle the output will be completely predictable.

      A wash is a much more random shuffle, which is why casinos that don't have machines to shuffle and use a single deck will do a wash. I have no idea how the shuffle machines operate, they're literally a black box.

    • by Anonymous Coward

      It can be proved empirically that this is a correct theory - the longer you shuffle cards, the more random sequence you have.

      that's not true at all. After some point more shuffling will make the set less random the more times you shuffle. How do you find that point?

      It's really not all that simple, but in many fields it could be important.

    • It can be proved empirically that this is a correct theory - the longer you shuffle cards, the more random sequence you have.

      Not true. There is a limit to entropy of a collection of objects, and once you reach this limit, any change to the system can only to be a reduction in the degree of entropy in the system. Also, it is entirely possible, (if unlikely) that you can shuffle a randomized deck of cards into sequential order.
      • by Obfuscant ( 592200 ) on Wednesday April 15, 2015 @08:22PM (#49482353)

        Also, it is entirely possible, (if unlikely) that you can shuffle a randomized deck of cards into sequential order.

        Random does not mean completely out of order, it means unpredictable. I can roll five dice and come up with a large straight (12345). The random comes from not being able to predict from the previous state (22222 Yahtzee!) what the next state (12356 chance) will be.

        A perfect riffle shuffle is not a random process since you can observe the initial state (123456 e.g) and predict the result (142536). That's true for whatever the starting state is.

    • what are the practical applications of this observation

      Mathematicians don't need practical applications. When they speak about "applications" they mean "applications to other fields of mathematics". And that is good so.

      That being said, I know Diaconis primarily for his earlier work on ranking methods, which have many practical applications in CS -- like page ranking algorithms, for instance.

  • Magician Turned Professor

    ...into a frog.

  • Most people are not aware that a perfect riffle shuffle on a deck of cards returns the deck to it's original state at eight shuffles. This means an assumption of imperfection for seven shuffles.

    It is highly probabilistic that a perfect riffle shuffle never occur. It takes some effort to replicate to perfect shuffle.
    • by Anonymous Coward

      It is actually pretty easy to do once you get the knack for it. Cut the deck in half, square the ends, place the ends against each other with about a three eights inch offset, push the halves together firmly, and slightly twist the opposite ends toward you. If it is a new deck, the cards will basically interlace themselves. perfectly.
      Yes, I did have a misspent childhood.

  • For those who are interested in math and/or card tricks, Colm Mulcahy [spelman.edu] is a professor of mathematics who often writes about math, cards and card tricks. He writes a blog called Card Colm [blogspot.com] for the Mathematical Association of America (MAA) [maa.org]. He has written a book, Mathematical Card Magic: Fifty-Two New Effects [crcpress.com], published by CRC Press.

    A web site [cardcolm.org] contains other interesting information about Mulcahy and his work, including links to past Card Colms. [cardcolm.org]

    Enjoy!

Two can Live as Cheaply as One for Half as Long. -- Howard Kandel

Working...