Professional Documents
Culture Documents
Function of RV
Function of RV
StatLect
Index > Fundamentals of probability
Let be a random variable with known distribution. Let another random variable be a function of
:
There is no general answer to this question. However, there are several special cases in which it is
easy to derive the distribution of . We discuss these cases below.
1 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
The distribution function of a strictly increasing function of a random variable can be computed as
follows.
2 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Proof
Therefore, in the case of an increasing function, knowledge of and of the upper and lower bounds
of the support of is all we need to derive the distribution function of from the distribution
function of .
Let
3 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
In the cases in which is either discrete or continuous there are specialized formulae for the
probability mass and probability density functions, which are reported below.
Proposition (probability mass of an increasing function) Let be a discrete random variable with
support and probability mass function . Let be strictly increasing on the support of
. Then, the support of is
4 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Proof
Let
The support of is
5 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
6 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Proof
This proposition is a trivial consequence of the fact that the density function is the �rst derivative of
the distribution function: it can be obtained by di�erentiating the expression for the distribution
function found above.
7 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Let
The support of is
with derivative
8 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
The distribution function of a strictly decreasing function of a random variable can be computed as
follows.
Proof
9 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Therefore, also in the case of a decreasing function, knowledge of and of the upper and lower
bounds of the support of is all we need to derive the distribution function of from the distribution
function of .
Let
10 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
where equals when and otherwise (because is always zero except when
and ).
We report below the formulae for the special cases in which is either discrete or continuous.
11 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Proposition (probability mass of a decreasing function) Let be a discrete random variable with
support and probability mass function . Let be strictly decreasing on the support of
. Then, the support of is
Proof
Let
12 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
The support of is
13 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Proof
Example Let be a uniform random variable on the interval , i.e., a continuous random variable
with support
Let
14 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
where we can safely ignore the fact that , because is a zero-probability event (see
Continuous random variables and zero-probability events). The function is strictly decreasing and
its inverse is
with derivative
Therefore, has an exponential distribution with parameter (see the lecture entitled Exponential
distribution).
15 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Invertible functions
In the case in which the function is neither strictly increasing nor strictly decreasing, the formulae
given in the previous sections for discrete and continuous random variables are still applicable,
provided is one-to-one and hence invertible. We report these formulae below.
Proposition (probability mass of a one-to-one function) Let be a discrete random variable with
support and probability mass function . Let be one-to-one on the support of .
Then, the support of is
16 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Proof
If
17 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Proof
For a proof of this proposition see: Poirier, D. J. (1995) Intermediate statistics and econometrics: a
comparative approach, MIT Press.
Solved exercises
Below you can �nd some exercises with explained solutions.
Exercise 1
Let be a continuous random variable with support
18 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Let
Solution
The support of is
with derivative
19 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Exercise 2
Let be a continuous random variable with support
Let
Solution
The support of is
20 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
with derivative
Exercise 3
Let be a discrete random variable with support
21 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
Let
Solution
The support of is
22 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
23 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
The book
Most of the learning materials found on this website are now available in a traditional textbook
format.
LEARN MORE
24 of 25 10/4/19, 12:38
Functions of random variables and their distribution https://www.statlect.com/fundamentals-of-probability/functions-of-rando...
25 of 25 10/4/19, 12:38