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.
Choose your probability of success:
Choose your null hypothesis:
Note: you can also type in a custom number of trials and successes and hit submit to update the visualization.
P-Value: