Statistical Reference

Probability
Distributions

Eight essential distributions with live interactive controls. Drag the sliders — the curves update instantly.

PDF · Density CDF · Cumulative Quantile · Inverse CDF Random Sampling
View

The R Naming System

Every distribution follows the same [prefix][distname] pattern. Learn the four prefixes once and you can use any of R's 30+ distributions instantly.

d
DENSITY
Value of the PDF/PMF at x. How dense or likely is this specific value?
p
PROBABILITY
Returns P(X ≤ q) — cumulative probability up to q. Used for p-values.
q
QUANTILE
Inverse CDF: given probability p, returns x such that P(X≤x)=p. Critical values.
r
RANDOM
Draws n random samples. Use set.seed() first for reproducibility.
R FunctionsDistributionKey ParametersPrimary Use
dnorm / pnorm / qnorm / rnormNormalmean, sdz-tests, CI, CLT
dlogis / plogis / qlogis / rlogisLogisticlocation, scaleLogistic regression, sigmoid
dexp / pexp / qexp / rexpExponentialrate λWait times, survival
dbinom / pbinom / qbinom / rbinomBinomialsize n, prob pSuccess counts, A/B testing
dpois / ppois / qpois / rpoisPoissonlambda λEvent counts per interval
dt / pt / qt / rtStudent's tdf νt-tests, small sample inference
dgamma / pgamma / qgamma / rgammaGammashape α, rate βWaiting k events, insurance
dbeta / pbeta / qbeta / rbetaBetashape1 α, shape2 βBayesian priors, proportions
dchisq / pchisq / qchisq / rchisqChi-squareddfGoodness-of-fit, variance
df / pf / qf / rfFdf1, df2ANOVA, comparing variances
dunif / punif / qunif / runifUniformmin, maxSimulation, random numbers

Beyond the Eight

The eight distributions above cover the majority of everyday modelling needs. But the toolbox is larger. Here are three you are likely to encounter next — each closely related to a distribution already covered.

R FunctionsDistributionRelationship to the EightWhen you need it
dnbinom / pnbinom / qnbinom / rnbinom Negative Binomial Extends Poisson by adding a second parameter to allow variance > mean (overdispersion). Reduces to Poisson as the dispersion parameter → ∞. Count data where variance far exceeds the mean — RNA-seq read counts, insurance claims, social media engagement.
dweibull / pweibull / qweibull / rweibull Weibull Generalises the Exponential by allowing the failure rate to increase or decrease over time. Exponential is the special case where shape = 1 (constant rate). Survival analysis and reliability engineering where risk is not constant — machine wear, time-to-failure, clinical trial endpoints.
dlnorm / plnorm / qlnorm / rlnorm Log-Normal If log(X) is Normal, then X is Log-Normal. Closely related to the Gamma for positive skewed data — both are flexible, but Log-Normal arises from multiplicative rather than additive processes. Income distributions, species abundance, particle sizes, reaction times — anything arising from many small multiplicative effects.