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
R has four dedicated commands for density, distribution function, quantile
function, and random generation for the binomial distribution with parameters
\[
G(\theta ) = \Pr \left[ G(\theta ) = k \right] = \theta \left( 1 - \theta \right)^{k-1} \qquad
\mbox{ for } \ k= 1,2,\ldots .
\]
size
and prob
:
- dbinom(x, size, prob, log = FALSE)
- pbinom(q, size, prob, lower.tail = TRUE, log.p = FALSE)
- qbinom(p, size, prob, lower.tail = TRUE, log.p = FALSE)
- rbinom(n, size, prob)