Introduction to Probability · Problem 8.1.3

Law of Large Numbers — Grinstead & Snell

Mathematics — Probability · law-of-large-numbers-simulation

Problem

Write a program to toss a coin 10,000 times. Let SnS_n be the number of heads in the first nn tosses. Have your program print out, after every 1000 tosses, Sn−n/2S_n - n/2. On the basis of this simulation, is it correct to say that you can expect heads about half of the time when you toss a coin a large number of times?

Related theory

Browse the problem library