2.1 Probability distributions:

R has a lot of univariate distributions both discrete and continuous.

I use very frequently *unif, *norm for continuous and *binon, *pois for discrete. For continuous distributions * can be:

  • d : probability density function (PDF)

  • p : cumulative distribution function (CDF)

  • q : quantile function (1/CDF)

  • r : generate random number (deviates?)

For discretes distributions:

  • p and r are the sam as above

  • d give you the probability mass function (PMF)

  • q is also the quantile function but defined as a generalised 1/CDF

You can find packages that implement other commons functions if needed.