Previous: Cauchy Random Variable, Up: Functions and Variables for continuous distributions [Contents][Index]
Returns the value at x of the density function of a
load("distrib")
.
The pdf is
Returns the value at x of the distribution function of a
load("distrib")
.
The cdf is
Returns the q-quantile of a
cdf_gumbel
. Argument q must be an element of load("distrib")
.
Returns the mean of a
The mean is
(%i1) load ("distrib")$
(%i2) mean_gumbel(a,b); (%o2) %gamma b + a
where symbol %gamma
stands for the Euler-Mascheroni constant. See also %gamma
.
Returns the variance of a
load("distrib")
.
The variance is
Returns the standard deviation of a
load("distrib")
.
The standard deviation is
Returns the skewness coefficient of a
The skewness coefficient is
(%i1) load ("distrib")$
(%i2) skewness_gumbel(a,b); 3/2 2 6 zeta(3) (%o2) -------------- 3 %pi
where zeta
stands for the Riemann’s zeta function.
Returns the kurtosis coefficient of a
load("distrib")
.
The kurtosis coefficient is
Returns a
random_gumbel
with a third argument n, a random sample of size n will be simulated.
The implemented algorithm is based on the general inverse method.
To make use of this function, write first load("distrib")
.