Table of Contents:
- What is a binomial distribution
- How to do binomial distribution
- When to use binomial distribution
- Binomial distribution examples and solutions
- Example 1
- Example 2
- Example 3
- Example 4
What is a binomial distribution
A binomial probability distribution is that which can have only two possible outcomes: either a success or a failure. This type of probability distribution is discrete and shows the possible results to occur in a series of finite experiments where the answers are yes or no (did the expected outcome happened? Or did it not?), also referred as success or failure, true or false, and the values of one (for the occurrence to happen) or zero (for the occurence not happening).
Although the binomial distribution definition may sound a bit complicated in comparison with the distributions that we have studied before, it is actually quite simple since the possible outcomes are enclosed in two possible options.
How to do binomial distribution
The general probability formula of a binomial distribution (which can be sometimes simply referred as the binomial distribution formula), is defined as follows:
Where:
= number of trials
= number of successes in trials
= probability of success in each trial
= number of success outcome
= probability of getting successes out of trials
When to use binomial distribution
When studying a discrete random variable and it has a binomial distribution we are looking for the number of successes in a certain amount of trials. In order to be sure that our statistical experiment is based on such a discrete distribution, there are a few conditions it must meet:
- The experiment has a fixed number of trials.And so, the value of is defined.
- Each trial has only two possible outcomes, the result is either a success or a failure.
- The probability of success for each individual trial is equal.
This last condition is the result of what we call running the trials with replacement, meaning that all of the possible outcomes of the first attempt, are kept for the second, third and nth attempt. No matter how many trials are run, every single one has the same amount and equal possible outcomes, meaning that its probability of success remains the same throughout all of the trials.
In the example problem one on the next section, you will use these three conditions in order to know if each case describes a binomial distribution, or not; therefore, it is important you understand them and remember them since similar conditions will be used in other discrete probability distribution types.
Binomial distribution examples and solutions
Example 1
Identify which of the following experiments below are binomial distributions? For this, remember what a binomial distribution must contain:- The experiment has a fixed number of trials. And so, the value of is defined.
- Each trial has only two possible outcomes, the result is either a success or a failure.
- The probability of success for each individual trial is equal.
- The number of successes you want to obtain in those trials
- The purpose is always focused on the question of if I do a particular number of experiment trials, what is the probability to obtain this certain amount of successes?
Where the first three points are the conditions established in our last section. Therefore, with this in mind, identify the binomial distributions!
1. A fair die is rolled 4 times. What is the probability of the one coming up 2 times?
This experiment describes a binomial distribution because you can have two outcomes, either is a one, or is not a one coming from the die, providing the bases for what is a success and what is a failure in this case. Then, it asks you about the probability of obtaining two successes in two out of the four total trials. Therefore, this experiment has all the characteristics of a binomial distribution.
2. A fair coin is flipped until head comes up 7 times. What is the probability that the coin will be flipped 10 times?
The question of this experiment is focussed on finding how many times you will need to flip a coin in order to obtain 7 successes. Therefore, there is a lack of determined trials to obtain the results we want and so, this experiment is not a binomial distribution. Notice though, that most of the elements of the binomial distribution are there, except for a kind of reversed question, this is because this is an example of a negative binomial distribution, we will talk about these in a later lesson.
3. 1,000,000 nails are produced in a factory a day. If each nail has a probability of 0.5% of being defective (something being wrong with that nail), then what is the probability that less than 50 nails will be defective in a day?
In here we have 1,000,000 trials, with a specific probability of those trials to be either a success or a failure and then the final question asks about the probability to obtain a certain amount of successes. Therefore, this seems to contain all of the characteristics of a binomial distribution example.
4. Roughly 7.5% of Canadians have some form of heart disease. If 100 Canadians are sampled what is the probability that 10 of them will have heart disease?
Definitely a binomial distribution experiment since it asks if I do a particular number of experiment trials, what is the probability to obtain this certain amount of successes?
5. If 5 cards are drawn from a deck, what is the probability that 2 of them will be hearts?
This is a non-binomial distribution experiment because each time a card is drawn, the probability of a success changes.
6. If a fair die is rolled 8 times, what is the probability of getting 2 fours and 3 sixes?
This is a non-binomial experiment since there are more possible outcomes than two well defined as either success or failure. In other words, this experiment is trying to focus in two different types of successes instead of either success or failure.
Example 2
A die is rolled 3 times, what is the probability that a four is rolled exactly 2 times? On this case we have that: , and . Therefore, using the binomial probability distribution formula from equation 1 we compute:And so, the probability of rolling a four exactly twice during 3 attempts is 0.06944.
Example 3
A coin is flipped 20 times, what is the probability that the coin comes up heads 15 times?On this case we have that: , and . Therefore, we compute:
And so, the probability of obtaining heads 15 times during the experiment where a coin is flipped for 20 times is approximately P(15) = 0.148.
Example 4
Thomas is packing for a trip and wants to bring some stuffed animals along for comfort. He owns 8 stuffed animals, and will pack each stuffed animal independently of all the others with a probability of 30%. Determine the probability that he takes;- 0 stuffed animals along with him.
For this scenario we have that: , and = 0.3 or 30%.
- 1 stuffed animal with him
For this scenario we have that: , and p = \fra{3}{10} = 0.3 or 30%.
- at most two animals along with him
For this scenario we have that: , and 0.3 or 30%.
On this case we have to add the probabilities of Thomas packing 0, 1 and 2 stuffed animals.
We already have the first two numbers, therefore we calculate the probability of him taking two stuffed animals with him:
And now we add all of the probabilities mentioned to obtain our final result:
- at most 5 animals along with him
For this scenario we have that: , and 0.3 or 30%.
On this case we have to add the probabilities of Thomas packing 0, 1 and 2, 3, 4 and 5 stuffed animals.
We already have the first three numbers, therefore we calculate the probability of him taking 3, 4 and 5 stuffed animals with him:
And now we add all of the probabilities mentioned to obtain our final result:
- at least 6 animals along with him
For this scenario we have that: , and = 0.3 or 30%.
If we think about it, the probability of Thomas taking at least 6 animals with him must be the addition of the probability of him taking 6, 7 and 8 animals:
We could do all that extensive calculation, OR, we could notice that this should be the same as the difference between the 100% probability of Thomas taking from zero to all of his stuffed animals, and the probability we just calculated of him taking 5 stuffed animals at the most. And so, we follow through with this second approach, since the probability that Thomas brings with him from 0 to 8 stuffed animals, is the 100% which is equivalent to a value of 1, we have that:
The topic of the binomial distribution is extensive, so, on our next lessons you will continue to see subtopics of this same discrete probability distribution. For example, our next lesson will expand the topic to include the definitions for the mean and the standard deviation of binomial distribution along with some examples, where you will see that the calculation of the mean of a binomial distribution is so simple, yet it has a deep meaning tied to expectation; later, we will have a complete lesson dedicated to a negative binomial distribution example.
Thus, all is left to say is: get ready and see you in the next one!
: number of trials
: number of success in n trials
: probability of success in each trial
: probability of getting successes (out of trials)
binomialpdf
binomialcdf