In probability and statistics, the truncated normal distribution is the probability distribution derived from that of a normally distributed random variable by bounding the random variable from either below or above (or both). The truncated normal distribution has wide applications in statistics and econometrics.
Definitions Suppose X has a normal distribution with mean μ and variance σ2 and lies within the interval (a,b),with−∞≤a<b≤∞. Then X conditional on a<X<b has a truncated normal distribution. Its probability density function, f, for a≤x≤b, is given by f(x;μ,σ,a,b)=1σφ(x−μσ)Φ(b−μσ)−Φ(a−μσ) and by f=0 otherwise. Here, φ(ξ)=12πexp(−12ξ2) is the probability density function of the standard normal distribution and Φ(⋅) is its cumulative distribution function Φ(x)=12(1+erf(x/2)). By definition, if b=∞, then Φ(b−μσ)=1, and similarly, if a=−∞, then Φ(a−μσ)=0. The above formulae show that when −∞<a<b<+∞ the scale parameter σ2 of the truncated normal distribution is allowed to assume negative values. The parameter σ is in this case imaginary, but the function f is nevertheless real, positive, and normalizable. The scale parameter σ2 of the untruncated normal distribution must be positive because the distribution would not be normalizable otherwise. The doubly truncated normal distribution, on the other hand, can in principle have a negative scale parameter (which is different from the variance, see summary formulae), because no such integrability problems arise on a bounded domain. In this case the distribution cannot be interpreted as an untruncated normal conditional on a<X<b, of course, but can still be interpreted as a maximum-entropy distribution with first and second moments as constraints, and has an additional peculiar feature: it presents two local maxima instead of one, located at x=a and x=b.
Properties The truncated normal is one of two possible maximum entropy probability distributions for a fixed mean and variance constrained to the interval [a,b], the other being the truncated U. Truncated normals with fixed support form an exponential family. Nielsen reported closed-form formula for calculating the Kullback-Leibler divergence and the Bhattacharyya distance between two truncated normal distributions with the support of the first distribution nested into the support of the second distribution.
Moments If the random variable has been truncated only from below, some probability mass has been shifted to higher values, giving a first-order stochastically dominating distribution and hence increasing the mean to a value higher than the mean μ of the original normal distribution. Likewise, if the random variable has been truncated only from above, the truncated distribution has a mean less than μ. Regardless of whether the random variable is bounded above, below, or both, the truncation is a mean-preserving contraction combined with a mean-changing rigid shift, and hence the variance of the truncated distribution is less than the variance σ2 of the original normal distribution.
Two sided truncation Source: Let α=(a−μ)/σ and β=(b−μ)/σ. Then: E(X∣a<X<b)=μ−σφ(β)−φ(α)Φ(β)−Φ(α) and Var(X∣a<X<b)=σ2[1−βφ(β)−αφ(α)Φ(β)−Φ(α)−(φ(β)−φ(α)Φ(β)−Φ(α))2] Care must be taken in the numerical evaluation of these formulas, which can result in catastrophic cancellation when the interval [a,b] does not include μ. There are better ways to rewrite them that avoid this issue.
One sided truncation (of lower tail) Sources: In this case b=∞,φ(β)=0,Φ(β)=1, then E(X∣X>a)=μ+σφ(α)/Z, and Var(X∣X>a)=σ2[1+αφ(α)/Z−(φ(α)/Z)2], where Z=1−Φ(α).
One sided truncation (of upper tail) In this case a=α=−∞,φ(α)=0,Φ(α)=0, then E(X∣X<b)=μ−σφ(β)Φ(β), Var(X∣X<b)=σ2[1−βφ(β)Φ(β)−(φ(β)Φ(β))2]. Barr & Sherrill (1999) give a simpler expression for the variance of one sided truncations. Their formula is in terms of the chi-square CDF, which is implemented in standard software libraries. Bebu & Mathew (2009) provide formulas for (generalized) confidence intervals around the truncated moments.
A recursive formula As for the non-truncated case, there is a recursive formula for the truncated moments. In particular, for n≥0, we have E[(x−μσ)n+2]=αn+1φ(α)−βn+1φ(β)Φ(β)−Φ(α)+(n+1)E[(x−μσ)n].
Proof By the change of variables ξ=(x−μ)/σ, one obtains E[(x−μσ)n+2]=∫αβξn+2φ(ξ)Φ(β)−Φ(α)dξ. Using φ′(ξ)=−ξφ(ξ), integration by parts yields E[(x−μσ)n+2]=[−ξn+1φ(ξ)Φ(β)−Φ(α)]αβ+(n+1)∫αβξnφ(ξ)Φ(β)−Φ(α)dξ, which gives the equation to be proven.
Multivariate Computing the moments of a multivariate truncated normal is harder.
Generating values from the truncated normal distribution
… excerpt ends here. Continue reading the full article.


