Inprobability theory, especially in mathematicalstatistics, alocation–scale family is afamily ofprobability distributions parametrized by alocation parameter and a non-negativescale parameter. For anyrandom variable whose probability distribution function belongs to such a family, the distribution function of also belongs to the family (where means "equal in distribution"—that is, "has the same distribution as").
In other words, a class of probability distributions is a location–scale family if for allcumulative distribution functions and any real numbers and, the distribution function is also a member of.
Moreover, if and are two random variables whose distribution functions are members of the family, and assuming existence of the first two moments and has zero mean and unit variance,then can be written as , where and are the mean and standard deviation of.
Indecision theory, if all alternative distributions available to a decision-maker are in the same location–scale family, and the first two moments are finite, then atwo-moment decision model can apply, and decision-making can be framed in terms of themeans and thevariances of the distributions.[1][2][3]
Often, location–scale families are restricted to those where all members have the same functional form. Most location–scale families areunivariate, though not all. Well-known families in which the functional form of the distribution is consistent throughout the family include the following:
The following shows how to implement a location–scale family in a statistical package or programming environment where only functions for the "standard" version of a distribution are available. It is designed forR but should generalize to any language and library.
The example here is of theStudent'st-distribution, which is normally provided in R only in its standard form, with a singledegrees of freedom parameterdf. The versions below with_ls appended show how to generalize this to ageneralized Student's t-distribution with an arbitrary location parameterm and scale parameters.
| Probability density function (PDF): | dt_ls(x, df, m, s) = | 1/s * dt((x - m) / s, df) |
| Cumulative distribution function (CDF): | pt_ls(x, df, m, s) = | pt((x - m) / s, df) |
| Quantile function (inverse CDF): | qt_ls(prob, df, m, s) = | qt(prob, df) * s + m |
| Generate arandom variate: | rt_ls(df, m, s) = | rt(df) * s + m |
Note that these generalized functions do not have standard deviations since standardt distributions do not have a standard deviation of 1.