gegen: Geometric Generator

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/gegen.R

Description

the geometric distribution is a discrete probability distributions. The probability distribution of the number X of Bernoulli trials needed to get one success, supported on the set 1, 2, 3, <e2><80><a6>.

Usage

1
gegen(p)

Arguments

p

p as probability of Bernoulli trials conducted.

Details

Consider a sequence of trials, where each trial has only two possible outcomes (designated failure and success). The probability of success is assumed to be the same for each trial. In such a sequence of trials, the geometric distribution is useful to model the number of failures before the first success. The distribution gives the probability that there are zero failures before the first success, one failure before the first success, two failures before the first success, and so on.

Value

the returned value of this function is an integer number representing number of failures before the first success.

Note

-

Author(s)

A.Moayedi

References

www.wikipedia.org

See Also

gegen.R

Examples

1
gegen(0.1)

amoloudi/R-PKG-Distributions documentation built on May 23, 2019, 7:32 a.m.