STATPLOT: Binomial Histogram#
Introduction#
Previously, we have introduced the two main functions for working with Binomial Random Variables. We took a look at the BINOMPDF, the probability density function, and the BINOMCDF, the cumulative distribution function, for a Binomial Random Variable. In this section, we will use these functions again to create visualizations for different Binomial Random Variables.
Recall the Binomial Random Variable counts the number of successes in a fixed number of independent trials, where a success occurs with probability ``p`` and a failure occurs with probability 1-p
. Furthermore, the probability of a success is the same across all trials. The probability density function for a Binomial Random Variable is given by,
Note the domain of this function is given by,
In other words, the Binomial PDF is only defined for integer values of x
from 0
up to n
. For any values of x
outside of this range, the Binomial PDF is undefined.
Calculator#
Recall the Binomial PDF can be accessed on your calculator as follows,
Let us use this function to explore how the parameters of a Binomial Random Variable affect the shape of its distribution. The two parameters of a Binomial Random Variable are,
``n``: The number of trials.
``p``: The probability of success.
Activity#
Let us fix . To start, we will need to generate a list that represents the domain of the Binomial Random Variable. Go to the STAT editor and select the formula bar for . Use the SEQ editor to generate a list of numbers from 0 to 15,
Question #1
Just to verify you are following along: What is ?
Now that we have the domain of our Binomial Random Variable in , let’s look at its PDF for various values of p
. Let’s start with .
Go to the STAT editor and select the formula bar for and enter the following formula,
Execute the formula and will be populated by the values of the Binomial PDF corresponding to the inputted elements of the domain in :math:L_1.
Use and to generate a histogram of this Binomial Distribution. Ensure you have your view WINDOW set to the following dimenions and scale,
Xmin: 0 Xmax: 16 Xscl: 1 Ymin: 0 Ymax: 0.5
Question #2
What is the expected value fo the Distribution with and ?
What is the median of the Binomial Distribution with and ?
What is the standard deviation fo the Binomial Distribution with and ? Round to three decimal places.
Write a few sentences describing the Binomial Distribution with and .
Now, using the same technique, generate a new list in that represents the Binomial Distribution when .
Question #3
What is the expected value fo the Distribution with and ?
What is the median of the Binomial Distribution with and ?
What is the standard deviation of the Binomial Distribution with and ?
Again, using the same technique, generate a new lsit in in that represents the Binomial Distribution when .
Question #4
What is the expected value fo the Distribution with and ?
What is the median of the Binomial Distribution with and ?
What is the standard deviation of the Binomial Distribution with and ?
Question #5
Write a few sentences comparing and contrasting the three Binomial Distributions you have created. How does changing the probability of success affect the shape, center and variation of the Binomial Distribution?
Solutions#
TODO: jquery these into hidden elements
1: 120
2a: 7.5
2b: 7.5
2c: 1.936
3a: 3.75
3b: 4
3c: 1.677
4a: 11.25
4b: 11
4c: 1.677