Chapter 4
Chapter 4
Chapter 4
FUNCTIONS OF RANDOM
VARIABLES
Content
4.1 Equivalent events
4.2 Functions of discrete random variables and their distributions
4.3 Functions of continuous random variables and their
distributions
Introduction
• It is often the case that we know the probability distribution of the
random variable X and we are interested in determining the
probability distribution of some function of X.
• For example, given the distribution of X, we may be interested to
determine the distribution of the mean of X.
• The type of problem considered in this chapter is as follows:
Given the random variable X with known distribution and a
function H, how do we find the probability distribution of a
random variable Y = H(X)?
• The transformation process is presented in the following diagram.
Introduction
• Note that Y is a real valued function of the random variable X
with domain RX and range RY.
• Thus, the function Y itself is also a random variable.
• More formally, let E be an experiment, S be a sample space
associated with E and X be a random variable defined on S.
• Suppose that Y = H (X) is a real valued function of X, then Y =
H(X) is also a random variable since for every s ∈ S , a value of
Y is determined, say y = H(X(s)).
• As before, we call Rx the range space of X, the set of all possible
values of the function X. Similarly, we define RY the range space
of Y, the set of all possible values of the function Y.
Introduction
Example
Let X be a random variable that represents the radius of a circle.
Consider another variable Y that represents the area of a circle. Clearly,
Y is a function of X, and their functional relationship is presented as :
Y X 2
In standard statistical methods, the result of statistical hypothesis testing,
estimation, or even statistical graphics does not involve a single random
variable but, rather, functions of one or more random variables.
As a result, statistical inference requires the distributions of these
functions.
For example, the use of averages of random variables is common.
x
x
n
4.1 Equivalent events
Definition: Let C be an event associated with the range space of Y, R Y, i.e. C ⊆ RY.
Moreover, let B ⊆ RX be defined as B = {x ∈ RX ∶ H(x) ∈ C}. Then B and C are
equivalent events. Meaning, each and every element in C is a function of a
corresponding element in B.
Note
− Mathematically, if for all H(x) ∊ C, we can find event B such that B = {x ∊ Rx: H(x)
∊ C} then B ≅ C.
− When we speak of equivalent events (in the above sense), these events are
associated with different sample spaces.
Example
1. Suppose that H(x)=Πx2. Then the events B ={ x >2 } and C ={Y> 4Π} are
equivalent. Thus, for if Y = Πx2, then {X > 2}occurs if and only if {Y > 4Π} occurs.
2. Let X be a continuous random variable with p.d..f
It can be seen that RX= { X: X> 0} and RY= {Y: Y > 1/2}, which
implies that C ⊆ RY.
That is, if the possible values of X are x1, x2,…, xn then the possible values
Definition: If x1, x2, …, xn,…. are the possible values of X, P(xi) = P(X = xi), and H
is a function such that to each value y there corresponds exactly one value x, then
the probability distribution of Y is obtained as follows:
8
Example 2: Consider the following probability distribution of a discrete random
variable X
•
Y -2 1 4
P(Y=y) 1/3 1/2 1/6
9
Example 3: Suppose the probability function of a discrete random variable X is
Y 0 1 4
P(Y=y) 8/30 11/30 11/30
10
Example 3: Suppose the probability function of a discrete random variable X is
Y 3 5 7 9
P(Y=y) 7/30 8/30 4/30 11/30
11
Case II: If X is a continuous random variable.
Solution
y4
GY y pY y p2 X 4 y p X
2
y 4 y 4
2
y4 2 2
x y4
p X f ( x)dx dx
2 0
2 4
d y4 y 4
g ( y) G( y) g ( y ) 8 , if 4 y 8
dy 8 0, otherwise
14
• Theorem: Let X be a continuous random variable with pdf f, where f(x) > 0
for a < x < b. suppose that y = H(x) is a strictly monotone (increasing or
decreasing) function of x. Assume that this function is differentiable ( and
hence continuous) for all x. Then the random variable Y defined as Y=H(X)has
a pdf g given by,
1 d 1
g ( y ) f ( H ( y )) * H ( y) where H 1 ( y ) x
dy
• Theorem: Let X be a continuous random variable with pdf f and Y = X2. Then
the random variable Y has the pdf given by:
1
g ( y) [ f ( y ) f ( y )]
2 y
Example 2: Let a random variable X has a density function
ln y
x
ln y
GY y pY y p e y pX ln y Y H ( x) e x
x H 1 ( y ) ln y
pX ln y f ( x)dx 1dx ln y g ( y ) f ( H 1 ( y )) *
d 1
H ( y)
0 dy
d d 1 d 1
g ( y ) G ( y ) ln y 1* ln y
dy dy y dy y
1 , if 1 y e 1
, if 1 y e
g ( y) y g ( y) y
0, Otherwise 0, Otherwise
16
• Suppose that X has the pdf
f(x) = 3 if 0≤x≤1
0 otherwise
If Y= then find the pdf of Y