Next: Discrete Uniform Random Variable, Previous: Bernoulli Random Variable, Up: Functions and Variables for discrete distributions [Contents][Index]
The Geometric distibution is a discrete probability distribution. It is the distribution of the number Bernoulli trials that fail before the first success.
Consider flipping a biased coin where heads occurs with probablity
Returns the value at x of the probability function of a
The pdf is
This is interpreted as the probability of
load("distrib")
loads this function.
Returns the value at x of the distribution function of a
The cdf is
load("distrib")
loads this function.
Returns the q-quantile of a
cdf_geometric
.
Argument q must be an element of
The probability from which the quantile is derived is defined as
load("distrib")
loads this function.
Returns the mean of a
The mean is
The probability from which the mean is derived is defined as
load("distrib")
loads this function.
Returns the variance of a
The variance is
load("distrib")
loads this function.
Returns the standard deviation of a
load("distrib")
loads this function.
Returns the skewness coefficient of a
The skewness coefficient is
load("distrib")
loads this function.
Returns the kurtosis coefficient of a geometric random variable
The kurtosis coefficient is
load("distrib")
loads this function.
random_geometric(p)
returns one random sample from a
random_geometric(p, n)
returns a list of n random samples.
The algorithm is based on simulation of Bernoulli trials.
The probability from which the random sample is derived is defined as
load("distrib")
loads this function.