Slashdot Mirror


Magician Turned Professor Talks About the Math Behind Shuffling Cards

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."

11 of 63 comments (clear)

  1. Tip: The best method to shuffle by Anonymous Coward · · Score: 5, Funny

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

    1. Re:Tip: The best method to shuffle by njnnja · · Score: 3, Informative

      Cats aren't taking pleasure in tormenting prey, or playing with the mouse, they are tiring out an animal that has teeth and claws and could potentially hurt the cat. In the wild, even if a predator manages to kill the prey, if that prey manages to wound the predator so that the next time it goes on the hunt, it is not so strong or sharp, the predator is in trouble.

      Have you ever gone fishing? The best way to catch many kinds of fish is to fight it for a while and tire it out. That's the hunting methodology that cats have evolved to use.

    2. Re: Tip: The best method to shuffle by ShanghaiBill · · Score: 3, Informative

      What would motivate a rabbit, horse or dog to eat its own shit?

      At least in the case of rabbits, it is normal behavior. All rabbits do it. They eat high-cellulose diets, and require bacteria to break down the fiber. Cows manage that by having multiple stomachs and a long digestive tract. But rabbits are too small for that, so they use two passes. After the first pass, the poop comes out soft and green, and is re-eaten as it emerges from the anus. After the second pass, the poop is hard black pebbles, and is not eaten.

      Many animals will eat the feces of their young to get rid of the odor that may attract predators.

      Most dogs stop eating poop as they mature. Puppies often do it, but adult dogs usually don't, unless they are nursing a mother, which often eat the puppy poop. Folklore has it that you can stop a dog from eating poop by mixing mashed pumpkin into their food.

  2. Oblig Simpsons by bangular · · Score: 4, Funny

    I'm a very special type of magician, I'm a MATH-emagician

    1. Re:Oblig Simpsons by sconeu · · Score: 2

      Phantom Tollbooth did it first!

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
  3. Numberphile interviews by myrrdyn · · Score: 5, Interesting

    Brady Haran on Numberphile has a series of interviews with Persi Diaconis: https://www.youtube.com/playli...

    --
    Elen sìla lùmenn' omentielvo
  4. First request for Slashdot video...EVAR by xxxJonBoyxxx · · Score: 3

    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.

  5. Re:seven ordinary shuffles by sexconker · · Score: 2

    And it varies with each individual shuffler, deck of cards, etc.
    To call such a thing a "proof" is an insult to actual mathematical proofs. To use such a definition of "random" is outright blasphemy.

  6. objective of the research: The perfect shuffle. by TiggertheMad · · Score: 2

    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.

    --

    HA! I just wasted some of your bandwidth with a frivolous sig!
    1. Re:objective of the research: The perfect shuffle. by Obfuscant · · Score: 3, Informative

      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.

  7. Re:Perfect shuffle by trb · · Score: 2
    8 perfect (faro out) shuffles will get you back home. You can do this with code, and there are youtube videos that claim to show it.

    http://en.wikipedia.org/wiki/F...