Distributions Flashcards
1
Q
rnorm(n, mean=0, sd=1)
A
Gaussian (normal)
2
Q
rexp(n, rate=1)
A
exponential
3
Q
rgamma(n, shape, scale=1)
A
gamma
4
Q
rpois(n, lambda)
A
Poisson
5
Q
rweibull(n, shape, scale=1)
A
Weibull
6
Q
rcauchy(n, location=0, scale=1)
A
Cauchy
7
Q
rbeta(n, shape1, shape2)
A
beta
8
Q
rt(n, df)
A
‘Student’ (t)
9
Q
rf(n, df1, df2)
A
Fisher–Snedecor (F ) (χ2 )
10
Q
rchisq(n, df)
A
Pearson
11
Q
rbinom(n, size, prob)
A
binomial
12
Q
rgeom(n, prob)
A
geometric
13
Q
rhyper(nn, m, n, k)
A
hypergeometric
14
Q
rlogis(n, location=0, scale=1)
A
logistic
15
Q
rlnorm(n, meanlog=0, sdlog=1)
A
lognormal