# 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. $x\in (a,b]$ ${\frac {g(x)}{F(b)-F(a)}}$ ${\frac {\int _{a}^{x}dF(t)}{F(b)-F(a)}}={\frac {F(x)-F(a)}{F(b)-F(a)}}$ ${\frac {\int _{a}^{b}xdF(x)}{F(b)-F(a)}}$ $F^{-1}\left({\frac {F(a)+F(b)}{2}}\right)$ 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.

## 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, $X$ that is distributed according to some probability density function, $f(x)$ , with cumulative distribution function $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, $y=(a,b]$ . That is to say, suppose we wish to know how $X$ is distributed given $a .

$f(x|a where $g(x)=f(x)$ for all $a and $g(x)=0$ everywhere else. That is, $g(x)=f(x)\cdot I(\{a where $I$ is the indicator function. Note that the denominator in the truncated distribution is constant with respect to the $x$ .

Notice that in fact $f(x|a is a density:

$\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:

$f(x|X>y)={\frac {g(x)}{1-F(y)}}$ where $g(x)=f(x)$ for all $y and $g(x)=0$ everywhere else, and $F(x)$ is the cumulative distribution function.

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

$f(x|X\leq y)={\frac {g(x)}{F(y)}}$ where $g(x)=f(x)$ for all $x\leq y$ and $g(x)=0$ everywhere else, and $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 $f(x)$ and a cumulative distribution of $F(x)$ given that the random variable, $X$ , is greater than some known value $y$ . The expectation of a truncated random variable is thus:

$E(X|X>y)={\frac {\int _{y}^{\infty }xg(x)dx}{1-F(y)}}$ where again $g(x)$ is $g(x)=f(x)$ for all $x>y$ and $g(x)=0$ everywhere else.

Letting $a$ and $b$ be the lower and upper limits respectively of support for the original density function $f$ (which we assume is continuous), properties of $E(u(X)|X>y)$ , where $u$ is some continuous function with a continuous derivative, include:

1. $\lim _{y\to a}E(u(X)|X>y)=E(u(X))$ 2. $\lim _{y\to b}E(u(X)|X>y)=u(b)$ 3. ${\frac {\partial }{\partial y}}[E(u(X)|X>y)]={\frac {f(y)}{1-F(y)}}[E(u(X)|X>y)-u(y)]$ and ${\frac {\partial }{\partial y}}[E(u(X)|X 1. $\lim _{y\to a}{\frac {\partial }{\partial y}}[E(u(X)|X>y)]=f(a)[E(u(X))-u(a)]$ 2. $\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: $\lim _{y\to c}u'(y)=u'(c)$ , $\lim _{y\to c}u(y)=u(c)$ and $\lim _{y\to c}f(y)=f(c)$ where $c$ represents either $a$ or $b$ .

## Examples

The truncated normal distribution is an important example.

The Tobit model employs truncated distributions. Other examples include truncated binomial at x=0 and truncated poisson at x=0.

## Random truncation

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

First, by definition:

$f(x)=\int _{x}^{\infty }f(x|t)g(t)dt$ , and
$F(a)=\int _{x}^{a}\left[\int _{-\infty }^{\infty }f(x|t)g(t)dt\right]dx.$ Notice that $t$ must be greater than $x$ , hence when we integrate over $t$ , we set a lower bound of $x$ . The functions $f(x)$ and $F(x)$ are the unconditional density and unconditional cumulative distribution function, respectively.

By Bayes' rule,

$g(t|x)={\frac {f(x|t)g(t)}{f(x)}},$ which expands to

$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.

$g(t|x)={\frac {f(x|t)g(t)}{f(x)}}={\frac {1}{t(\ln(T)-\ln(x))}}\quad {\text{for all }}t>x.$
{"ft_lang_label":"__label__en","ft_lang_prob":0.91343397,"math_prob":0.999908,"size":4770,"snap":"2021-31-2021-39","text_gpt3_token_len":999,"char_repetition_ratio":0.16701637,"word_repetition_ratio":0.057915058,"special_character_ratio":0.21509434,"punctuation_ratio":0.12684032,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000038,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],"im_url_duplicate_count":[null,null,null,4,null,4,null,1,null,1,null,4,null,null,null,null,null,null,null,3,null,null,null,3,null,1,null,null,null,6,null,null,null,1,null,null,null,null,null,3,null,3,null,3,null,null,null,null,null,null,null,null,null,3,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,3,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,3,null,null,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,null,null,null,null,null,null,null,null,null,null,null,null,3,null,null,null,null,null,3,null,3,null,null,null,null,null,null,null,null,null,null,null,null,null,3,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-17T08:27:44Z\",\"WARC-Record-ID\":\"<urn:uuid:558c6794-7ca3-47c1-9167-a7fe98ce27f0>\",\"Content-Length\":\"130403\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:acb44554-3a5a-454d-820a-afd27db0dbac>\",\"WARC-Concurrent-To\":\"<urn:uuid:2f0f185a-1dbf-4232-9304-3f422546aa64>\",\"WARC-IP-Address\":\"208.80.154.224\",\"WARC-Target-URI\":\"https://en.wikipedia.org/wiki/Truncated_distribution\",\"WARC-Payload-Digest\":\"sha1:HL47GG7A6QF66CHVSGMXDXWFKOPOPIYR\",\"WARC-Block-Digest\":\"sha1:K24QGGVIIWGVSIKWJ2D5XCM6Y3MZYNW3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780055601.25_warc_CC-MAIN-20210917055515-20210917085515-00157.warc.gz\"}"}