Distributions Flashcards Preview

R > Distributions > Flashcards

Flashcards in Distributions Deck (19)
Loading flashcards...
1

rnorm(n, mean=0, sd=1)

Gaussian (normal)

2

rexp(n, rate=1)

exponential

3

rgamma(n, shape, scale=1)

gamma

4

rpois(n, lambda)

Poisson

5

rweibull(n, shape, scale=1)

Weibull

6

rcauchy(n, location=0, scale=1)

Cauchy

7

rbeta(n, shape1, shape2)

beta

8

rt(n, df)

‘Student’ (t)

9

rf(n, df1, df2)

Fisher–Snedecor (F ) (χ2 )

10

rchisq(n, df)

Pearson

11

rbinom(n, size, prob)

binomial

12

rgeom(n, prob)

geometric

13

rhyper(nn, m, n, k)

hypergeometric

14

rlogis(n, location=0, scale=1)

logistic

15

rlnorm(n, meanlog=0, sdlog=1)

lognormal

16

rnbinom(n, size, prob)

negative binomial

17

runif(n, min=0, max=1)

uniform

18

rwilcox(nn, m, n)

Wilcoxon’s statistics

19

r p d q

All these functions can be used by replacing the letter r with d, p or q to get, respectively, the probability density (dfunc(x, ...)), the cumulative probability density (pfunc(x, ...)), and the value of quantile (qfunc(p, ...), with 0 < p < 1).