# Truncated distribution

Support Probability density function Probability density function for the truncated normal distribution for different sets of parameters. In all cases, a = −10 and b = 10. For the black: μ = −8, σ = 2; blue: μ = 0, σ = 2; red: μ = 9, σ = 10; orange: μ = 0, σ = 10. ${\displaystyle x\in (a,b]}$ ${\displaystyle {\frac {g(x)}{F(b)-F(a)}}}$ ${\displaystyle {\frac {\int _{a}^{x}g(t)dt}{F(b)-F(a)}}}$ ${\displaystyle {\frac {\int _{a}^{b}xg(x)dx}{F(b)-F(a)}}}$

In statistics, a truncated distribution is a conditional distribution that results from restricting the domain of some other probability distribution. Truncated distributions arise in practical statistics in cases where the ability to record, or even to know about, occurrences is limited to values which lie above or below a given threshold or within a specified range. For example, if the dates of birth of children in a school are examined, these would typically be subject to truncation relative to those of all children in the area given that the school accepts only children in a given age range on a specific date. There would be no information about how many children in the locality had dates of birth before or after the school's cutoff dates if only a direct approach to the school were used to obtain information.

Where sampling is such as to retain knowledge of items that fall outside the required range, without recording the actual values, this is known as censoring, as opposed to the truncation here.[1]

## Definition

The following discussion is in terms of a random variable having a continuous distribution although the same ideas apply to discrete distributions. Similarly, the discussion assumes that truncation is to a semi-open interval y ∈ (a,b] but other possibilities can be handled straightforwardly.

Suppose we have a random variable, ${\displaystyle X}$ that is distributed according to some probability density function, ${\displaystyle f(x)}$, with cumulative distribution function ${\displaystyle F(x)}$ both of which have infinite support. Suppose we wish to know the probability density of the random variable after restricting the support to be between two constants so that the support, ${\displaystyle y=(a,b]}$. That is to say, suppose we wish to know how ${\displaystyle X}$ is distributed given ${\displaystyle a.

${\displaystyle f(x|a

where ${\displaystyle g(x)=f(x)}$ for all ${\displaystyle a and ${\displaystyle g(x)=0}$ everywhere else. Notice that ${\displaystyle Tr(x)}$ has the same support as ${\displaystyle g(x)}$.

There is, unfortunately, an ambiguity about the term Truncated Distribution. When one refers to a truncated distribution one could be referring to ${\displaystyle g(x)}$ where one has removed the parts from the distribution ${\displaystyle f(x)}$ but not scaled up the distribution, or one could be referring to the ${\displaystyle Tr(x)}$. In general, ${\displaystyle g(x)}$ is not a probability density function since it does not integrate to one, whereas ${\displaystyle Tr(x)}$ is a probability density function. In this article, a truncated distribution refers to ${\displaystyle Tr(x)}$

Notice that in fact ${\displaystyle f(x|a is a distribution:

${\displaystyle \int _{a}^{b}f(x|a.

Truncated distributions need not have parts removed from the top and bottom. A truncated distribution where just the bottom of the distribution has been removed is as follows:

${\displaystyle f(x|X>y)={\frac {g(x)}{1-F(y)}}}$

where ${\displaystyle g(x)=f(x)}$ for all ${\displaystyle y and ${\displaystyle g(x)=0}$ everywhere else, and ${\displaystyle F(x)}$ is the cumulative distribution function.

A truncated distribution where the top of the distribution has been removed is as follows:

${\displaystyle f(x|X\leq y)={\frac {g(x)}{F(y)}}}$

where ${\displaystyle g(x)=f(x)}$ for all ${\displaystyle x\leq y}$ and ${\displaystyle g(x)=0}$ everywhere else, and ${\displaystyle F(x)}$ is the cumulative distribution function.

## Expectation of truncated random variable

Suppose we wish to find the expected value of a random variable distributed according to the density ${\displaystyle f(x)}$ and a cumulative distribution of ${\displaystyle F(x)}$ given that the random variable, ${\displaystyle X}$, is greater than some known value ${\displaystyle y}$. The expectation of a truncated random variable is thus:

${\displaystyle E(X|X>y)={\frac {\int _{y}^{\infty }xg(x)dx}{1-F(y)}}}$

where again ${\displaystyle g(x)}$ is ${\displaystyle g(x)=f(x)}$ for all ${\displaystyle x>y}$ and ${\displaystyle g(x)=0}$ everywhere else.

Letting ${\displaystyle a}$ and ${\displaystyle b}$ be the lower and upper limits respectively of support for ${\displaystyle f(x)}$ (i.e. the original density) properties of ${\displaystyle E(u(X)|X>y)}$ where ${\displaystyle u(X)}$ is some continuous function of ${\displaystyle X}$ with a continuous derivative and where ${\displaystyle f(x)}$ is assumed continuous include:

(i) ${\displaystyle \lim _{y\to a}E(u(X)|X>y)=E(u(X))}$

(ii) ${\displaystyle \lim _{y\to b}E(u(X)|X>y)=u(b)}$

(iii) ${\displaystyle {\frac {\partial }{\partial y}}[E(u(X)|X>y)]={\frac {f(y)}{1-F(y)}}[E(u(X)|X>y)-u(y)]}$

and ${\displaystyle {\frac {\partial }{\partial y}}[E(u(X)|X

(iv) ${\displaystyle \lim _{y\to a}{\frac {\partial }{\partial y}}[E(u(X)|X>y)]=f(a)[E(u(X))-u(a)]}$

(v) ${\displaystyle \lim _{y\to b}{\frac {\partial }{\partial y}}[E(u(X)|X>y)]={\frac {1}{2}}u'(b)}$

Provided that the limits exist, that is: ${\displaystyle \lim _{y\to c}u'(y)=u'(c)}$, ${\displaystyle \lim _{y\to c}u(y)=u(c)}$ and ${\displaystyle \lim _{y\to c}f(y)=f(c)}$ where ${\displaystyle c}$ represents either ${\displaystyle a}$ or ${\displaystyle b}$.

## Examples

The truncated normal distribution is an important example.[2]

The Tobit model employs truncated distributions.

## Random truncation

Suppose we have the following set up: a truncation value, ${\displaystyle t}$, is selected at random from a density, ${\displaystyle g(t)}$, but this value is not observed. Then a value, ${\displaystyle x}$, is selected at random from the truncated distribution, ${\displaystyle f(x|t)=Tr(x)}$. Suppose we observe ${\displaystyle x}$ and wish to update our belief about the density of ${\displaystyle t}$ given the observation.

First, by definition:

${\displaystyle f(x)=\int _{x}^{\infty }f(x|t)g(t)dt}$, and
${\displaystyle F(a)=\int _{x}^{a}\left[\int _{-\infty }^{\infty }f(x|t)g(t)dt\right]dx.}$

Notice that ${\displaystyle t}$ must be greater than ${\displaystyle x}$, hence when we integrate over ${\displaystyle t}$, we set a lower bound of ${\displaystyle x}$. The functions ${\displaystyle f(x)}$ and ${\displaystyle F(x)}$ are the unconditional density and unconditional cumulative distribution function, respectively.

By Bayes' rule,

${\displaystyle g(t|x)={\frac {f(x|t)g(t)}{f(x)}},}$

which expands to

${\displaystyle g(t|x)={\frac {f(x|t)g(t)}{\int _{x}^{\infty }f(x|t)g(t)dt}}.}$

### Two uniform distributions (example)

Suppose we know that t is uniformly distributed from [0,T] and x|t is distributed uniformly on [0,t]. Let g(t) and f(x|t) be the densities that describe t and x respectively. Suppose we observe a value of x and wish to know the distribution of t given that value of x.

${\displaystyle g(t|x)={\frac {f(x|t)g(t)}{f(x)}}={\frac {1}{t(\ln(T)-\ln(x))}}\quad {\text{for all }}t>x.}$