Next: , Previous: , Up: Functions and Variables for continuous distributions   [Contents][Index]

52.2.14 Weibull Random Variable

Function: pdf_weibull (x,a,b)

Returns the value at x of the density function of a Weibull(a,b) random variable, with a,b>0. To make use of this function, write first load("distrib").

The pdf is

f(x;a,b)={1b(xb)a1e(x/b)afor x00for x<0

Categories: Package distrib ·
Function: cdf_weibull (x,a,b)

Returns the value at x of the distribution function of a Weibull(a,b) random variable, with a,b>0. To make use of this function, write first load("distrib").

The cdf is

F(x;a,b)={1e(x/b)afor x00for x<0

Categories: Package distrib ·
Function: quantile_weibull (q,a,b)

Returns the q-quantile of a Weibull(a,b) random variable, with a,b>0; in other words, this is the inverse of cdf_weibull. Argument q must be an element of [0,1]. To make use of this function, write first load("distrib").

Categories: Package distrib ·
Function: mean_weibull (a,b)

Returns the mean of a Weibull(a,b) random variable, with a,b>0. To make use of this function, write first load("distrib").

The mean is

E[X]=bΓ(1+1a)

Categories: Package distrib ·
Function: var_weibull (a,b)

Returns the variance of a Weibull(a,b) random variable, with a,b>0. To make use of this function, write first load("distrib").

The variance is

V[X]=b2[Γ(1+2a)Γ(1+1a)2]

Categories: Package distrib ·
Function: std_weibull (a,b)

Returns the standard deviation of a Weibull(a,b) random variable, with a,b>0. To make use of this function, write first load("distrib").

The variance is

D[X]=bΓ(1+2a)Γ(1+1a)2

Categories: Package distrib ·
Function: skewness_weibull (a,b)

Returns the skewness coefficient of a Weibull(a,b) random variable, with a,b>0. To make use of this function, write first load("distrib").

The skewness coefficient is

SK[X]=Γ(1+3a)3Γ(1+1a)Γ(1+2a)+2Γ(1+1a)3[Γ(1+2a)Γ(1+1a)2]3/2

Categories: Package distrib ·
Function: kurtosis_weibull (a,b)

Returns the kurtosis coefficient of a Weibull(a,b) random variable, with a,b>0. To make use of this function, write first load("distrib").

The kurtosis coefficient is

KU[X]=Γ44Γ1Γ3+6Γ12Γ23Γ14[Γ2Γ12]23

where Γk=Γ(1+k/a) .

Categories: Package distrib ·
Function: random_weibull (a,b)
    random_weibull (a,b,n)

Returns a Weibull(a,b) random variate, with a,b>0. Calling random_weibull 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").

Categories: Package distrib · Random numbers ·

Next: , Previous: , Up: Functions and Variables for continuous distributions   [Contents][Index]

JavaScript license information