More or Less Behind the Statistics
More or Less Behind the Statistics

The magic of maths

Tim Harford speaks to Persi Diaconis, top professor of maths and statistics and legendary magician. The Stanford University professor and co-author of the book "Magical Mathematics" has an enthralling story to tell of how he discovered magic as a boy, and then, as a consequence, a love of

Featured Speakers

BBC HostPercy Diaconis Guest

Topics Discussed

Episode Summary

Executive Summary: This BBC More or Less episode explores the mathematics behind a card trick and how magic and probability intersect. Tim Harford demonstrates a seemingly impossible shuffle-based trick, then interviews mathematician-magician Percy Diaconis, who explains the invariant that makes it work, shares his unusual path from teenage runaway magician to Stanford professor, and illustrates how playful card effects can lead to deep mathematical questions.

Main Topics: The card trick and its hidden mathematics (Priority: 5/5): A live demonstration shows how a sequence of shuffles, cuts, and face-up/face-down card manipulations can produce a royal flush despite appearing random. Invariants in card shuffling (Priority: 5/5): Diaconis explains that the trick relies on an invariant pattern: alternating card orientations persist through certain cuts and shuffles. Percy Diaconis’s unconventional career path (Priority: 4/5): The guest recounts leaving home at 14 to travel with a magician, then later returning to formal education and becoming a professor. Probability as a gateway to mathematics (Priority: 4/5): Diaconis describes how magic led him to probability, including his early curiosity about dice outcomes and self-study of Feller’s book. Perfect shuffles and deep unsolved problems (Priority: 5/5): The discussion broadens to perfect shuffles, card-cycle lengths, and how apparently simple questions can exceed current mathematical understanding. The relationship between magic and research (Priority: 4/5): Diaconis argues that magic and mathematics influence each other in both directions, with tricks inspiring serious mathematical questions and vice versa.

Key Arguments: The trick works not through sleight of hand but through a mathematical invariant that survives the shuffling process. A simple alternating face-up/face-down arrangement can remain stable even after cutting and recombining cards. Magic can serve as a practical pathway into probability and deeper mathematical thinking. Some card-shuffling questions are easy to state yet still unresolved in modern mathematics. Perfect shuffles are deterministic rather than random, and their repeated application can return a deck to its original order. The boundary between playful magic and serious research is porous; each can generate insights for the other.

Data Points: Age Percy Diaconis ran away from home: 14 - He left New York City to travel with magician Dave Vernon. Years before seeing his parents again: 17 years later - Diaconis said he did not see his parents until about 17 years after leaving home. Age when he bought Feller’s probability book: 16 - He purchased An Introduction to Probability and Its Applications as a teenager. Age when he enrolled at City College at night: 24 - He returned to formal study before eventually entering graduate education. Perfect shuffles needed for a 52-card deck to return to order: 8 - Diaconis cited the classic result for repeated perfect shuffles on a standard deck. Perfect shuffles needed for a 54-card deck to recycle: 52 - He gave this as a striking contrast to the 52-card case.

Pivotal Quotes: "It's a trick that I've studied and developed. In fact, hidden behind it is some rather elegant mathematics." — Percy Diaconis: Explaining that the apparent magic is rooted in mathematical structure. "If you ask, suppose I had a deck of general size, two end cards, how many times do you have to shuffle it to have it recycle? The answer changes a lot." — Percy Diaconis: Discussing how shuffle behavior depends dramatically on deck size. "There are things that a 13-year-old kid could think about that touch mathematics in a very deep way and are beyond modern mathematics to understand." — Percy Diaconis: Reflecting on how simple card questions can lead to profound mathematical problems.

Implications: The episode shows that everyday puzzles and magic tricks can reveal real mathematical structure. For listeners, it highlights how curiosity-driven play can lead to serious science and even unsolved research questions.

🔓 Sign Up for Unlimited Episode Search

About More or Less Behind the Statistics

Tim Harford and the More or Less team try to make sense of the statistics which surround us. From BBC Radio 4

View all episodes from More or Less Behind the Statistics