Given a discrete random variable \(X\), that follows a binomial distribution, its binomial cumulative distribution function, allows us to calculate the probability that the number of successes be less than, or equal to, a given value. That is it allows us to calculate: \[P\begin{pmatrix} X \leq k \end{pmatrix}, \quad 0 \leq k \leq n\]
Given a discrete random variable \(X\) that follows a binomial distribution, the probability of \(r\) successes within \(n\) trials is given by: \[P\begin{pmatrix}X \leq k \end{pmatrix} = \sum_{r=0}^k P \begin{pmatrix} X = r \end{pmatrix}\] So that's: \[P\begin{pmatrix}X \leq k \end{pmatrix} = P \begin{pmatrix} X = 0 \end{pmatrix} + P \begin{pmatrix} X = 1 \end{pmatrix} + \dots + P \begin{pmatrix} X = k \end{pmatrix}\]
A biased coin has probability of flipping heads \(p=0.6\). The coin is flipped \(20\) times. What is the probability of flipping 4 heads or less ?
Define the discrete random variable \(X\) as "\(X\): the number of times we flip heads", it is clear that \(X\) follows a binomial distribution with \(20\) trials and a probability of success \(p=0.6\). Using the notation we saw in the previous section, we can therefore write \(X \sim B \begin{pmatrix}20,0.6 \end{pmatrix}\).
The probability of flipping 4 heads or less is therefore: \[P\begin{pmatrix} X \leq 4 \end{pmatrix}\] This is unlike what we saw in the previous section where we learnt how to calculate the probability that \(X\) take-on a specific value, \(P\begin{pmatrix}X = k\end{pmatrix}\). Instead we're now interested in learning how to calculate the probability that \(X\) be less than, or equal to, a specific value \(P\begin{pmatrix}X \leq k \end{pmatrix}\).
To calculate such probabilities we use the Cumulative Distribution Function, CDF defined next.
Most graphical calculators have the binomial cumulative distribution function, binomial CDF, preprogrammed.
Here's how to reach the Binomial CDF function on 3 well-known calculators:
Input
Output
Input
Output
Input
Output
Notice that:
In this tutorial we consider a continuous random variable that follows a normal distribution with mean \(\mu = 88\) and standard deviation \(\sigma = 19\).
A bag contains \(10\) marbles, \(6\) of which are blue and \(4\) are red. An experiment consists of picking a marble (at random) from the bag, making a note of its color and putting it back in the bag. This experiment is repeated \(5\) times.
What is the probability of picking \(3\) blue marbles or less?
We define the discrete random variable \(X\) as the "number of blue marbles picked". Since each trial is independent from the previous (the marble is replaced each time) we can say that \(X\) follows a binomial distribution, with parameters \(n=5\) and \(p=0.6\) (the probability of picking a blue marble). Or using the notation we learnt in the previous section we can write \(X\sim B \begin{pmatrix}5,0.6 \end{pmatrix}\).
Now, using the binomial cumulative probability distribution function with \(5\) trials, \(n = 5\), probability of a success \(p = 0.6\), for \(3\) successes, \(r = 3\), we find: \[\begin{aligned} P\begin{pmatrix} X \leq 3 \end{pmatrix} & = \sum_{r=0}^k P \begin{pmatrix} X = r \end{pmatrix} \\ & \text{that's:} \\ P\begin{pmatrix} X \leq 3 \end{pmatrix} &= P\begin{pmatrix} X = 0 \end{pmatrix} + P\begin{pmatrix} X = 1 \end{pmatrix} + P\begin{pmatrix} X = 2 \end{pmatrix} + P\begin{pmatrix} X = 3 \end{pmatrix} \end{aligned}\] To calculate each of the probabilities, \(P\begin{pmatrix}X = 0 \end{pmatrix}\), \(P\begin{pmatrix}X = 1 \end{pmatrix}\), ... we could use the binomial probability distribution function we learned in the previous section, which would mean calculating: \[P\begin{pmatrix} X \leq 3 \end{pmatrix} = \begin{pmatrix}5 \\ 0 \end{pmatrix}(0.6)^0\times (0.4)^5 + \begin{pmatrix}5 \\ 1 \end{pmatrix}(0.6)^1\times (0.4)^4 + \begin{pmatrix}5 \\ 2 \end{pmatrix}(0.6)^2\times (0.4)^3 + \begin{pmatrix}5 \\ 3 \end{pmatrix}(0.6)^3\times 0.4^2\] and would lead to: \[P \begin{pmatrix} X \leq 3 \end{pmatrix} = 0.66304\] But this would be a lot of work! Instead we use our calculator and the built-in binomial cdf function. This allows to simply write: \[\begin{aligned} p\begin{pmatrix}X\leq 3\end{pmatrix} & = \text{binomCdf}\begin{pmatrix}5,0.5,3\end{pmatrix} \\ & = 0.66304 \end{aligned}\]
Alongside having to calculate probabilities of the type \(p\begin{pmatrix}X\leq k \end{pmatrix}\), we'll often have to calculate the probability that \(X\) lie between 2 values, or that it be greater than a given value. For such probabilities we'll need the following important results.
For example, if \(X\sim B\begin{pmatrix}8,0.) with the TI Nspire CX, to find \(p\begin{pmatrix}X\geq 3\end{pmatrix}\) and \(p\begin{pmatrix} 2 \leq X \leq 4\end{pmatrix}\)
A biased coin is such that the probability of flipping heads is \(p=0.7\). The coin is flipped \(20\) times. What is the probability of getting:
We start by defining the discrete random variable \(X\) as "the number of heads obtained in \(20\) trials". Since each flip is independent from the previous it is clear that \(X\) follows a binomial distribution with parameters \(n = 20\) and \(p=0.7\) (the probability of a "success", flipping heads, for each trial). So we can write \(X\sim B\begin{pmatrix}20,0.7\end{pmatrix}\).
A discrete random variable \(X\) follows a binomial distribution such that \(X\sim B\begin{pmatrix}10,0.2\end{pmatrix}\). Find each of the following probabilities:
Scan this QR-Code with your phone/tablet and view this page on your preferred device.
Subscribe Now and view all of our playlists & tutorials.