Bernoulli trials and the binomial distribution are used to model situations where outcomes can be categorised as success or failure.
- Bernoulli's Trials are experiments in probability where only two possible outcomes are possible: Success or Failure, True or False, Yes or No. Due to the fact of two possible outcomes, it is also called the Binomial Trial.
- Binomial Distribution describes the probability of achieving a specific number of successes in a fixed number of independent Bernoulli trials.
In other words, the binomial distribution results from repeating Bernoulli trials multiple times and counting how many successes occur.
The image illustrates the Binomial Distribution probability mass function (PMF) for 10 Bernoulli trials.

- Assumes a success probability of approximately 0.5.
- Displays probabilities for getting 0 to 10 successes.
- The peak occurs around 5 successes, indicating the most likely outcome.
- The distribution is symmetric, typical of fair coin tosses.
Bernoulli's Trials
Bernoulliās trials refer to repeated, independent experiments where each trial has the same probability of a specific outcome, called event A. Each trial results in only two possible outcomes: event A occurs (success) or it does not (failure).
A random experiment is called a Bernoulli trial if it follows the given condition:
- The experiment should have only two possible outcomes: success or failure (true or false).
- The probability of success remains constant in each trial.
- The trials are independent of each other.
Example: Tossing a coin 2 or n number of times. In this case, each trial is independent, there are only two possible outcomes (head or tail), and the probability of success remains constant, i.e.
Other Examples of Bernoulli's Trials:
- Rolling a die for a specific number: Getting the desired number is success; any other result is failure.
- Checking for a specific email: The event āemail arrivedā is either true (success) or false (failure) each time you check.
- Flipping a light switch: Success if the light turns on; failure if it doesnāt.
Bernoulli's Trials Theorem
The following theorem gives the probability of success r number of times in n number of trials, and its statement is as follows:
Statement: If the probability of occurrence of an event (probability of success) in a single trial of Bernoulli's experiment is p, then the probability that the event occurs exactly r times out ofĀ n independent trials is equal to nCr pr qn - r , where q = 1 - p, the probability of failure of the event.
To summarize the above theorem,Ā
Probability of r success in n Trials = nCr prqn - r
where,Ā
- p is the Probability of Success,
- q = 1 - p is the Probability of Failure,
- n is the Number of Independent trials, andĀ
- r is the number of times an event occurred.
Proof:
Getting exactlyĀ r successes means getting r successes and (n - r) failures simultaneously.
ā“ P(getting r successes andĀ n - r failures) = qn - r pr (since the n trials are independent) [By Multiplication Theorem]
The trials, from which the successes are obtained, are not specified. There are Ā nCr ways of Ā choosing r trials for successes. Once the r trials are chosen for successes, the remainingĀ (n - r) trials should result in failures. TheseĀ nCr Ā ways are mutually exclusive. In each of theseĀ nCrĀ ways, P(getting exactly r successes) = qn - r pr
Therefore, by the addition theorem, the required probability = nCr qn - r pr
Example: A coin is tossed 4 times. What is the probability of getting exactly 2 heads?
- Here, n = 4, r = 2, p = 0.5
Solution:
P(X = r) = \binom{n}{r} p^r q^{n-r}
Substituting the given values:P(X = 2) = \binom{4}{2} (0.5)^2 (0.5)^{4-2} = \binom{4}{2} (0.5)^2 (0.5)^2 = 6 \times (0.25) \times (0.25) = 6 \times 0.0625= 0.375
Binomial Distribution Definition
Binomial Distribution is a probability distribution that describes the number of successes in a fixed number of independent binomial trials i.e., each trial can only result in either a success or a failure.Ā
Examples of Binomial Distribution
- Email Marketing: Suppose a company sends out 1000 emails and the probability for a recipient to open that email is 0.2. Then the number of people who open the emails can be modelled by a binomial distribution with n = 1000 and p = 0.2
- Coin Tossing: Suppose you toss a fair coin 10 times and you want to know the probability of getting exactly 5 heads. This is situation follows a binomial distribution with n = 10 (number of trials) and p = 0.5 (probability of success).
- Survey Responses: Suppose you survey 1000 people and ask them whether they support a certain candidate. If the probability of someone supporting the candidate is 0.6, you can model the number of people who support the candidate using a binomial distribution with n = 1000 and p = 0.6.
Formula for Probability in Binomial Distribution
Ā LetĀ A be some event associated with a random experimentĀ E, such thatĀ P(A) = p andĀ P(A') = q = 1 - p.
Assuming thatĀ p remains the same for all repetitions, if we consider n independent repetitions ( or trials ) ofĀ E and if the random variableĀ (RV) X denotes the number of times the eventĀ A has occurred thenĀ X is called a binomial random variable with parametersĀ n andĀ p or we can say thatĀ X follows a binomial distribution with parametersĀ n andĀ p, or symbolicallyĀ BThesly, the possible values thatĀ X can take, areĀ 0, 1, 2,...., n. Then the probability mass function of a binomial random variable is given by
P(X = r) = nCr prqn - r
where,
- P(X = r) is the probability of getting exactly r successes,
- n is the number of total trials,
- r is the number of successes in n Trials,
- p is the probability of success,
- q is the probability of failure, andĀ
- p + q = 1 and r = 0, 1, 2, ..., n
Proof for Binomial Distribution
The binomial distribution counts successes inĀ nĀ independent Bernoulli trials.
Sequence Probability: For any specific sequence withĀ xĀ successes andĀ nāxĀ failures:
Probability Mass Function (PMF):P(X = r) = \binom{n}{r} p^r (1 - p)^{n - r} Derivation of the PMF:
P(\text{Sequence}) = p^r (1 - p)^{n - r} The number of such sequences is:
\binom{n}{r} = \frac{n!}{r!(n - r)!} Multiply the number of sequences by their probability:
P(X = r) = \binom{n}{r} p^r (1 - p)^{n - r} Mean and Variance
X = \sum_{i=1}^n X_i \implies E[X] = \sum_{i=1}^n E[X_i] = n p
\text{Var}(X) = \sum_{i=1}^n \text{Var}(X_i) = n p(1 - p) Probability-Generating Function (PGF)
G_X(z) = \sum_{r=0}^n P(X = r) z^r = (1 - p + p z)^n
G_X(z) = \sum_{r=0}^n \binom{n}{r} (p z)^r (1 - p)^{n - r} = (1 - p + p z)^n Normalization Check
\sum_{r=0}^n P(X = r) = \sum_{r=0}^n \binom{n}{r} p^r (1 - p)^{n - r} = (p + (1 - p))^n = 1
Example: Calculate the probability of getting exactly five heads when a coin is tossed 10 times.
Solution:
As we know, P(X = r) = nCr Ć pr Ć (1-p)n-r
Number of success(r)=5
Total number of trials(n)=10
Probability of success i.e getting head(p)=0.5
n = 10, r = 5, and p = 0.5
Plugging in the values, you get:
P(X = 5) = 10C5 Ć (0.5)5 Ć (1-0.5)10 - 5
ā P(X = 5) = 252 Ć 0.03125 Ć 0.03125
ā P(X = 5) = 0.24609375 ā 0.246
So the probability of getting exactly five heads when flipping a fair coin ten times is about 0.246, or 24.6%.
Mean and Variance of Binomial Distribution
Mean or Expected value of a binomial distribution is given by the following formula:
Mean = μ = np
and variance or measure of a binomial distribution is given by the following formula:
Variance = Ļ2 = np(1-p)
where, the Ā
- n is Total Number of Trials
- p is Probability of Success
Points to Remember
There are some important things related to the binomial distribution to which we need to pay more attention. Some of those things are as follows:
- Binomial distribution is a legitimate probability distribution since
- Mean of the Binomial Distribution is given by:Ā
and
- Variance of the Binomial Distribution is given by:Ā
Generalization of Bernoulli's Distribution: Multinomial Distribution
If A1, A2, . . , Ak are exhaustive and mutually exclusive events associated with a random experiment such that, P(Ai occurs) = pi where,Ā
p1 + ...2 . . + pk = 1, and if the experiment is repeated n times, then the probability A1 occurs r1 times, A2 occurs r2 times, . . . . , Ak occurs rk times is given by:
Pn(r1, r2, . . . , rk) =Ā
where,
- r1ā + r2 ā+ ...+ rk ā= nĀ Ā Ā Ā
Proof:
r1 trials in which the event A1 occurs can be chosen from the n trialsĀ nCr ways. The remaining (n - r1) trials are left over for the other events.Ā
r2 trials in which the event A2 occurs can be chosen from theĀ (n - r1) trials inĀ (n - r1)Cr2 Ā ways.
r3 trials in which the event A3 occurs can be chosen from theĀ (n - r1 - r2) trials inĀ (n - r1 - r2)Cr3 ways, and so on.
Therefore, the number of ways in which the events A1ā, A2ā, ..., Ak can happen:
nāCr1ā āĆ (n ā r1ā)Cr2 āāĆ (n ār1 āā r2ā)Cr3āā Ć (nār1ā ā r1ā - ...ā rk āā 1)Crkāā =Ā n!/(r1!r2! . . . r3!)
Consider any one of the above ways in which the eventsĀ A1, A2, . . ., Ak occurs
Since, n trials are independent,Ā r1 + r2 + . . . +rk trials are also independent.
ā“ P(A1 occurs r1 times, A2 occurs r2 times, . . . , Ak occurs rk times) = p1 r1 Ć p2r2 Ć . . . Ć pk rkĀ
Since the ways in which the events happen are mutually exclusive, the required probability is given by
Pn (r1 , r2 , . . . , rk ) =
Ā \frac{n!}{r_{1}! r_{2}! . . . r_{k}!}\times \ p_{1} ^{r_{1}}\times p_{2}^{r_{2}}\times... \times p_{k}^{r_{k}}
Related Articles:
Solved Question on Bernoulli Trials and Binomial Distribution
Question 1: A coin is tossed an infinite number of times. If the probability of a head in a single toss is p, show that the probability that the kth head is obtained at the nth tossing, but not earlier isĀ (nā1)Ckā1āpkqnāk, where q = 1 - p.
Solution:
K heads should be obtained at the nth tossing, but not earlier.
Therefore,Ā (k - 1) heads must be obtained in the first (n - 1) tosses and 1 head must be obtained at the nth toss.Required Probability = P[(k - 1) heads inĀ (n - 1) tosses]Ā Ć P(1 head in 1 toss)] Ā
=Ā (nā1)Ckā1āpk-1qnāk x pĀ
Question 2: If at least 1 child in a family with 2 children, is a boy then what is the probability that both children are boys?
Solution:
p = Probability that a child is a boy = 1/2.
ā“ q = 1 - p = 1/2 and n = 2
ā P (at least one boy) = p (exactly 1 boy) + p (exactly 2 boys)Ā
ā P (at least one boy) =Ā2C_{1}\frac{1}{2}^2 + 2C_{2}\frac{1}{2}^2Ā Ā Ā Ā
ā P (at least one boy) =Ā 3/4ā“ Required probability = P (both are boys)/P (at least 1 boy)
ā Required probability =Ā (1/4)/(3/4) = 1/3
Question 3: Out of 800 families with 4 children each, how many families would be expected to haveĀ
(i) 2 boys and 2 girls,
(ii) at least 1 boy,
(iii) at most 2 girls,
(iv) children of both sexes.
(Assume equal probabilities for boys and girls.)
Solution:
Considering each child as a trial, n = 4. Assuming that birth of a boy is a success, p = 1/2, and q = 1/2. Let X denote the number of successes(boys).
(i) P (2 boys and 2 girls) = P (X = 2)
ā P (X = 2)Ā =Ā4C_{2} \times (\frac{1}{2})^2 \times (\frac{1}{2})^{4-2}Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā
ā P (X = 2)Ā=6 \times(\frac{1}{2})^4=\frac{3}{8}Ā Ā Ā Ā Ā Ā Ā Ā Thus, No. of families having 2 boys and 2 girls = NĆP(X = 2) Ā
[Where, N is the total no. of families considered]
ā Required No. of Families =Ā
800 \times \frac{3}{8}=300Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā (ii) P (at least 1 boy) = P (X ā„ 1)
ā P (X ā„ 1) = P (X = 1) + P ( X = 2) + P (X = 3) + P (X = 4)
ā P (X ā„ 1) = 1 - P (X = 0)
ā P (X ā„ 1) =Ā1-4C_{0} \times(\frac{1}{2})^0\times(\frac{1}{2})^4=1-\frac{1}{16}=\frac{15}{16}Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā ĀThus, No. of families having at least 1 boy = NĆP(X ā„ 1)
ā Required No. of Families =Ā
800 \times \frac{15}{16}=750Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā(iii) P (at most 2 girls) = P (exactly 0 girl, 1 girl or 2 girls)
ā P (at most 2 girls) = P (X = 4, X = 3 or X = 2)
ā P (at most 2 girls) =Ā1-(4C_{0} \times (\frac{1}{2})^4+4C_{1} \times(\frac{1}{2})^4)=\frac{11}{16} Thus, No. of families having at most 2 girls =Ā
800 \times \frac{11}{16}=550 (iv) P(children of both sexes)
ā P (children of both sexes) = 1 - P (children of same sex)
ā P (children of both sexes) = 1 - {P (all are boys) + P (all are girls)}
ā P (children of both sexes) = 1 - {P (X = 4) + P (X = 0)}
ā P (children of both sexes) =Ā1-(4C_{4} \times(\frac{1}{2})^4 + 4C_{0}\times(\frac{1}{2})^4)
ā P (children of both sexes) =Ā1-\frac{1}{8} = \frac{7}{8} Thus, No. of families having children of both sexes =Ā
800\times\frac{7}{8} = 700
Question 4: Ten coins are thrown simultaneously. Find the probability of getting at least seven heads?
Solution:Ā
Given:
- p = Probability of getting a head = 1/2
- q = Probability of not getting a head = 1 - p = 1/2
Probability of getting x heads in a random throw of 10 coins is:Ā
p(x) =Ā
10C_{x}\times\frac{1}{2}^x\times\frac{1}{2}^{10-x}=10C_{x}\times\frac{1}{2}^{10} ; x = 0, 1, 2, . . ., 10Therefore, probability of getting at least seven heads is given by:
P(X ā„ 7) = P(7) + P(8) + P(9) + P(10)
ā P(X ā„ 7) =Ā\frac{1}{2}^{10}( 10C_{7} + 10C_{8} + 10C_{9} + 10C_{10})
ā P(X ā„ 7) = 176/1024 = 11/64