ArticleslgStudy

science

Bernoulli distribution

Bernoulli distribution is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bernoulli distribution rather than just read about it. In short: In probability theory and statistics, the Bernoulli distribution, named after Swiss mathematician Jacob Bernoulli, is the discrete probability distribution of a random variable which takes the value 1 with probability p and the value 0 with probability q=1−p. Less formally, it can be thought of as a model for the set of possible outcomes of any single experiment that asks a yes–no question.

Bernoulli distribution — main illustration
Bernoulli distribution — illustration

Key takeaways

  • Bernoulli distribution belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bernoulli distribution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bernoulli distribution from memory before moving on to harder problems.

Reference excerpt

In probability theory and statistics, the Bernoulli distribution, named after Swiss mathematician Jacob Bernoulli, is the discrete probability distribution of a random variable which takes the value 1 with probability p and the value 0 with probability q=1−p. Less formally, it can be thought of as a model for the set of possible outcomes of any single experiment that asks a yes–no question. Such questions lead to outcomes that are Boolean-valued: a single bit whose value is success/yes/true/one with probability p and failure/no/false/zero with probability q. It can be used to represent a (possibly biased) coin toss where 1 and 0 would represent "heads" and "tails", respectively, and p would be the probability of the coin landing on heads (or vice versa where 1 would represent tails and p would be the probability of tails). In particular, unfair coins would have p≠1/2. The Bernoulli distribution is a special case of the binomial distribution where a single trial is conducted (so n would be 1 for such a binomial distribution).

Properties If X is a random variable with a Bernoulli distribution, then: Pr⁡(X=1)=p,Pr⁡(X=0)=q=1−p. The probability mass function f of this distribution, over possible outcomes k, is f(k;p)={pif k=1,q=1−pif k=0. This can also be expressed as f(k;p)=pk(1−p)1−kfor k∈{0,1} or as f(k;p)=pk+(1−p)(1−k)for k∈{0,1}. The Bernoulli distribution is a special case of the binomial distribution with n=1. The kurtosis goes to infinity for high and low values of p, but for p=1/2 the two-point distributions including the Bernoulli distribution have a lower excess kurtosis, namely −2, than any other probability distribution. The Bernoulli distributions for 0≤p≤1 form an exponential family. The maximum likelihood estimator of p based on a random sample is the sample mean.

Mean The expected value of a Bernoulli random variable X is E⁡[X]=p This is because for a Bernoulli distributed random variable X with Pr⁡(X=1)=p and Pr⁡(X=0)=q we find E⁡[X]=Pr⁡(X=1)⋅1+Pr⁡(X=0)⋅0=p⋅1+q⋅0=p.

Variance The variance of a Bernoulli distributed X is Var⁡[X]=pq=p(1−p) We first find E⁡[X2]=Pr⁡(X=1)⋅12+Pr⁡(X=0)⋅02=p⋅12+q⋅02=p=E⁡[X] From this follows Var⁡[X]=E⁡[X2]−E⁡[X]2=E⁡[X]−E⁡[X]2=p−p2=p(1−p)=pq With this result it is easy to prove that, for any Bernoulli distribution, its variance will have a value inside [0,1/4].

Skewness The skewness is q−ppq=1−2ppq. When we take the standardized Bernoulli distributed random variable X−E⁡[X]Var⁡[X] we find that this random variable attains qpq with probability p and attains −ppq with probability q. Thus we get γ1=E⁡[(X−E⁡[X]Var⁡[X])3]=p⋅(qpq)3+q⋅(−ppq)3=1pq3(pq3−qp3)=pqpq3(q2−p2)=(1−p)2−p2pq=1−2ppq=q−ppq.

Higher moments and cumulants The raw moments are all equal because 1k=1 and 0k=0. E⁡[Xk]=Pr⁡(X=1)⋅1k+Pr⁡(X=0)⋅0k=p⋅1+q⋅0=p=E⁡[X]. The central moment of order k is given by μk=(1−p)(−p)k+p(1−p)k. The first six central moments are μ1=0,μ2=p(1−p),μ3=p(1−p)(1−2p),μ4=p(1−p)(1−3p(1−p)),μ5=p(1−p)(1−2p)(1−2p(1−p)),μ6=p(1−p)(1−5p(1−p)(1−p(1−p))). The higher central moments can be expressed more compactly in terms of μ2 and μ3 μ4=μ2(1−3μ2),μ5=μ3(1−2μ2),μ6=μ2(1−5μ2(1−μ2)). The first six cumulants are κ1=p,κ2=μ2,κ3=μ3,κ4=μ2(1−6μ2),κ5=μ3(1−12μ2),κ6=μ2(1−30μ2(1−4μ2)).

Entropy and Fisher's Information

Entropy Entropy is a measure of uncertainty or randomness in a probability distribution. For a Bernoulli random variable X with success probability p and failure probability q=1−p, the entropy H(X) is defined as: H(X)=𝔼pln⁡1Pr⁡(X)=−Pr⁡(X=0)ln⁡Pr⁡(X=0)−Pr⁡(X=1)ln⁡Pr⁡(X=1)=−(qln⁡q+pln⁡p). The entropy is maximized when p=0.5, indicating the highest level of uncertainty when both outcomes are equally likely. The entropy is zero when p=0 or p=1, where one outcome is certain.

Fisher's Information Fisher information measures the amount of information that an observable random variable X carries about an unknown parameter p upon which the probability of X depends. For the Bernoulli distribution, the Fisher information with respect to the parameter p is given by: I(p)=1pq Proof:

The Likelihood Function for a Bernoulli random variableX is: L(p;X)=pX(1−p)1−X This represents the probability of observing X given the parameter p. The Log-Likelihood Function is: ln⁡L(p;X)=Xln⁡p+(1−X)ln⁡(1−p) The Score Function (the first derivative of the log-likelihood with respect to p is: ∂∂pln⁡L(p;X)=Xp−1−X1−p The second derivative of the log-likelihood function is: ∂2∂p2ln⁡L(p;X)=−Xp2−1−X(1−p)2 Fisher information is calculated as the negative expected value of the second derivative of the log-likelihood:I(p)=−E[∂2∂p2ln⁡L(p;X)]=−(−pp2−1−p(1−p)2)=1p(1−p)=1pq It is maximized when p=0.5, reflecting maximum uncertainty and thus maximum information about the parameter p.

Related distributions If X1,…,Xn are independent, identically distributed (i.i.d.) random variables, all Bernoulli trials with success probability p, then their sum is distributed according to a binomial distribution with parameters n and p: ∑k=1nXk∼B⁡(n,p) (binomial distribution). The Bernoulli distribution is simply B⁡(1,p), also written as Bernoulli(p). The categorical distribution is the generalization of the Bernoulli distribution for variables with any constant number of discrete values. The Beta distribution is the conjugate prior of the Bernoulli distribution. The geometric distribution models the number of independent and identical Bernoulli trials needed to get one success. If Y∼Bernoulli(12), then 2Y−1 has a Rademacher distribution. The Bernoulli distribution is a special case of the two-point distribution, for which the possible outcomes need not be 0 and 1.

See also Bernoulli process, a random process consisting of a sequence of independent Bernoulli trials Bernoulli sampling Binary entropy function Binary decision diagram

References

Author's mention Abhirath, dwivedi; Kotz, Samuel; Kemp, Adrienne W. (1993). Univariate Discrete Distributions (2nd ed.). Wiley. ISBN 0-471-54897-9. Peatman, John G. (1963). Introduction to Applied Statistics. New York: Harper & Row. pp. 162–171.

External links

"Binomial distribution", Encyclopedia of Mathematics, EMS Press, 2001 [1994]. Weisstein, Eric W. "Bernoulli Distribution". MathWorld. Interactive graphic: Univariate Distribution Relationships.

Illustrations

Bernoulli distribution illustration
Bernoulli distribution illustration
Bernoulli distribution: The probability mass distribution function of a Bernoulli experiment along with its corresponding cumulative distribution function
The probability mass distribution function of a Bernoulli experiment along with its corresponding cumulative distribution function

Worked examples

Example 1 — a first encounter with Bernoulli distribution

Start with the simplest possible case. Write down what Bernoulli distribution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bernoulli distribution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bernoulli distribution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bernoulli distribution

In research
Bernoulli distribution appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bernoulli distribution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bernoulli distribution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Conjugate prior distributions, Discrete distributions, Exponential family distributions, so understanding it makes those chapters shorter.
In everyday life
Look for Bernoulli distribution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bernoulli distribution” →

How to study Bernoulli distribution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bernoulli distribution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bernoulli distribution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bernoulli distribution in simple terms?

In probability theory and statistics, the Bernoulli distribution, named after Swiss mathematician Jacob Bernoulli, is the discrete probability distribution of a random variable which takes the value 1 with probability p and the value 0 with probability q=1−p. Less formally, it can be thought of as…

Why does Bernoulli distribution matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bernoulli distribution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bernoulli distribution.

Tags

  • Conjugate prior distributions
  • Discrete distributions
  • Exponential family distributions

Keep exploring