Simulates from a given
binomial distribution.
'SIngle': confirms the given Binomial;
'Sum of 2': simulates the sum of 2 binomial variables;
'Product of 2': ditto, the product —
suggested alternative classes, 9;
'Product of 3': ditto, the product of 3 —
suggested alternative classes, 15.
The number of classes has to be chosen so as to
avoid many classes with 0 occurrences. Indeed, the product of
2 binomials in [0, 10] cannot give, for example, 19
(a prime number).
Draws graphs with the given histogram for 'single'
or the simulated functions.
|