Description Usage Arguments Details References Examples
Density, distribution function, quantile function and random generation for the Laplace distribution.
1 2 3 4 5 6 7 |
x, q |
vector of quantiles. |
mu, sigma |
location and scale parameters. Scale must be positive. |
log, log.p |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are P[X ≤ x] otherwise, P[X > x]. |
p |
vector of probabilities. |
n |
number of observations. If |
Probability density function
f(x) = 1/(2*σ) * exp(-|(x-μ)/σ|)
Cumulative distribution function
F(x) = [if x < mu:] 1/2 * exp((x-μ)/σ) [else:] 1 - 1/2 * exp((x-μ)/σ)
Quantile function
F^-1(p) = [if p < 0.5:] μ + σ * log(2*p) [else:] μ - σ * log(2*(1-p))
Krishnamoorthy, K. (2006). Handbook of Statistical Distributions with Applications. Chapman & Hall/CRC
Forbes, C., Evans, M. Hastings, N., & Peacock, B. (2011). Statistical Distributions. John Wiley & Sons.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.