Login
📚 Mostly Harmless Statistics
Chapters ▾
⇩ Download ▾

5.4 Binomial Distribution

The binomial distribution is a discrete probability distribution used to find the probability of success when there are two outcomes to each trial, and there are a set number of independent trials with the same probability of occurrence. To develop the process for calculating the probabilities in a binomial experiment, consider the following example.

First, the random variable in a binomial experiment is x = number of successes.

A binomial probability distribution results from a random experiment that meets all of the following requirements.

  1. The procedure has a fixed number of trials (or steps), which is denoted by n.
  2. The trials must be independent.
  3. Each trial must have exactly two categories that can be labeled “success” and “failure.”
  4. The probability of a “success,” denoted by p, remains the same in all trials. The probability of “failure” is often denoted by q, thus q = 1 – p.
  5. Random Variable, X, counts the number of “successes.”

If a random experiment satisfies all of the above, the distribution of the random variable X, where X counts the number of successes, is called a binomial distribution. A binomial distribution is described by the population proportion p and the sample size n. If a discrete random variable X has a binomial distribution with population proportion p and sample size n, we write X ~ B(n, p).

Be careful, a “success” is not always a “good” thing. Sometimes a success is something that is “bad,” like finding a defect or getting in a car crash. The success will be the event from the probability question.

The geometric and binomial distributions are easy to mix up. Keep in mind that the binomial distribution has a given sample size, whereas the geometric is sampling until you get a success.

Excel Formula for Binomial Distribution: For exactly P(X = x) use =binom.dist(x,n,p,false).

For P(X ≤ x) use =binom.dist(x,n,p,true).

TI-84: Press [2nd] [DISTR]. This will get you a menu of probability distributions. Press 0 or arrow down to 0:binompdf( and press [ENTER]. This puts binompdf( on the home screen. Enter the values for n, p and x with a comma between each. Press [ENTER]. This is the probability density function and will return you the probability of exactly x successes. If you leave off the x value and just enter n and p, you will get all the probabilities for each x from 0 to n. Press [ALPHA] A or arrow down to A:binomcdf( and press [ENTER]. This puts binomcdf( on the home screen. Enter the values for n, p and x with a comma between each. If you have the newer operating system on the TI84, the screen will prompt you for each value. Press [ENTER]. This is the cumulative distribution function and will return you the probability of at most (≤) x successes. If you have at least x success (≥), use the complement rule. If you have < or > adjust x to get ≤ or ≥.

TI-89: Go to the [Apps] Stat/List Editor, then select F5 [DISTR]. This will get you a menu of probability distributions. Arrow down to binomial Pdf and press [ENTER]. Enter the values for n, p and x into each cell. Press [ENTER]. This is the probability density function and will return you the probability of exactly x successes. If you leave off the x value and just enter n and p, you will get all the probabilities for each x from 0 to n. Arrow down to binomial Cdf and press [ENTER]. Enter the values for n, p and lower and upper value of x into each cell. Press [ENTER]. This is the cumulative distribution function and will return you the probability between the lower and upper x-values, inclusive.

As you read through a problem look for some of the following key phrases in Figure 5-6. Once you find the phrase then match up to what sign you would use and then use the table to walk you through the computer or calculator formula. The same idea about signs applies to all the discrete probabilities that follow.

Table matching probability phrases such as is at most, is at least, more than, and less than to binomial formulas: P(X = x) uses Excel =binom.dist(x,n,p,false) and TI binompdf(n,p,x); P(X ≤ x) uses =binom.dist(x,n,p,true) and binomcdf(n,p,x); P(X ≥ x) uses =1-binom.dist(x-1,n,p,true) and 1-binomcdf(n,p,x-1); P(X > x) uses =1-binom.dist(x,n,p,true) and 1-binomcdf(n,p,x); P(X < x) uses =binom.dist(x-1,n,p,true) and binomcdf(n,p,x-1).

Figure 5-6

So far, most of the examples for the binomial distribution were for exactly x successes. If we want to find the probability of accumulation of x values then we would use the cumulative distribution function (cdf) instead of the pdf. Phrases such as “at least,” “more than,” or “below” can drastically change the probability answers.

Mean, Variance & Standard Deviation of a Binomial Distribution

If you list all possible values of x in a Binomial distribution, you get the Binomial Probability Distribution (pdf). You can then find the mean, the variance, and the standard deviation using the general formulas μ = Σ(xi ∙ P(xi)) and σ2 = ∑(xi2 ∙P(xi)) – μ2. This, however, would take a lot of work if you had a large value for n. If you know the type of distribution, like binomial, then you can find the mean, variance and standard deviation using easier formulas. They are derived from the general formulas. For a Binomial distribution, μ, the expected number of successes, σ2, the variance, and σ, the standard deviation for the number of success are given by the formulas, where p is the probability of success and q = 1 – p.

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University), hosted on LibreTexts (stats.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.