ggeom | R Documentation |
Graph the probabilities of the first success on the rth trial where the elementary events are sampled from a stationary bernoulli process.
ggeom(k, p)
k |
The number of trials to display on the X axis. |
p |
Probability of a success |
The graph plots probabilities of 0:k failures before the first success.
This function is a modification of code from the Rcmdr package.
Bruce Dudek bruce.dudek@albany.edu
ggeom(2,.5)
ggeom(10,.5)
ggeom(10,.2)
ggeom(15,.7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.