Geometric Distribution

A geometric distribution is the simplest waiting time distribution for Bernoulli trials, which we denoted by B(θ).

A random variable G has a geometric distribution and it is referred to as a geometric random variable if and only if its probability distribution is given by
\[ G(\theta ) = \Pr \left[ G(\theta ) = k \right] = \theta \left( 1 - \theta \right)^{k-1} \qquad \mbox{ for } \ k= 1,2,\ldots . \]
R has four dedicated commands for density, distribution function, quantile function, and random generation for the binomial distribution with parameters size and prob: