# Plot the binomial distribution

How to plot the binomial distribution for p = 0.3, p = 0.5 and p = 0.7 and the total number of trials n = 60 as a function of k the number of successful trials. For each value of p, determine 1st Quartile, median, mean, standard deviation and the 3rd Quartile. Present those values as a vertical box plot with the probability p on the horizontal axis.

• Welcome to the site, @RamKotes. This is just a reiteration of your homework problem. What have you done so far, & where are you stuck? – gung Feb 20 '13 at 0:34
• Do you mean 'how do I compute the probabilities to plot?' or do you mean 'how do I get some package to draw this plot?' or something else? – Glen_b Feb 20 '13 at 0:54

You could program the probability density function in Excel, for each $p$. The function is given on wikipedia: https://en.wikipedia.org/wiki/Binomial_distribution
For the quartiles, compute the points at which you get 25%, 50% and 75% of the area under the curve, again for each $p$. You can use the Excel function binom.inv. Then the boxplots are easy to find.