This tool models a Geometric Distribution which when given a probability, p,
simulates how many tries (trials) it takes for the first success to occur.
For Example:
How many flips of a coin does it take to get the first heads on average? 2 flips?
How many rolls of a die does it take to get the first "6"" on average? 6 rolls?
Steps:
- Enter a probability (p) of success
- Enter Number of runs (r) to simulate
- Press "Simulate"
A table below will show results of which trial # the first success occurs
along with the count of runs that first succeeded on that trial
and compares them with theoretical expectations.
Simulation: The execution of r number of "run"(s).
Run: Continuous execution of "trials" until a success is achieved
(small chance a run could take a long / infinite time to complete)
Trial: An independent Bernoulli trial: A random experiment with exactly two possible outcomes,
"success" and "failure", in which the probability of success is the same every time the experiment is conducted.
More specifically, a trial generates a random decimal value (0-1) and checks if it is less than entered
probability of success, p