Section 7.2 Binomial Distribution
Consider a sequence of n independent Bernoulli trials with the likelihood of a success p on each individual trial stays constant from trial to trial with \(0 \lt p \lt 1 \text{.}\) If we let the variable \(X\) measure the number of successes obtained when doing a fixed number of trials n with \(R = \{ 0, 1, ..., n \}\text{,}\) then the resulting distribution of probabilities is called a Binomial Distribution.
You can of course get specific values and graph the Binomial Distribution using R as well...
Proof
Since successive trials are independent, then the probability of X successes occurring within n trials is given by
Theorem 7.2.2 Verification of Binomial Distribution Formula
Proof
Using the Binomial Theorem with a = p and b = 1-p yields
Utilize the interactive cell below to compute f(x) and F(x) for the Binomial distribution
Theorem 7.2.3 Binomial Distribution Statistics
For the Binomial Distribution
Proof
For the mean,
Using the change of variables \(k=x-1\) and \(m = n-1\) yields a binomial series
For the variance,
Using the change of variables \(k=x-2\) and \(m = n-2\) yields a binomial series
The skewness and kurtosis can be found similarly using formulas involving E[X(X-1)(X-2)] and E[X(X-1)(X-2)(X-3)]. The complete determination is performed using Sage below.
The following uses Sage to determine the general formulas for the Binomial distribution.
Flipping Coins
Suppose you flip a coin exactly 20 times. Determine the probability of getting exactly 10 heads and then determine the probability of getting 10 or fewer heads.
SolutionThis is binomial with n = 20, p = 1/2 and you are looking for f(10). With these values
Notice, the mean for this distribution is also 10 so one might expect 10 heads in general. Next, to determine the probability for 10 or fewer heads requires F(10) = f(0) + f(1) + ... + f(10). There is no "nice" formula for F but this calculation can be performed using a graphing calculator, such as the TI-84 with F(x) = binomcdf(n,p,x). In this case, F(10) = binomcdf(20,1/2,10) = 0.588.