![]() |
VOOZH | about |
Bernoulli trials and the binomial distribution are used to model situations where outcomes can be categorised as success or failure.
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.
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.. Therefore, tossing a coin is a Bernoulli trial.
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,
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?
Solution:
Substituting the given values:
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.
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,
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):Derivation of the PMF:
The number of such sequences is:
Multiply the number of sequences by their probability:
Mean and Variance
Probability-Generating Function (PGF)
G_X(z) = \sum_{r=0}^n P(X = r) z^r = (1 - p + p z)^n
Normalization Check
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 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
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:
and
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,
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) = p1r1 Γ p2r2 Γ . . . Γ pk rk
Since the ways in which the events happen are mutually exclusive, the required probability is given by
Pn (r1 , r2 , . . . , rk ) =
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) =
β 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) =
β P (X = 2)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 =
(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) =Thus, No. of families having at least 1 boy = NΓP(X β₯ 1)
β Required No. of Families =
(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) =Thus, No. of families having at most 2 girls =
(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) =
β P (children of both sexes) =Thus, No. of families having children of both sexes =
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) = ; x = 0, 1, 2, . . ., 10
Therefore, probability of getting at least seven heads is given by:
P(X β₯ 7) = P(7) + P(8) + P(9) + P(10)
β P(X β₯ 7) =
β P(X β₯ 7) = 176/1024 = 11/64