Probability Mass Function: Binomial Distribution

$$\displaystyle f(k,n,p)=\Pr(k;n,p)=\Pr(X=k)={\binom {n}{k}}p^{k}(1-p)^{n-k}$$ for $k = 0, 1, 2, ..., n$.

In [ ]:
#determine distribution
#consider 10 free throw attempts with p = .5
In [ ]:
#plot probability
In [ ]:
#probability of 6 successes?
In [ ]:
#probability of at least 6 made?
In [ ]:
#with cumulative distribution function
In [ ]:
#Example 2: p = 0.8, n = 20
In [ ]:
#P(10)
In [ ]:

In [ ]:
#P(n > 14)