MA 4040/ MA 2540: Probability Theory
MA 4040/ MA 2540: Probability Theory
1 / 19
Function of a Discrete Random Variable
2 / 19
Function of a Discrete Random Variable contd.
I Corollary 1:
Under the notation and assumptions of Theorem 2, suppose
that h : R → R is one-one with inverse function h−1 : D → R,
where D = {h (x) : x ∈ R}.
3 / 19
Example 1
I Solution:
Since h (x) = x 2 , x ∈ R, is a continuous function and X is a
random variable, it follows that Z = h (X ) = X 2 is a random
variable.
4 / 19
Example 1 contd.
5 / 19
Example 1 contd.
1
7, if z = 0
2
7, if z = 1
= 5
14 , if z = 4
3
14 , if z = 9
0, otherwise
and the df of Z is
0, if z <0
1
7, if 0≤z <1
FZ (z) = 73 , if 1≤z <4.
11
, if 4≤z <9
14
1, if z ≥9
6 / 19
Example 1
7 / 19
Example 1
0, if z <0
1
7, if 0≤z <1
= 17 + 17 + 17 , if 1≤z <4
1 1 1 1 3
7 + 7 + 7 + + 14 , if 4≤z <9
7
1, if z ≥9
0, if z <0
1
7, if 0≤z <1
= 37 , if 1≤z <4
11
14 , if 4≤z <9
1, if z ≥9
8 / 19
Example 1
The pmf of Y is
(
G (z) − G (z−), if z ∈ SY
g (z) =
0, o/w
1
7, if z = 0
2
7, if z = 1
= 14 5
, if z = 4
3
,
if z = 9
14
0, otherwise
9 / 19
Example 2
I Solution:
As h (x) = |x| , x ∈ R, is a continuous function and X is a
random variable, Z = |X | is a random variable.
10 / 19
Example 2 contd.
Therefore, the pmf of Z is
fZ (z) = P ({|X | = z}) = P ({X ∈ {−z, z}})
(
|−z|
+ |z| , if z ∈ {1, 2, . . . , 50}
= 2550 2550
0, otherwise
(
z
, if z ∈ {1, 2, . . . , 50}
= 1275
0, otherwise
and the df of Z is
0, if z <1
1 ,
if 1≤z <2
FZ (z) = 1275
i(i+1) .
2550 , if i ≤ z < i + 1, i = 2, 3, . . . , 49
1, if z ≥ 50
11 / 19
Example 3
I Solution:
Note that SX = SY = {0, 1, · · · , n} and
h (x) = n − x, x ∈ R, is a continuous function. Therefore
Y = n − X is a random variable.
12 / 19
Example 3 contd.
fY (y ) = P ({X = n − y })
!
n
p n−y (1 − p)y , if y ∈ {0, 1, . . . , n}
= n−y
0, otherwise
!
n p n−y (1 − p)y ,
if y ∈ {0, 1, . . . , n}
= y
0, otherwise
13 / 19
Example 3 contd.
and the df of Y is
FY (y )
0, if y < 0
n if 0 ≤ y < 1
p ,
!
= Pi n
j=0 (1 − p)j p n−j , if i ≤ y < i + 1, i = 1, 2, · · · , n − 1
j
1, if y ≥ n
14 / 19
Function of a Continuous Random Variable
Theorem 3: Let X be a random variable of continuous type
with support SX and pdf fX (·).
Let S1 , S2 , . . . , Sk , be openSintervals in R such that
Si ∩ Sj = φ, if i 6= j and ki=1 Si = SX .
Let h : R → R be a Borel function such that, on each
Si (i = 1, . . . , k) , h : Si → R is strictly monotone and
continuously differentiable with inverse function hi−1 (·).
Let h (Sj ) = {h (x) : x ∈ Sj } so that h (Sj ) (j = 1, . . . , k) is
an open interval in R.
Then the rv T = h(X ) is a random variable of continuous
type with pdf
k
X d
fT (t) = fX hj−1 (t) h−1 (t) Ih(Sj ) (t).
dt j
j=1
15 / 19
Example 4
and let T = X 2 .
(iii) Find the distribution function of T and hence find its p.d.f.;
16 / 19
Example 4 contd.
I Solution:
(i) Clearly, T = X 2 is a random variable. We have
SX = (−1, 0) ∪ (0, 2) = S1 ∪ S2 , say.
h (x) = x 2 is strictly √
decreasing on S1 = (−1, 0) with inverse
function h−1 (t) = − t, t ∈ (0, 1), and h(S1 ) = (0, 1);
17 / 19
Example 4 contd.
fT (t)
√ d √ √ d √
= fX − t − t I(0, 1) (t) + fX t t I(0, 4) (t)
dt dt
√ 1 √ 1
= fX − t − √ I(0, 1) (t) + fX t √ I(0, 4) (t)
2 t 2 t
1 h √ √ i
= √ fX − t I(0, 1) (t) + fX t I(0, 4) (t)
2 t
1
2 , if 0 < t < 1
= 16 , if 1 < t < 4
0, otherwise
18 / 19
Thank you for listening!
19 / 19