Professional Documents
Culture Documents
Random Processes: Version 2 ECE IIT, Kharagpur
Random Processes: Version 2 ECE IIT, Kharagpur
2
Random Processes
Version 2 ECE IIT, Kharagpur
Lesson
6
Functions of Random
Variables
Version 2 ECE IIT, Kharagpur
2.6.2
Now, g(a) must have the following properties so that g(x) is a random variable :
a) The domain of g(a) must include the range of the random variable X.
b) For every b such that g ( a ) b , the set Iy must consist of the union and
intersection of a countable number of intervals since then only { y b} is an
event.
c) The events {g(x) = } must have zero probability.
bd
So, Fy (b) = P x
= Fx
c
bd
While, for c < 0, ca + d b means a
and so
c
bd
bd
Fy (b) = P x
= 1 Fx
Example #2.6.2
Let, y = g(x) = x2
It is easy to see that, for b < 0, Fy(b) = 0
However, for b 0 a2 b for b a b and hence,
Fy (b) = P b x b
= Fx
( b) F ( b)
Example #2.6.3
Let us consider the following function g(a):
a + c, a < c
g (a) = 0, c a c
a c, a > c
It is a good idea to sketch g(a) versus a to gain a closer look at the function.
Note that, Fy(b) is discontinuous at b = g ( a ) = 0 by the amount Fx (c) Fx (c)
Further,
for b 0, P{ y b} = P{x b + c} = Fx (b + c)
Example #2.6.4
While we will discuss more about linear and non-linear quantizers in the next Module,
let us consider the simple transfer characteristics of a linear quantizer here:
Let, g ( a ) = n.s, (n a ) s < a ns where s is a constant, indicating a fixed step size and
n is an integer, representing the n-th quantization level.
Then for y = g ( x ), the random variable Y takes values
bn = ns with
P{ y = ns} = P{(n 1) s < x ns} = Fx (ns ) Fx (ns s)
Example #2.6.5
a + c, a 0
Let, g (a) =
, where c is a constant. Plot g(a) versus a and see that
a c, a < 0
g(a) is discontinuous at a = 0, with g(0-) = -c and g(0+) = +c. This implies that,
FY(b) = FX(0), for b c.
Further, for b c, g ( a ) b
An important step while dealing with functions of random variables is to find the
point set Iy and thereby the cdf FY(Y) when the functions g(x) and FX(X) are known. In
terms of probability, it is equivalent to finding the values of the random variable X such
that, FY ( y ) = P{Y y} = P{ X I y } . We now briefly discuss about a concise and
convenient relationship for determination of the pdf of Y, i.e fY(Y).
Let, X be a continuous random variable with pdf fx(X) and g(x) be a differentiable
function of x. [i.e. g '( x ) 0] . We wish to establish a general expression for the pdf of Y =
g(X).
Note that, an event { y < Y y + dy} can be written as a union of several disjoint
elementary events {Ei}.
Let, the equation y = g ( x ) have n real roots x1, x2,, xn,
i.e.
y g(xi) = 0, for i = 1, 2, n.
Then, the disjoint events are of the forms:
Ei = {xi dxi < X < xi }, if g ' ( xi ) is ve
or Ei = {xi < X < xi + dxi }, if g ' ( xi ) is + ve
In either case, we can write (following the basic definition of pdf), that,
Pr. of an event = (pdf at x = xi). dxi
So, for the above disjoint events {Ei}, we may, approximately write,
P{Ei } = Probability of event Ei = f X ( xi ) dxi
As we have considered the events Ei s disjoint, we may now write that,
Prob.{ y < Y (y + dy) } = fY(y). dy
= fx(x1).dx1 + fx(x2).dx2 + ..+ fx(xn).dxn
Version 2 ECE IIT, Kharagpur
fx(xi). dxi
i =1
=
i =1
dy
f X ( xi ).
dxi
dy
= g ' ( xi ). = value of the derivative of g(x)
dxi
fY ( y ) = f X ( xi ) / g ' ( xi ) ,
2.6.3
i =1
Here, xi is the i-th real root of y = g(x) and g ' ( xi ) 0. If, for a given y, y = g(x)
has no real root, then fY ( y ) = 0 as X being a random variable and x being real, it can
not take imaginary values with non-zero probability.
Let us take up a small example before concluding this lesson.
Example #2.6.6
Let X be a random variable known to follow uniform distribution between - and
+. So, the mean of X is 0 and its probability density function [pdf] is:
1
, < x
f X ( x) = 2
0, otherwise
dg ( x)
= cos ( sin 1 y )
dx x = x2
We see that,
dg ( x )
dg ( x )
= 1 y2
dx x1
dx x2
fY ( y ) =
f X ( x1 ) f X ( x2 )
+
g ' ( x1 ) g ' ( x2 )
f X (sin 1 y )
f X ( sin 1 y )
1 y2
1 y2
1
2
1
1
,
=
= .
2
2
1 y2
1 y
0 y <1
Following similar procedure for the range -1 y < 0, it can ultimately be shown that,
1
1
, y <1
.
fY ( y ) =
1 y2
0, otherwise
Problems
Q2.6.1)
Q2.6.2)