An Unintuitive Coin Flip Problem (With Secret Markov Chains)
Here's a seemingly easy coin flip probability question that might have you reconsidering what you know about probabilities. Under the surface of this short problem is a probability phenomena known as a Markov Chain. In this video we'll introduce the problem, try to simulate it using some python code, and then explain why the results we're seeing seem to contradict what we know about probability and coin flips. --------------- I tweet math things on Twitter: / mathprofpeter I stream math things on Twitch: / professorpeter --------------- Python code (in case you want to try it yourself): import random ################################### Setup ################################### population = [0,1] # 0 = H, 1 = T pattern1 = [0,0,1] # HHT pattern2 = [0,1,1] # HTT trials = 1000000 # a million trials! p1wins = 0 p2wins = 0 ################################### Flip the coins and check the patterns we see ################################### for x in range(0,trials): fliplist = [] while fliplist != pattern1 and fliplist != pattern2: Flip a coin, add it to the list, check against the patterns flip = random.choice(population) fliplist.append(flip) fliplist = fliplist[-3:] # only keep the latest 3 flips if fliplist == pattern1: p1wins = p1wins + 1 if fliplist == pattern2: p2wins = p2wins + 1 ################################### Summary information ################################### p1percent = round(float(p1wins)/trials * 100,2) p2percent = round(float(p2wins)/trials * 100,2) print "Pattern 1 (HHT) won", p1wins, "times. This is ", p1percent, "%" print "Pattern 2 (HTT) won", p2wins, "times. This is ", p2percent, "%"

The Strange Math That Predicts (Almost) Anything

A Coin Flip Paradox and the ABRACADABRA Theorem for infinite monkeys: How long does it take? #SoME2

Random walks in 2D and 3D are fundamentally different (Markov chains approach)

Markov Decision Processes - Computerphile

Markov Chain Monte Carlo Explained in 10 Minutes

Lecture 31: Markov Chains | Statistics 110

Consecutive Coin Flips - Numberphile

Reinventing Entropy | Compression is Intelligence Part 1

Markov Chains Explained Visually

Mastering Markov Chains for Quant Interviews

Markov Chains Clearly Explained! Part - 1

About an unintuitive concept that explains unsolvable Puzzles

Listen and Feel the Peace | Tibetan Healing Sounds for Deep Meditation, Inner Peace & Soul Healing

I Day Traded $1000 with the Hidden Markov Model

Bayes theorem, the geometry of changing beliefs

Gentle Introduction to Probability: Counting Coin Flips and Dice

Introducing Markov Chains

Markov Chains - VISUALLY EXPLAINED + History!

Jim Simons Trading Secrets 1.1 MARKOV Process

