Demonstrate the BinomialTheorem for the gun problem.
The example is taken from:
Nahin, P. J., "Duelling Idiots and Other Probability Puzzlers,"
Princeton University Press.
------------------------------------------------------------------------
See also Plot2D, BinomialTheorem
------------------------------------------------------------------------
p = linspace(0,1);
pC = zeros(1,length(p));
for j = 1:length(p)
pC(j) = BinomialTheorem( 100, 50, p(j) );
end
Plot2D( p, pC, 'Hypothesis', 'Probability', 'Gun Problem')