bino.gen | R Documentation |
Function that generates and displays m repeated samples of n Bernoulli trials with a given probability of success
bino.gen(samples = 10000, n = 20, pi = 0.5)
samples |
number of repeated samples to generate |
n |
number of Bernoulli trials |
pi |
probability of success for each Bernoulli trial |
|
Simulated binomial distribution |
|
Theoretical binomial distribution |
Alan T. Arnholt <arnholtat@appstate.edu>
bino.gen(samples=50000, n = 10, pi = 0.80)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.