12
Mathemagic: what happens at the intersection between magic and Math? Talk by: Kush Fanikiso Email: [email protected] Advised by: Professor Steven J. Miller

Mathemagic : what happens at the intersection between magic and Math?

  • Upload
    zayit

  • View
    47

  • Download
    2

Embed Size (px)

DESCRIPTION

Mathemagic : what happens at the intersection between magic and Math?. Talk by: Kush Fanikiso Email: [email protected] Advised by: Professor Steven J. Miller. Key ideas. The mathematical basis of the trick is that for most orderings of the deck most secret numbers produce the same final key. - PowerPoint PPT Presentation

Citation preview

Page 1: Mathemagic : what happens at the intersection between magic and Math?

Mathemagic: what happens at the intersection between magic and Math?

Talk by: Kush FanikisoEmail: [email protected] by: Professor Steven J. Miller

Page 2: Mathemagic : what happens at the intersection between magic and Math?

Key ideasThe mathematical basis of the trick is that for most orderings of the deck most secret numbers produce the same final key.

The truth is that I am not trying to read you, I am playing the game myself and my last card is probably your last card as well.

The full technical analysis of this trick uses Geometric distributions and Markov chains to calculate probabilities.

Page 3: Mathemagic : what happens at the intersection between magic and Math?

Main idea behind the full proof

Lagarias, Rains and Vanderbei use coupling methods for Markov chains to obtain upper and lower bounds on the coupling probability, which represents the failure probability of the Kruskal Count trick.They imagine that they have two independent Markov chains on a finite state space and then find reasonable bounds on the likelihood of those two chains intersecting. The last thing they do is they run 106 simulations to see how reasonable their calculations are.

Page 4: Mathemagic : what happens at the intersection between magic and Math?

What is the probability that I succeed?

Page 5: Mathemagic : what happens at the intersection between magic and Math?

Lets make the assumption that the two chains are equally likely to intersect at any of the 52 cards with a constant probability p2.Let q = (1 – p2) be the probability that the two chains don’t intersect at any of the 52 cards.

Page 6: Mathemagic : what happens at the intersection between magic and Math?

Let I ∈ {1, 2, 3, … , 52} be the random variable which is the card position at which they intersect.This gives us the standard geometric probability distribution:P(I = r) = qr-1p2 for r = 1, 2, 3, …

Page 7: Mathemagic : what happens at the intersection between magic and Math?

Useful result to keep in mind

ark=0

∑ k= ark=1

∑ k−1=a1− r

Page 8: Mathemagic : what happens at the intersection between magic and Math?

We have that:

P(I > r) = (1−p2)x=r+1

∑ x−1p =(1−p2)rp1− (1−p2)

= (1−p2)r = qr

Page 9: Mathemagic : what happens at the intersection between magic and Math?

The probability that I succeed is thus

P = 1 – P(I > 52) = 1 – q52

= 1 – (1 – p2)52

Page 10: Mathemagic : what happens at the intersection between magic and Math?

Now lets find a readsonable estimate for p

For each of the two chains the average step size is:

This naturally generates a probability of 13/70 and we call p this probability.

1+2 + 3+⋅⋅⋅+5 +5 +513

=7013

Page 11: Mathemagic : what happens at the intersection between magic and Math?

So we now haveP(succeed) = 1 – P(I > 52) = 1 – [1 – (13/70)2]52

= 1 – (4731/4900)52

= 0.8388…

Page 12: Mathemagic : what happens at the intersection between magic and Math?

Table of Theoretical probabilitiesPicture cards

count asValue of p Magician

starts with any of the first 10 cards

Magician starts with first card

11, 12, 13 1/7 65.77 70.05

10, 10, 10 13/85 70.80 74.67

5, 5, 5 13/70 83.88 86.41

1, 1, 1 13/58 93.15 94.40

Letter count 1/4 96.51 97.21