# Continuous Distributions

The functions described here are among the most commonly used continuous univariate statistical distributions. You can compute their densities, means, variances, and other related properties. The distributions themselves are represented in the symbolic form name[param_{1},param_{2},…]. Functions such as Mean, which give properties of statistical distributions, take the symbolic representation of the distribution as an argument. "Discrete Distributions" describes many common discrete univariate statistical distributions.

NormalDistribution[μ,σ] | normal (Gaussian) distribution with mean μ and standard deviation σ |

HalfNormalDistribution[θ] | half‐normal distribution with scale inversely proportional to parameter θ |

LogNormalDistribution[μ,σ] | lognormal distribution based on a normal distribution with mean μ and standard deviation σ |

InverseGaussianDistribution[μ,λ] | inverse Gaussian distribution with mean μ and scale λ |

Distributions related to the normal distribution.

The *lognormal distribution* LogNormalDistribution[μ,σ] is the distribution followed by the exponential of a normally distributed random variable. This distribution arises when many independent random variables are combined in a multiplicative fashion. The *half-normal distribution* HalfNormalDistribution[θ] is proportional to the distribution NormalDistribution[0,1/(θ Sqrt[2/π])] limited to the domain .

The *inverse Gaussian distribution* InverseGaussianDistribution[μ,λ], sometimes called the Wald distribution, is the distribution of first passage times in Brownian motion with positive drift.

ChiSquareDistribution[ν] | distribution with ν degrees of freedom |

InverseChiSquareDistribution[ν] | inverse distribution with ν degrees of freedom |

FRatioDistribution[n,m] | -ratio distribution with n numerator and m denominator degrees of freedom |

StudentTDistribution[ν] | Student t distribution with ν degrees of freedom |

NoncentralChiSquareDistribution[ν,λ] | noncentral distribution with ν degrees of freedom and noncentrality parameter λ |

NoncentralStudentTDistribution[ν,δ] | noncentral Student t distribution with ν degrees of freedom and noncentrality parameter δ |

NoncentralFRatioDistribution[n,m,λ] | noncentral -ratio distribution with n numerator degrees of freedom and m denominator degrees of freedom and numerator noncentrality parameter λ |

Distributions related to normally distributed samples.

If , …, are independent normal random variables with unit variance and mean zero, then has a * distribution* with degrees of freedom. If a normal variable is standardized by subtracting its mean and dividing by its standard deviation, then the sum of squares of such quantities follows this distribution. The distribution is most typically used when describing the variance of normal samples.

If follows a * distribution* with degrees of freedom, follows the *inverse ** distribution* InverseChiSquareDistribution[ν]. A *scaled inverse ** distribution* with degrees of freedom and scale can be given as InverseChiSquareDistribution[ν,ξ]. Inverse distributions are commonly used as prior distributions for the variance in Bayesian analysis of normally distributed samples.

A variable that has a *Student ** distribution* can also be written as a function of normal random variables. Let * *and be independent random variables, where is a standard normal distribution and is a variable with degrees of freedom. In this case, has a distribution with degrees of freedom. The Student distribution is symmetric about the vertical axis, and characterizes the ratio of a normal variable to its standard deviation. Location and scale parameters can be included as μ and σ in StudentTDistribution[μ,σ,ν]. When , the distribution is the same as the Cauchy distribution.

The *‐ratio distribution* is the distribution of the ratio of two independent variables divided by their respective degrees of freedom. It is commonly used when comparing the variances of two populations in hypothesis testing.

Distributions that are derived from normal distributions with nonzero means are called *noncentral distributions*.

The sum of the squares of normally distributed random variables with variance and nonzero means follows a *noncentral ** distribution* NoncentralChiSquareDistribution[ν,λ]. The noncentrality parameter is the sum of the squares of the means of the random variables in the sum. Note that in various places in the literature, or is used as the noncentrality parameter.

The *noncentral Student ** distribution* NoncentralStudentTDistribution[ν,δ] describes the ratio where is a central random variable with degrees of freedom, and is an independent normally distributed random variable with variance and mean .

The *noncentral **‐ratio distribution* NoncentralFRatioDistribution[n,m,λ] is the distribution of the ratio of to , where is a noncentral random variable with noncentrality parameter and degrees of freedom and is a central random variable with degrees of freedom.

TriangularDistribution[{a,b}] | symmetric triangular distribution on the interval {a,b} |

TriangularDistribution[{a,b},c] | triangular distribution on the interval {a,b} with maximum at c |

UniformDistribution[{min,max}] | uniform distribution on the interval {min,max} |

Piecewise linear distributions.

The *triangular distribution* TriangularDistribution[{a,b},c] is a triangular distribution for with maximum probability at and . If is , TriangularDistribution[{a,b},c] is the symmetric triangular distribution TriangularDistribution[{a,b}].

The *uniform distribution* UniformDistribution[{min,max}], commonly referred to as the rectangular distribution, characterizes a random variable whose value is everywhere equally likely. An example of a uniformly distributed random variable is the location of a point chosen randomly on a line from min to max.

BetaDistribution[α,β] | continuous beta distribution with shape parameters α and β |

CauchyDistribution[a,b] | Cauchy distribution with location parameter a and scale parameter b |

ChiDistribution[ν] | distribution with ν degrees of freedom |

ExponentialDistribution[λ] | exponential distribution with scale inversely proportional to parameter λ |

ExtremeValueDistribution[α,β] | extreme maximum value (Fisher–Tippett) distribution with location parameter α and scale parameter β |

GammaDistribution[α,β] | gamma distribution with shape parameter α and scale parameter β |

GumbelDistribution[α,β] | Gumbel minimum extreme value distribution with location parameter α and scale parameter β |

InverseGammaDistribution[α,β] | inverse gamma distribution with shape parameter α and scale parameter β |

LaplaceDistribution[μ,β] | Laplace (double exponential) distribution with mean μ and scale parameter β |

LevyDistribution[μ,σ] | Lévy distribution with location parameter μ and dispersion parameter σ |

LogisticDistribution[μ,β] | logistic distribution with mean μ and scale parameter β |

MaxwellDistribution[σ] | Maxwell (Maxwell–Boltzmann) distribution with scale parameter σ |

ParetoDistribution[k,α] | Pareto distribution with minimum value parameter k and shape parameter α |

RayleighDistribution[σ] | Rayleigh distribution with scale parameter σ |

WeibullDistribution[α,β] | Weibull distribution with shape parameter α and scale parameter β |

Other continuous statistical distributions.

If is uniformly distributed on [-π,π], then the random variable follows a *Cauchy distribution* CauchyDistribution[a,b], with and .

When and , the *gamma distribution* GammaDistribution[α,λ] describes the distribution of a sum of squares of -unit normal random variables. This form of the gamma distribution is called a * distribution* with degrees of freedom. When , the gamma distribution takes on the form of the *exponential distribution* ExponentialDistribution[λ], often used in describing the waiting time between events.

If a random variable follows the *gamma distribution* GammaDistribution[α,β], follows the *inverse gamma distribution* InverseGammaDistribution[α,1/β]. If a random variable follows InverseGammaDistribution[1/2,σ/2], follows a *Lévy distribution* LevyDistribution[μ,σ].

When and have independent gamma distributions with equal scale parameters, the random variable follows the *beta distribution* BetaDistribution[α,β], where and are the shape parameters of the gamma variables.

The * distribution* ChiDistribution[ν] is followed by the square root of a random variable. For , the distribution is identical to HalfNormalDistribution[θ] with . For , the distribution is identical to the *Rayleigh distribution* RayleighDistribution[σ] with . For , the distribution is identical to the *Maxwell–Boltzmann distribution* MaxwellDistribution[σ] with .

The *Laplace distribution* LaplaceDistribution[μ,β] is the distribution of the difference of two independent random variables with identical exponential distributions. The *logistic distribution* LogisticDistribution[μ,β] is frequently used in place of the normal distribution when a distribution with longer tails is desired.

The *Pareto distribution* ParetoDistribution[k,α] may be used to describe income, with representing the minimum income possible.

The *Weibull distribution* WeibullDistribution[α,β] is commonly used in engineering to describe the lifetime of an object. The *extreme value distribution* ExtremeValueDistribution[α,β] is the limiting distribution for the largest values in large samples drawn from a variety of distributions, including the normal distribution. The limiting distribution for the smallest values in such samples is the *Gumbel distribution*, GumbelDistribution[α,β]. The names "extreme value" and "Gumbel distribution" are sometimes used interchangeably because the distributions of the largest and smallest extreme values are related by a linear change of variable. The extreme value distribution is also sometimes referred to as the log‐Weibull distribution because of logarithmic relationships between an extreme value-distributed random variable and a properly shifted and scaled Weibull-distributed random variable.

PDF[dist,x] | probability density function at x |

CDF[dist,x] | cumulative distribution function at x |

InverseCDF[dist,q] | the value of x such that CDF[dist,x] equals q |

Quantile[dist,q] | q quantile |

Mean[dist] | mean |

Variance[dist] | variance |

StandardDeviation[dist] | standard deviation |

Skewness[dist] | coefficient of skewness |

Kurtosis[dist] | coefficient of kurtosis |

CharacteristicFunction[dist,t] | characteristic function |

Expectation[f[x],xdist] | expectation of f[x] for x distributed according to dist |

Median[dist] | median |

Quartiles[dist] | list of the , , quantiles for dist |

InterquartileRange[dist] | difference between the first and third quartiles |

QuartileDeviation[dist] | half the interquartile range |

QuartileSkewness[dist] | quartile‐based skewness measure |

RandomVariate[dist] | pseudorandom number with specified distribution |

RandomVariate[dist,dims] | pseudorandom array with dimensionality dims, and elements from the specified distribution |

Some functions of statistical distributions.

The preceding table gives a list of some of the more common functions available for distributions in the Wolfram Language.

The *cumulative distribution function* (CDF) at is given by the integral of the *probability density function* (PDF) up to . The PDF can therefore be obtained by differentiating the CDF (perhaps in a generalized sense). In this package the distributions are represented in symbolic form. PDF[dist,x] evaluates the density at if is a numerical value, and otherwise leaves the function in symbolic form. Similarly, CDF[dist,x] gives the cumulative distribution.

The inverse CDF InverseCDF[dist,q] gives the value of at which CDF[dist,x] reaches . The median is given by InverseCDF[dist,1/2]. Quartiles, deciles, and percentiles are particular values of the inverse CDF. Quartile skewness is equivalent to , where , , and are the first, second, and third quartiles, respectively. Inverse CDFs are used in constructing confidence intervals for statistical parameters. InverseCDF[dist,q] and Quantile[dist,q] are equivalent for continuous distributions.

The mean Mean[dist] is the expectation of the random variable distributed according to dist and is usually denoted by . The mean is given by , where is the PDF of the distribution. The variance Variance[dist] is given by . The square root of the variance is called the standard deviation, and is usually denoted by .

The Skewness[dist] and Kurtosis[dist] functions give shape statistics summarizing the asymmetry and the peakedness of a distribution, respectively. Skewness is given by and kurtosis is given by .

The characteristic function CharacteristicFunction[dist,t] is given by . In the discrete case, . Each distribution has a unique characteristic function, which is sometimes used instead of the PDF to define a distribution.

The expected value Expectation[g[x],xdist] of a function g is given by . In the discrete case, the expected value of g is given by .

RandomVariate[dist] gives pseudorandom numbers from the specified distribution.