rlaplace | R Documentation |
Random generation for the Laplace (double exponential) data with location 0 and scale 1.
rlaplace(n)
n |
scalar. number of random draws. |
A Laplace or double expoential distribution has heavier tails than a normal distribution and so a sample will tend to have additional outliers.
A vector of length n is returned containing the random data.
John Kloke, Joseph McKean
Hogg, Robert V.; McKean, Joseph; and Craig, Allen T., "Introduction to Mathematical Statistics (6th Edition)" (2005).
x <- rlaplace(100)
qqnorm(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.