The number of failures in Bernoulli trials, between two wins, follows the geometric distributions. Using brgen,gegen is a function, taking a parameters and generates a geometric random variable.
related functions : rgeom
1 | gengen(p)
|
1 | gegen(0.27)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.