Bernoulli Distribution

The simplest discrete distribution — a single trial with two outcomes (success/failure). Building block of the binomial.

Please verify you are human to use the calculator.

About the Bernoulli Distribution

The simplest discrete distribution — a single trial with two outcomes (success/failure). Building block of the binomial.

Use the interactive controls above to adjust the distribution parameters and see how the shape of the probability mass function (PMF) and cumulative distribution function (CDF) change in real time. The probability calculator lets you compute exact probabilities for any range.

A Bernoulli variable records one trial: success has probability p and failure has probability 1 - p. To count successes across a fixed number of independent trials with the same probability, use the binomial distribution calculator.

Learn More

Explore how the bernoulli distribution is used in practice in our tutorials:

Fitting the bernoulli distributionto real data is a modelling decision with consequences downstream, in the tails the model never sees during training. We review that choice in someone else's model as part of AI due diligence, and make it in your own as part of AI consulting for mid-market firms.

Related calculations

  • Binomial: Count successes across independent trials with the same success probability.
  • Beta: Represent uncertainty about a Bernoulli success probability with a beta prior.
  • Geometric: Model the wait until the first success in independent binary trials.
  • One-proportion z-test: A one-proportion z-test compares a binary success rate with a specified reference.
  • Fisher's exact test: For two groups of binary observations, inspect exact contingency-table inference when counts are sparse.

Related Tools

Stay in the loop

Get notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.

Bernoulli Distribution FAQ

Common questions about the bernoulli distribution