Skip to content
MthwRobinson edited this page Dec 21, 2014 · 1 revision

Truncating Random Variables

Truncate

Truncate reduces the support of a random variable, and the renormalizes it to make it a valid PDF. The result is a distribution with the same shape as the parent distribution between the two given end points.

Syntax

Truncate(X,[lower,upper])

Examples:

In [10]: X=BetaRV(2,2)

In [11]: Y=Truncate(X,[Rational(1,4),Rational(3,4)])

In [12]: Y.display()
continuous pdf
for 1/4 <= x <= 3/4
---------------------------
96x⋅(-x + 1)
─────────────
      11     
---------------------------

Clone this wiki locally