Geometric
The geometric distribution is the probability distribution of the number Y = X − 1 of failures before the first success, supported on the set { 0, 1, 2, 3, ... }, where X is the number of Bernoulli trials needed to get one success.
Parameters
the probability of success
an optional label/name
Constructors
Properties
Functions
Computes the first order loss function for the function for given value of x, G1(x) = Emax(X-x,0)
Gets the parameters as an array parameters0 is probability of success
Sets the parameters using the supplied array parameters0 is probability of success
Promises to return a random variable that uses the supplied stream number using the supplied stream provider
Computes the 2nd order loss function for the distribution function for given value of x, G2(x) = (1/2)Emax(X-x,0)*max(X-x-1,0)