Binomial distribution

Everything You Need in One Place

Homework problems? Exam preparation? Trying to grasp a concept or just brushing up the basics? Our extensive help & practice library have got you covered.

Learn and Practice With Ease

Our proven video lessons ease you through problems quickly, and you get tonnes of friendly practice on questions that trip students up on tests and finals.

Instant and Unlimited Help

Our personalized learning platform enables you to instantly find the exact walkthrough to your specific type of question. Activate unlimited help now!

Get the most by viewing this topic in your current grade. Pick your course now.

?
Intros
Lessons
  1. Binomial
  2. Binomial Formula
  3. Binomialpdf Calculator
?
Examples
Lessons
  1. Identify which of the following experiments below are binomial distributions?

    i. A fair die is rolled 4 times. What is the probability of the one coming up 2 times?

    ii. A fair coin is flipped until head comes up 7 times. What is the probability that the coin will be flipped 10 times?

    iii. 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?

    iv. 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?

    v. If 5 cards are drawn from a deck, what is the probability that 2 of them will be hearts?

    vi. If a fair die is rolled 8 times, what is the probability of getting 2 fours and 3 sixes?
    1. An urn contains 6 red balls and 4 green balls. A total of 5 balls are drawn; list all the different combinations of red balls that can be drawn in each of the following cases:

      i. A total of 3 green balls are drawn

      ii. At most 3 red balls are drawn

      iii. At least 2 red balls are drawn

      iv. Less than 4 red balls are drawn

      v. More than 3 green balls are drawn
      1. A die is rolled 3 times, what is the probability that a four is rolled exactly 2 times?
        1. A coin is flipped 20 times, what is the probability that the coin comes up heads 15 times?
          1. Jimmy the Joker is an unfair gambler. He weights a die so it rolls a "6" with 75% chance. He then bets that if he rolls his die 4 times he will roll six exactly 3 times. What is his probability of winning this bet?
            1. 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 animals independently of all the others with a probability of 30%. Determine the probability that he takes;
              1. 0 stuffed animals along with him.
              2. 1 stuffed animal with him
              3. at most two animals along with him.
              4. at most 5 animals along with him.
              5. at least 6 animals along with him.
            Topic Notes
            ?
            Table of Contents:

            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:

            P(x)=  nCxPx(1p)nx=P(x) = \; _{n}C_{x}P^{x} (1-p)^{n-x} = \, n!x!(nx)!\large \frac{n!}{x!(n-x)! } px(1p)nx p^{x} (1-p)^{n-x }
            Equation 1: General probability formula for a binomial distribution

            Where:
            nn = number of trials
            xx = number of successes in nn trials
            pp = probability of success in each trial
            nCx=_{n}C_{x} = n!x!(nx)!\large \frac{n!}{x!(n-x)!} = number of success outcome
            P(x)P(x) = probability of getting xx successes out of nn trials

            When to use binomial distribution


            When studying a discrete random variable xx 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:
            1. The experiment has a fixed number of trials.And so, the value of nn is defined.
            2. Each trial has only two possible outcomes, the result is either a success or a failure.
            3. 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 nn 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. \quadA 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. \quadA 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. \quad1,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. \quadRoughly 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. \quadIf 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. \quadIf 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: n=3,x=2n=3, x=2, and p=16p= \frac{1}{6}. Therefore, using the binomial probability distribution formula from equation 1 we compute:

            P(x)=nCxPx(1p)nx=P(x) = \, _{n}C_{x}P^{x} (1-p)^{n-x} = n!x!(nx)!\large \frac{n!}{x!(n-x)! } px(1p)nx p^{x} (1-p)^{n-x } \enspace 3C2P2(116)32= \enspace _{3}C_{2}P^{2} (1- \frac{1}{6})^{3-2} = 3!2!(32)!\large \frac{3!}{2!(3-2)!} 162(116)32\frac{1}{6}^{2} (1-\frac{1}{6})^{3-2}


            P(2)=P(2)= 3×2×1(2×1)(1!)\large \frac{3 \, \times 2 \, \times \, 1}{(2 \, \times \, 1) (1!)} (16)(16)(56)=3(16)(16)(56)= (\frac{1}{6}) (\frac{1}{6}) (\frac{5}{6}) = 3 (\frac{1}{6}) (\frac{1}{6}) (\frac{5}{6}) = 15216=\large \frac{15}{216} = 0.06944
            Equation 2: Probability that a 4 is rolled two times

            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: n=20,x=15n=20, x=15, and p=12p= \frac{1}{2}. Therefore, we compute:

            P(x)=  nCxPx(1p)nx=P(x) = \; _{n}C_{x}P^{x} (1-p)^{n-x} = n!x!(nx)!\large \frac{n!}{x!(n-x)! } px(1p)nx p^{x} (1-p)^{n-x} \enspace 20C15P15(112)2015= \enspace _{20}C_{15}P^{15} (1- \frac{1}{2})^{20-15} = 20!15!(2015)!\large \frac{20!}{15!(20-15)!} 1215(112)2015\frac{1}{2}^{15} (1-\frac{1}{2})^{20-15}


            P(15)=P(15)= 2,432,902,008,176,640,000(1,307,674,368,000)(120)(132,768)(12)5=\large \frac{2,432,902,008,176,640,000}{(1,307,674,368,000)(120)} (\frac{1}{32,768})(\frac{1}{2})^{5} = 15,504 (132,768)(132)\large (\frac{1}{32,768}) (\frac{1}{32}) 0.01478
            Equation 3: Probability of obtaining heads 15 times when flipping a coin 20 times

            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: n=8,x=0n=8, x=0 , and p=310p = \frac{3}{10} = 0.3 or 30%.

            P(x)= P(x) = n!x!(nx)!\large \frac{n!} {x!(n-x)!} px(1p)nxp^{x} (1-p)^{n-x} \enspace P(0)= \enspace P(0) = 8!0!(80)!\large \frac{8!} {0!(8-0)!} (310)0(1310)80 (\frac{3}{10})^{0} (1- \frac{3}{10})^{8-0}


            P(0)=(1)(1)(78)8=P(0) = (1)(1)(\frac{7}{8})^{8} = 5,764,801100,000,000=\large \frac{5,764,801}{100,000,000} = 0.057648
            Equation 4: Probability of Thomas packing 0 stuffed animals

            • 1 stuffed animal with him

            For this scenario we have that: n=8,x=1n=8, x=1, and p = \fra{3}{10} = 0.3 or 30%.

            P(x)= P(x) = n!x!(nx)!\large \frac{n!} {x!(n-x)!} px(1p)nxp^{x} (1-p)^{n-x} \, P(1)= \, P(1) = 8!1!(81)!\large \frac{8!} {1!(8-1)!} (310)1(1310)81 (\frac{3}{10})^{1} (1- \frac{3}{10})^{8-1}


            P(1)=(8)(310)(710)7=P(1) = (8)(\frac{3}{10})(\frac{7}{10})^{7} = 19,765,032100,000,000=\large \frac{19,765,032}{100,000,000} = 0.19765
            Equation 5: Probability of Thomas packing 1 stuffed animal

            • at most two animals along with him

            For this scenario we have that: n=8,x2n = 8, x \leq 2, and p=310=p = \frac{3}{10} = 0.3 or 30%.
            On this case we have to add the probabilities of Thomas packing 0, 1 and 2 stuffed animals.

            P(x2)=P(0)+P(1)+P(2)P(x \leq 2 ) = P(0) + P(1) + P(2)
            Equation 6: Probability of Thomas packing at most 2 stuffed animals

            We already have the first two numbers, therefore we calculate the probability of him taking two stuffed animals with him:

            P(x)= P(x) = n!x!(nx)!\large \frac{n!} {x!(n-x)!} px(1p)nxp^{x} (1-p)^{n-x} \enspace P(2)= \enspace P(2) = 8!2!(82)!\large \frac{8!} {2!(8-2)!} (310)2(1310)82 (\frac{3}{10})^{2} (1- \frac{3}{10})^{8-2}


            P(2)=(28)(9100)(710)6=P(2) = (28)(\frac{9}{100})(\frac{7}{10})^{6} = 29,674,548100,000,000=\large \frac{29,674,548}{100,000,000} = 0.29647
            Equation 7: Probability of Thomas packing 2 stuffed animals

            And now we add all of the probabilities mentioned to obtain our final result:

            P(x2)=P(0)+P(1)+P(2)P(x \leq 2 ) = P(0) + P(1) + P(2) = 0.057648 + 0.19765 + 0.29647 = 0.55177
            Equation 8: Probability of Thomas packing at most 2 stuffed animals

            • at most 5 animals along with him

            For this scenario we have that: n=8,x5n = 8, x \leq 5, and p=310= \, p = \frac{3}{10} = 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.

            P(x5)=P(0)+P(1)+P(2)+P(3)+P(4)+P(5)P(x \leq 5 ) = P(0) + P(1) + P(2) + P(3) + P(4) + P(5)
            Equation 9: Probability of Thomas packing at most 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:

            P(3)=P(3) = 8!3!(83)!\large \frac{8!}{3!(8-3)!} (310)3(1310)83=(56)(271000)(710)5=25,412,184100,000,000=0.25412 (\frac{3}{10})^{3} (1-\frac{3}{10})^{8-3} = (56)(\frac{27}{1000}) (\frac{7}{10})^{5} = \frac{25,412,184}{100,000,000} = 0.25412

            P(4)=P(4) = 8!4!(84)!\large \frac{8!}{4!(8-4)!} (310)4(1310)84=(70)(8110,000)(710)4=13,613,670100,000,000=0.13614 (\frac{3}{10})^{4} (1-\frac{3}{10})^{8-4} = (70)(\frac{81}{10,000}) (\frac{7}{10})^{4} = \frac{13,613,670}{100,000,000} = 0.13614

            P(5)=P(5) = 8!5!(85)!\large \frac{8!}{5!(8-5)!} (310)5(1310)85=(56)(243100,000)(710)3=4,667,544100,000,000=0.04667 (\frac{3}{10})^{5} (1-\frac{3}{10})^{8-5} = (56)(\frac{243}{100,000}) (\frac{7}{10})^{3} = \frac{4,667,544}{100,000,000} = 0.04667
            Equation 10: Calculating the probability of Thomas taking 3, 4 and 5 stuffed animals with him

            And now we add all of the probabilities mentioned to obtain our final result:

            P(x5)=P(0)+P(1)+P(2)+P(3)+P(4)+P(5)P(x \leq 5 ) = P(0) + P(1) + P(2) + P(3) + P(4) + P(5)

            P(x5)P(x \leq 5 ) = 0.55177 + 0.25412 + 0.13614 + 0.04667 = 0.98870
            Equation 11: Probability of Thomas packing at most 5 stuffed animals

            • at least 6 animals along with him

            For this scenario we have that: n=8,x6n=8, x \geq 6, and p=310 \, p = \frac{3}{10} = 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:

            P(x6)=P(6)+P(7)+P(8)=1P(x5)P(x \geq 6 ) = P(6) + P(7) + P(8) = 1 - P(x \leq 5)
            Equation 12: Probability of Thomas packing at least 6 stuffed 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:

            P(x6)=1P(x5)=P(x \geq 6 ) = 1 - P(x \leq 5) = = 1 - 0.9887 = 0.0113
            Equation 13: Probability of Thomas packing at least 6 stuffed animals

            ***
            Now that we have worked on a few binomial distribution examples, let us finalize this lesson by providing a few recommendations: On this lesson for the binomial distribution you will find the well defined concept for this distribution, and different ways to solve problems related to it; for example, it gives a glimpse at how to use a binomial distribution table and a binomial distribution graph when computing our values of interest. Then, this page showing a comparison of distribution functions introduces the concept of the mean of a binomial distribution, which we will learn later; and finally, this lesson on the binomial distribution uses another form of notation for the binomial distribution equation.

            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!
            P(x)=nCx  Px(1p)nxP(x)={_n}C_x \;P^x(1-p)^{n-x}

            nn: number of trials
            xx: number of success in n trials
            pp: probability of success in each trial
            P(x)P(x): probability of getting xx successes (out of nn trials)


            \cdot binomialpdf (n,p,x)(n,p,x)
            \cdot binomialcdf (n,p,x)(n,p,x)