BrightChamps Logo
Login

Summarize this article:

Live Math Learners Count Icon253 Learners

Last updated on November 20, 2025

Bernoulli Distribution

Professor Greenline Explaining Math Concepts

An important concept in statistics and data science, the Bernoulli distribution is one of the ways to describe an event with only two possible outcomes. The outcomes are represented as ‘success’ or ‘failure’ or ‘1’ and ‘0.’ Let us understand the concept with an example. Suppose we participated in a race, we either win or lose. The Bernoulli distribution helps explain situations like these. In this topic, we will explore the concept of Bernoulli distribution.

Professor Greenline from BrightChamps

What is Bernoulli Distribution?

The Bernoulli Distribution is the mathematical framework for the simplest kind of experiment: one where there are only two possible ways things can end.


Think of it as the “Either/Or” model. In statistical language, we typically label these two outcomes as 1 (Success) and 0 (Failure).
 

  • Success (1): This doesn't necessarily mean “good”—it just means the specific thing you were looking for happened. We represent the chance of this happening with the letter \(p.\)
     
  • Failure (0): This just means the other option happened. The probability of this is whatever is left over, written as \(q = 1 - p.\)
     

This concept, known as a Bernoulli trial, appears frequently in daily life. You are running a Bernoulli trial every time you:
 

  • Flip a coin (Heads vs. Tails).
     
  • Guess on a True/False quiz question.
     
  • Quality-check a product (Working vs. Defective).
     

Why is it important?


The Bernoulli distribution is famous not because it's complex, but because it is the foundation for much larger statistical concepts. It is the “atom” of discrete probability.
 

  • If you repeat a Bernoulli trial multiple times (like flipping a coin 10 times) and count the wins, you build a Binomial distribution.
     
  • If you keep flipping the coin until you finally get a “Head,” you are building a Geometric distribution.
     

Without Bernoulli, these more complex models wouldn't exist.

Example:

Imagine you are rolling a standard die. Let's say you decide that landing on Six counts as a “success.”
 

  • Your random variable (X) has a \(\frac{1}{6}\times100=16.66\%\) chance of being a success.
     
  • Mathematically, that is \(P(X=1) = 0.1666.\)
     
  • Consequently, getting anything other than Six (failure) is \(1-0.1666=0.8334.\)
     

While the math is simple, this model gives statisticians a standardized way to describe binary outcomes in everything from gambling to manufacturing.

Professor Greenline from BrightChamps

Properties of Bernoulli Distribution

Learning the properties of Bernoulli distribution helps students understand the situations with only two possible outcomes. It is a simple way to know how probability works in real life and also in subjects, such as economics, mathematics, statistics, and computer science. The properties of Bernoulli distribution are listed below:
 

  • Binary Outcomes: There are strictly two possible results for every experiment: Success (labeled 1) or Failure (labeled 0).
     
  • Fixed Odds: The probability of getting a “Success” \((p)\) is locked in; it never changes from one trial to the next.
     
  • No Memory (Independence): Every attempt is a fresh start. The result of your previous try has absolutely no effect on the current one.
     
  • The “Leftover” Rule: The chance of Failure \((q)\) is mathematically just whatever is left over after accounting for success \((1 - p).\)
     
  • Discrete Nature: Because you can only land on specific whole numbers (0 or 1) rather than a continuous range, it is a discrete distribution.
     
  • The Average (Mean): The expected value is equal to the probability of success: \((p).\)
     
  • The Spread (Variance): The variance, which measures how much results differ from the average, is calculated by multiplying the chance of success by the opportunity of Failure: \(p(1 - p).\)

Explore Our Programs

Grade 1
arrow-left
arrow-right
Professor Greenline from BrightChamps

Bernoulli Distribution Formula

The Bernoulli distribution formula expresses the probability of two possible results. It shows the chances of success and failure.
 

The Bernoulli distribution has two important functions, probability distribution function (PDF) and cumulative distribution function (CDF). The PDF gives the probability of success and failure. The CDF, on the other hand, describes the probability of getting a value less than or equal to 1 or 0.  

 

The PDF for Bernoulli distribution is:

 

\(P (X = x) = px (1 − p)1 − x\)

 

Here, 

 

\(P (X = x) =\) The chance of getting the possible outcome, like success or failure.


\(X =\) The outcome 


Where \(x = 1\) means success and \(x = 0\) means failure


\(p =\) Probability of success.


\(1 - p =\) Probability of failure.
 

Now, let us take a closer look at this formula with an example:


In a running competition, if the probability of winning is 0.7, then the probability of losing is:
 

\(1 − 0.7 = 0.3\)


By using the Bernoulli distribution formula, we can find the probability.


Probability of success:


\(​ P (X = x) = px (1 − p) − x ​\)


\(​ P (X = 1) = (0.7) (0.3) − 1 ​\)


\(0.7 × 1 = 0.7\)


So, the probability of winning is 0.7

 

Probability of failure:


\(​ P (X = x) = px (1 − p) − x ​\)


\(​ P (X = 0) = (0.7) (0.3)1 − 0 ​\)


\(1 × 0.3 = 0.3\)


Therefore, the probability of losing is 0.3

 

The cumulative distribution function for the Bernoulli distribution is:

 

\(F(x) = 0\), when \(x < 0\).


\(F(x) = 1 − p\), if \(0 ≤ x < 1\), and


\(F(x) = 1\), if \(x ≥ 1\)

 

\(F(x) =\) The cumulative distribution function and the random variable \(X\) is less than or equal to \(x\)


\(P (X ≤ x) =\) Probability of \(X\) is less than or equal to \(x\)

Professor Greenline from BrightChamps

Difference Between Bernoulli Distribution and Binomial Distribution

Let us see what are the differences between a Bernoulli Distribution and a Binomial Distribution.

 

Feature

Bernoulli Distribution

Binomial Distribution

Definition

A probability distribution for a single trial with two possible outcomes (Success or Failure).

A probability distribution for the number of successes in a sequence of n independent Bernoulli trials.

Number of Trials (n)

Always \(n = 1\).

A fixed number, n (where \(n \ge 1\)).

Possible Outcomes (X)

Only two: 0 (Failure) or 1 (Success).

A range of integers: \(\{0, 1, 2, \dots, n\}.\)

Parameters

\(p\)(probability of success).

\(n\)(number of trials) and \(p\)(probability of success).

Notation

\(X \sim \text{Bernoulli}(p)\)

\(X \sim \text{Binomial}(n, p)\)

PMF Formula (Probability Mass Function)

\(P(X=x) = p^x (1-p)^{1-x}\), (Where\( x \in \{0,1\}\))

\(P(X=k) = \binom{n}{k} p^k (1-p)^{n-k}\), (Where \(k\) is the number of successes)

Mean (Expected Value)

\(\mu = p\)

\(\mu = np\)

Variance

\(\sigma^2 = p(1-p)\)

\(\sigma^2 = np(1-p)\)

Real-World Example

Flipping a coin once. (Heads or Tails)

Flipping a coin 10 times and counting how many were Heads.

Professor Greenline from BrightChamps

Mean and Variance of Binomial Distribution

The mean represents the expected average outcome for a distribution, telling you what value to expect over the long run. Variance measures the distribution of uncertainty around the mean, quantifying how likely the actual results are to deviate from the expected average.
 

  1. Mean \((\mu)\):

    \(E[X] = p\)
     
    • Since the outcome is either 1 (with probability \(p\)) or 0 (with probability\(1-p\)), the weighted average is simply \(1(p) + 0(1-p) = p\)
       
  2. Variance \((\sigma^2)\):

    \(​​​​​​​Var(X) = p(1 - p)\)
     
    • Variance measures how much the outcomes “spread” from the mean.
       
    • It is calculated as \(E[X^2] - (E[X])^2\)
       
    • Since \(1^2 = 1\) and\( 0^2 = 0\), \(E[X^2]\) is also just \(p\).
       
    • Therefore, \(Var(X) = p - p^2 = p(1-p)\)
       
Professor Greenline from BrightChamps

Probability Mass Function for Bernoulli Distribution

The Probability Mass Function (PMF) of a Bernoulli distribution specifies the probability that a random variable X takes on a specific value x. Since the Bernoulli distribution only has two possible outcomes (Success or Failure), the PMF is quite simple. It is typically expressed as:

\(P(X=x) =  \begin{cases}  p & \text{if } x = 1 \text{ (Success)} \\ 1-p & \text{if } x = 0 \text{ (Failure)} \\ 0 & \text{otherwise} \end{cases}\)

 

  • p: The probability of success (e.g., 0.5 for a fair coin).
     
  • 1-p: The probability of failure (often denoted as q).
Professor Greenline from BrightChamps

Cumulative Distribution for Bernoulli Distribution

The Cumulative Distribution Function (CDF) calculates the probability that a random variable X will take a value less than or equal to a specific number x. For a Bernoulli distribution (where outcomes are strictly 0 or 1), the CDF is a step function that increases in jumps at \(x=0\) and \(x=1\).

\(F(x) = P(X \le x) =  \begin{cases}  0 & \text{if } x < 0 \\ 1 - p & \text{if } 0 \le x < 1 \\ 1 & \text{if } x \ge 1 \end{cases}\)
 

Where:
 

  • If \(x < 0\): Since the lowest possible outcome is 0, it is impossible to get a value lower than that, so the cumulative probability is 0.
     
  • If \(0 \le x < 1\): At this stage, you have only captured the “Failure” outcome (0), so the running total equals the probability of failure \((1-p)\).
     
  • If \(x \ge 1\): By reaching 1, you have captured all possible outcomes (both Failure and Success), so the total probability reaches 1 (100%).
Professor Greenline from BrightChamps

Bernoulli Distribution Graph

The Bernoulli distribution graphs depict a single binary experiment, with the PMF showing two distinct bars representing the probabilities of failure and success. This is paired with the CDF, a staircase-like step function that depicts the cumulative probability, rising at each outcome until it reaches 100 percent.
 

Probability Mass Function (PMF): This graph shows the probabilities of the two possible outcomes. You will see two distinct bars.
 

  • At x=0 (Failure): The height is 1-p (or q).
     
  • At x=1 (Success): The height is p.


Cumulative Distribution Function (CDF): This graph shows the running total of probability. It looks like a staircase.
 

  • It stays at 0 for x < 0.
     
  • It jumps to 1-p at x=0.
     
  • It jumps to 1 at x=1 and stays there.
     
Professor Greenline from BrightChamps

Bernoulli Trail

A Bernoulli trial is an experiment with only two possible outcomes: success or failure. It is named after the mathematician James Bernoulli.

Common Examples:
 

  • Flipping a coin (Heads or Tails).
     
  • Checking for rain (Yes or No).
     
  • Newborn gender (Boy or Girl).
     

The 3 Essential Rules:
 

  1. Two Options Only: The result must be binary (like 0 or 1); there are no third options.
     
  2. Independent: The result of one try does not change the next (e.g., a coin has no memory).
     
  3. Constant Odds: The probability of success ($p$) stays the exact same for every single trial.
Professor Greenline from BrightChamps

Tips and Tricks to Master Bernoulli Distribution

The Bernoulli distribution is the simplest probability model with only two outcomes, success or failure. Mastering it builds the foundation for understanding more complex probability distributions.

 

  • A Bernoulli distribution has only two outcomes, success (1) and failure (0), so understanding this basic idea is essential.
     
  • The key parameter p represents the probability of success and determines how likely each outcome is.
     
  • Remember that the mean is p and the variance is p(1 – p), as these formulas are commonly used in problems.
     
  • It is a special case of the binomial distribution where n = 1, which helps in connecting related concepts.
     
  • Practice with real-life examples like coin tosses or pass/fail situations to build a strong intuition.
     
  • To reduce anxiety, call it the “One-Shot Experiment” instead of using the fancy math name. It is just one action with one result.
     
  • Explain that a Bernoulli trial is analogous to a single Lego brick. If you stack many bricks together, you get a Binomial distribution, but we're only looking at a single brick right now.
     
  • Students frequently assume that the odds are 50/50. Show them “lopsided” examples, such as rolling a six on a die (which is difficult to win but has a Yes/No outcome).
     
  • Remind them that the die (or coin) has no memory. Even if you get “Heads” five times in a row, the next flip is a new start.
     
  • In math, “success” simply means that something happened; it does not imply “good”. Finding a broken toy in a factory line is a “success” if you're counting.
Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them in the Bernoulli Distribution

Students learning about the properties, concepts, and real-life applications of the Bernoulli distribution can apply it to benefit their academic pursuits as well as to tackle real-world scenarios. Sometimes, misunderstanding the concepts of the Bernoulli distribution can lead to wrong decisions and incorrect calculations. By understanding some common errors and their solutions will help students improve their problem-solving skills and analytical capabilities.
 

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Assuming the Bernoulli distribution has more than two outcomes

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Always remember that the Bernoulli distribution has only two possible outcomes. The outcomes are either success (1) or failure (0).

For e.g., when a game of tennis is played by a person, the only two possible outcomes for that person is either they win or lose. 
 

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Thinking that the value of p is greater than 1
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

We should always keep in mind that the value of p cannot exceed 1 as the value lies between 0 and 1.
 

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Confusing the Bernoulli distribution meant for multiple trials

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students should remember that the Bernoulli distribution is for a single trial. But the Binomial distribution is used for events that have multiple trials. For e.g., tossing a coin 5 times.  
 

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Misinterpreting (1 − p)  

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Success (p) and failure (1 − p) are the only two possible outcomes of the Bernoulli distribution. Students should remember that 1 − p represents the probability of failure, not another outcome. If the probability of success is 0.6 and the probability of failure is 0.4 (1 - p = 1 − 0.6). 

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Misapplying the Bernoulli distribution to continuous data

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

It is important to remember that the Bernoulli distribution is only for discrete outcomes.

 

For example, we can use it to know whether the result is head or tail (yes/no) when a coin is flipped. We cannot use this distribution for continuous outcomes. For example, the height of a person, the score of an exam, and so on. 
 

arrow-left
arrow-right
Professor Greenline from BrightChamps

Real-life Applications of the Bernoulli Distribution

The concept of Bernoulli distribution can be applied to predict the outcome of events. Probability plays a major role even in our day-to-day lives. Here are some examples where it is used.

 

  • In logistics, the Bernoulli distribution helps predict whether an event occurs or not. For example, it can be used when a delivery company or its clients want to know whether their package can arrive on time or not.

 

  • It is used extensively in the field of medicine, especially during the launch of a new vaccine or drug. For instance, it helps check the probability of success of a newly-launched vaccine. 

 

  • The Bernoulli distribution can be applied to predict the weather. For e.g., to check the probability of rain.

 

  • The concept of Bernoulli distribution also plays a crucial role in fields of machine learning and AI.

 

  • In A/B testing, Bernoulli distribution helps determine whether a new feature leads to user success (conversion) or not.
Max from BrightChamps Saying "Hey"
Hey!

Solved Examples of Bernoulli Distribution

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

A factory produces light bulbs, and 3% of them are defective. If a bulb is picked randomly, what is the probability that it is defective or non-defective?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

3% chance of picking a defective and a 97% chance of picking a non-defective bulb.
 

Explanation

Here, the formula is:


\(P (X = x) = px (1 − p)1 − x\)


(X = 1) = If the bulb is defective


(X = 0) = If the bulb is non-defective


Probability of success \((p) = 3\%\) or \(0.03 (3 / 100 = 0.03)\)


The defective bulbs \((X = 1)\):


\(P (X = 1) = (0.03)1 × (1 − 0.03)0\)


\(P (X = 1) = 0.03 × 1 = 0.03\)

 

For non-defective bulbs \((X = 0)\):


\(P (X = 0) = (0.03)0 × (1 − 0.03)1\)


Since (0.03)0 = 1


\(P (X = 0) = 1 × 0.97 = 0.97\)


Hence, the probability of picking a defective bulb is 0.03, and the probability of picking a non-defective bulb is 0.97.

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 2

A student attends school 80% of the time on any given day. What is the probability that the student attends or misses school on a randomly selected day?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

80% chance of attending school and 20% chance of missing school

Explanation

Here, 


Success \((X = 1)\): The student attends school


Failure \((X = 0)\): The student misses school


Probability of success: 80% or 0.8


Now let us apply the formula:


\(P (X = x) = px (1 − p)1 − x\)


\(​ P (X = 1) = (0.8)1 × (1 − 0.8) ​\)


\(P (X = 1) = 0.8 × 1 = 0.8\)

 

For missing school (X = 0):


\(​ P (X = 0) = (0.8) × (1 − 0.8) = 0.2 ​\)


The student has an 80% (0.8) chance of attending school and a 20% (0.2) chance of missing school.

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 3

A washing machine has a 70% chance of working when switched on. What is the probability that it fails?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

0.3 (30%)
 

Explanation

The probability of success \((p) = 0.7 (70\%)\)


Probability of failure \((1 − p) = 0.3\)


To find the probability of failure: 


\(1 × 0.3 = 0.3\)


Therefore, the probability of failure is 0.3 (30%). 

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 4

A student has a 50% chance of passing an exam. What is the probability that they fail?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

50%

Explanation

Success = passing the exam


Probability of success \((p) = 0.5\) 


Probability of failure \((1 − p) = 0.5\)


To find the probability of failure (X = 0):


\(​ P (X = 0) = (0.5)^0 × (0.5)^1 ​\)


\(P (X = 0) = 1 × 0.5 = 0.5\)


So, the probability of failing the exam is 0.5 or 50%. 

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 5

A weather forecast says there is a 60% chance of rain today. What is the probability it won’t rain?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

40% of probability.
 

Explanation

The probability of rain \((p) = 0.6\)


The probability of no rain \((1 − p) = 0.4\)


The formula for the probability of no rain is:


\(​ P (X = 0) = (0.6)^0 × (0.4)^1 ​\)


\(P (X = 0) = 1 × 0.4 = 0.4\)


Hence, the probability of no rain is 40% or 0.4. 

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Ray Thinking Deeply About Math Problems

FAQs on the Bernoulli Distribution

1.What do you mean by the Bernoulli distribution?

The Bernoulli distribution represents a random variable with only two possible outcomes, success and failure. 
 

Math FAQ Answers Dropdown Arrow

2.Explain the formula for the Bernoulli distribution.

\(​ P (X = x) = px (1 − p)^1 − x ​\) is the formula for the Bernoulli distribution. 


Here, 


P (X = x) = The chance of getting the possible outcome, like success or failure.


X = The outcome 


Where x = 1 means success and x = 0 means failure


p = Probability of success 


1 − p = Probability of failure.

Math FAQ Answers Dropdown Arrow

3.What is the meaning of the expected value in the Bernoulli distribution?

The mean explains the average outcome over many trials. It is equal to the probability of success. The formula for calculating the mean or the expected value is:

 

E (X) = p 
 

Math FAQ Answers Dropdown Arrow

4.Note any two characteristics of the Bernoulli distribution.

The nature of the outcome is one of its most important characteristics. The nature is binary, and the outcomes are either 1 or 0. Success is represented as 1, while failure is denoted as 0. The second important characteristic is that the sum of the probability values will always be equal to or less than 1.
 

Math FAQ Answers Dropdown Arrow

5.Differentiate Bernoulli and binomial distribution.

The Bernoulli distribution represents a random variable with only two possible outcomes. Binomial distribution indicates the possibility of a different set of outcomes. The binomial distribution is used for repeated trials. 
 

Math FAQ Answers Dropdown Arrow
Math Teacher Background Image
Math Teacher Image

Jaipreet Kour Wazir

About the Author

Jaipreet Kour Wazir is a data wizard with over 5 years of expertise in simplifying complex data concepts. From crunching numbers to crafting insightful visualizations, she turns raw data into compelling stories. Her journey from analytics to education ref

Max, the Girl Character from BrightChamps

Fun Fact

: She compares datasets to puzzle games—the more you play with them, the clearer the picture becomes!

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
UAE - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom