Description Usage Arguments Details Author(s) See Also Examples
A simple function to understand the algorithm to simulate (psuedo-)observations from binomial distribution. It is an implementation of the algorithm given in Section 11.3.1 "Simulation from Discrete Distributions", and as such the function is not an alternative to the "rgeom" function.
1 | Geom_Sim(p, n)
|
p |
probability of success |
n |
number of pseudo-observations required |
To simulate a random number from geometric RV, we make use of the algorithm described in the book.
Prabhanjan N. Tattar
rgeom
1 |
[1] 80.9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.