Buffon's Needle Experiment

Description

Buffon's needle experiment is a random experiment that results in a statistical estimation of the number \(\pi\). The experiment consists of dropping a needle on hardwood floor, with floorboards of width 1. Random variable \(X\) gives the angle of the needle relative to the floorboard cracks and random variable \(Y\) gives the distance from the center of the needle to the lower crack. Each point \((X, Y)\) is shown as a red dot in the scatterplot. Random variable \(I\) indicates the event that the needle crosses a crack. This event is the region above the blue upper curve and below the blue lower curve in the scatterplot. Buffon's estimate of \(\pi\) is \(2 L n / N\) where \(n\) is the number of runs and \(N\) the number of crack crossings. When the experiment runs, \(X\), \(Y\), and \(I\) are recorded in the data table. The distribution of \(I\) is described in the distribution graph and table. The estimate of \(\pi\) is shown in the third graph and given in the distribution table of \(I\). The parameter is the needle length \(L\), which can be varied with a scrollbar.