In this article, we consider linear functions of a random variable. That is, given a random variable , we consider functions of the form
.
First, let us consider discrete random variables. Given a discrete random variable , we see how the probability mass function and the cumulative distribution function of
are related to those of
.
As is usual, let and
denote the probability mass function and the cumulative distribution function respectively of
. Then, we have:
Thus, the probability mass function of is horizontally stretched by a factor
and then right-shifted by
to give the probability mass function of
. Note that if
, a horizontal stretch by a factor of
implies a horizontal stretch by
and a reflection about the
-axis.
To determine , let us first consider the case of
.
Thus, when , the cumulative distribution function of
is horizontally stretched by a factor
and then right-shifted by
to give the cumulative distribution function of
.
Let us now consider the case of .
Now, let us turn to continuous random variables. Given a continuous random variable , we see how the probability density function and the cumulative distribution function of
are related to those of X.
As is usual, let and
denote the probability density function and the cumulative distribution function respectively of
.
For small , we know that
.
For the case of , we have:
Thus, for , we have
.
For the case of , we have:
Thus, for , we have
.
We combine the two cases of and
and say that for any
,
.
Thus, the probability density function of is horizontally stretched by a factor
, right-shifted by
and then, vertically shrunk by a factor
to give the probability density function of
. Note that, if
, a horizontal stretch by a factor of
implies a horizontal stretch by
and a reflection about the
-axis.
To determine , we first consider the case of
.
Thus, when , the cumulative distribution function of
is horizontally stretched by a factor
and then right-shifted by
to give the cumulative distribution function of
.
Now, let us consider the case of .