Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
If a coin that comes up heads with probability is tossed repeatedly, the toss on which the first head is observed follows a geometric probability distribution. Drag the sliders and watch how the distribution changes. The mean of the distribution—the toss number on which one "expects" to observe the first head—is marked with a red circle on the horizontal axis.
Contributed by: Chris Boucher (March 2011)
Open content licensed under CC BY-NC-SA
The Mathematica built-in function GeometricDistribution is for the number of failures before a success, so there is a shift by 1 from that geometric distribution to the distribution shown here.
Wolfram Demonstrations Project
Published: March 7 2011