Binomial Distribution

Bernoulli (Binomial) Trials

A Bernoulli trial is a random experiment of an independent trial with exactly two possible (yes/no) outcomes:
- "Success", where P(success)=p
- "Failure", where P(failure)=1−p
Examples
- Hit/Miss
- Pass/Fail
- Approve/Decline
Bernoulli formula
P(X=x)=px(1−p)1−x
where x=0,1
Bernoulli Mean =p
Proof: E(X)=0(1−p)+1(p)=p
Bernoulli Variance =pq
Proof:
Var(X)=(0)2(1−p)+(1)2(p)−(p)2
=p−p2
=p(1−p)
=pq
Bernoulli Standard Deviation =pq
Proof: SD(X)=Var(X)=pq

Binomial Experiment

A binomial experiment has the following properties:
- There's a fixed number of trials. The number of trials is usually denoted by n.
- Each trial is independent and repeated with the same conditions (i.e. probability doesn't change from trial to trial).
- Each trial is a Bernoulli trial (a.k.a. Binomial trial), which means that it has exactly two possible outcomes
- "Success" → P(success)=p
- "Failure" → P(failure)=q where p+q=1 or q=1−p
Examples
Determine if the following are binomial experiments:
1. Flipping a coin 10 times and seeing if a "Heads" or "Tails" appears → ________
There are 10 trials (flips): n=10
Each flip is independent of one another.
Let "success" = flipping Heads, then P(success)=p=1/2.
Let "failure" = flipping Tails, then P(failure)=q=1/2
2. Rolling a dice 12 times and seeing if the number is larger than 2 or less than or equal to 2 → ________
There are 12 trials (flips): n=12
Each roll is independent of one another.
Let "success" = rolling a number larger than 2, then P(success)=p=4/6.
Let "failure" = rolling a number less than or equal to 2, then P(failure)=q=2/6
3. Drawing a card 7 times from a standard 52-card deck without replacement and seeing if it's a "King" → ________
Each draw is NOT independent - as you draw cards from the deck, the total number of cards changes and the probability of drawing a "King" changes. *Note: this would be a binomial experiment if the cards are drawn with replacement.

Binomial Distribution
Let X be a random variable that represents the number of successes in a binomial experiment where
- there are n total trials
- the probability of success is p
- the probability of failure is q=1−p
Then X follows a binomial distribution (or binomial model), and we denote this by X∼Binomial(n, p) or X∼B(n, p).
The probability of obtaining exactly x successes is given by this formula:
OR
Probability Distribution Function (Table)
You can complete the probability distribution table using the formula for the number of successes of a binomial experiment:
Example
When Ben throws a stick to his old dog, Percy, he catches it 10% of the time.
(a) What is the probability of Percy catching a stick in one trial?
P(X=1)=(0.1)1(0.9)1−1=0.1=p → probability of success
(b) What is the probability of Percy not catching a stick in one trial?
P(X=0)=(0.1)0(0.9)1−0=0.9=q → probability of failure
(c) Let X=0 for the value of failure (not catching the stick) and X=1 for the value of success (catching the stick).

Determine the probability distribution to find the mean, variance, and standard deviation of one trial (i.e. Bernoulli Trial).
Mean:
Also known as "expected value":
E(X)=μ=∑xi⋅P(xi)
=0(0.9)+1(0.1)=0.1=p
Variance:
Var(X)=[∑xi2⋅P(xi)]−μ2
=02(0.9)+12(0.1)−(0.1)2=0+0.1−0.01=0.09=pq
Standard deviation:
SD(X)=Var(X)=0.09=0.3=pq
If you multiply the above mean and variance of one trial by n, you get the following:
- Binomial mean of n trials =np
- Binomial variance n trials =npq
- Binomial standard deviation of n trials npq
Mean, Variance, and Standard Deviation (Binomial Distribution)
If a random variable X follows a binomial distribution, we have very short formulas for the mean, variance, and standard deviation of the random variable.
- Mean: E(X)=μ=np
- Variance: Var(X)=σ2=npq=np(1−p)
- Standard deviation: SD(X)=σ=npq=np(1−p)

Example: Binomial Probability
A fair dice is rolled 5 times. Find the probability that we get
a) exactly 3 even numbers
There are 5 trial: n=5.
Let "success" = the outcome of rolling an even number → P(success)=21.
Let "failure" = the outcome of rolling an odd number → P(failure)=21.
Using our formula:
P(X=3)=(35)(21)3(21)5−2=(10)(81)(41)=165
Therefore, the probability of getting exactly 3 even numbers is 165
b) more than 3 even numbers
"More than 3 even numbers" means getting "4 or 5 even numbers".
P(X≥4)
=P(X=4)+P(X=5)
=(45)(21)4(21)5−4+(55)(21)5(21)5−5
=(5)(161)(21)+(1)(321)(1)
=325+321
=326 or 163
Therefore, the probability of getting more than 3 even numbers is 163.
c) at least 1 even number
"At least 1 even number" means getting "1, 2, 3, 4, or 5 even numbers". Using the complement, this means "the opposite of getting zero even numbers"
P(X≥1)=1−P(X=0)=1−(05)(21)0(21)5−0
=1−(1)(1)(321)=1−321=3231
Therefore, the probability of getting at least 1 even number is 3231.

Example: Binomial Distribution
You are given a scratch-and-win ticket with 12 boxes to scratch. Each box will either say “Win $100” or “SORRY”. The probability of winning is 1/100 for each box. Let X be the random variable representing the number of boxes that say "Win". Find the mean and standard deviation of this random variable.
Check if X follows a binomial distribution:
- The number of trials is n=12
- Each box is independent of one another with constant probability
- P(win)=1/100=0.01 and P(lose)=99/100=0.99
So, this is a binomial experiment and X∼B(12, 0.01).
Binomial meanBinomial varianceBinomial standard deviation=E(X)=μ=12(0.01)=0.12=Var(X)=σ2=npq=12(0.01)(0.99)=0.1188=SD(X)=σ=npq=0.1188=0.3435
Therefore, the mean is 0.12 and the standard deviation is approximately 0.3435.
Leo can shoot a bull’s eye 60% of the time. He has 10 bullets.
a) What’s the probability that he will shoot a bull’s eye exactly 8 of the 10 times?
b) What’s the probability that he will shoot a bull’s eye at most 8 times?
Practice: Binomial Distribution
A member of the parliament knows that the probability that any one of her bills will be made into a law is 0.4 . During a sitting of parliament, she submits 200 different bills. Compute the mean and standard deviation for the random variable, X , which represents the number of bills that will be made into laws.