Next: Cauchy Random Variable, Previous: Rayleigh Random Variable, Up: Functions and Variables for continuous distributions [Contents][Index]
The Laplace distribution is a continuous probability distribution that is sometimes called the double exponential distribution because it can be thought of as two exponential distributions spliced back to back.
Returns the value at x of the density function of a
\({\it Laplace}(a,b)\)
random variable, with \(b>0\). To make use of this function, write first load("distrib").
Here, \(a\) is the location parameter (or mean), and \(b\) is the scale parameter, related to the variance.
The pdf is
Returns the value at x of the distribution function of a
\({\it Laplace}(a,b)\)
random variable, with \(b>0\). To make use of this function, write first load("distrib").
The cdf is
Returns the q-quantile of a
\({\it Laplace}(a,b)\)
random variable, with \(b>0\); in other words, this is the inverse of cdf_laplace. Argument q must be an element of \([0,1]\). To make use of this function, write first load("distrib").
Returns the mean of a
\({\it Laplace}(a,b)\)
random variable, with \(b>0\). To make use of this function, write first load("distrib").
The mean is
Returns the variance of a
\({\it Laplace}(a,b)\)
random variable, with \(b>0\). To make use of this function, write first load("distrib").
The variance is
Returns the standard deviation of a
\({\it Laplace}(a,b)\)
random variable, with \(b>0\). To make use of this function, write first load("distrib").
The standard deviation is
Returns the skewness coefficient of a
\({\it Laplace}(a,b)\)
random variable, with \(b>0\). To make use of this function, write first load("distrib").
The skewness coefficient is
Returns the kurtosis coefficient of a
\({\it Laplace}(a,b)\)
random variable, with \(b>0\). To make use of this function, write first load("distrib").
The kurtosis coefficient is
Returns a
\({\it Laplace}(a,b)\)
random variate, with \(b>0\). Calling random_laplace 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").
Next: Cauchy Random Variable, Previous: Rayleigh Random Variable, Up: Functions and Variables for continuous distributions [Contents][Index]