Binomially Distributed Fun!


Click the button to generate a result from a Bernoulli trial. As you generate more results you get wonderfully binomially distributed data.

Play around with the the parameters of the underlying Bernoulli trials and the null hypothesis (two-sided) to more throughly understand the behavior of the Binomial distribution and of its accompanying confidence intervals and hypothesis tests. Note how the confidence interval changes as you generate more trials and the p-value shifts depending on your most recent Bernoulli trial.

Probability of Success

Choose your probability of success:


Hypothesized Probability

Choose your null hypothesis:


Results:

Note: you can also type in a custom number of trials and successes and hit submit to update the visualization.

Number of trials: Number of successes:
P-Value: