Let's do some R.... Suppose you have the following situation: You have a large jar of beans, 43% black, 57% white. You take a sample of 14 beans.
a) Use R to figure out the probability for every single possible outcome. In other words, you need to calculate: Pr{0 black beans in 14 trials} Pr{1 black bean in 14 trials} . . etc. . Pr{14 black beans in 14 trials}
b) Once you have this information, you need to plot a barplot that shows you what this distribution looks like. As you might guess, you'll need to use the binomial (in R) to solve this problem. Make sure you present all your results (you should have a list of probabilities and the barplot).