Professional Documents
Culture Documents
Chapter 4 Functions of Random Variables
Chapter 4 Functions of Random Variables
FUNCTIONS OF RANDOM
VARIABLES
1
If X has the binomial distribution with n = 3 and 𝑝 = , find the
3
𝑋
probability distributions of 𝑌 = .
1+𝑋
7
Solution 4.1:
8
Transformation Technique:
Continuous Case
◉ When performing a transformation of variables in continuous cases,
certain assumptions and conditions need to be met
○ Assumption 1: Differentiability
■ we shall assume that the function given by 𝑦=𝑢(𝑥) is
differentiable and either increasing or decreasing for all values
within the range of X for which 𝑓(𝑥)≠0, so the inverse function,
given by 𝑥=𝑤(𝑦), exists for all corresponding values of y and is
differentiable except 𝑢′ (𝑥)=0 .
■ This assumption ensures that the transformation function is
well-behaved and allows for the existence of an inverse
function. 9
Transformation Technique:
Continuous Case
○ Assumption 2: Existence and Differentiability of the Inverse
Function
■ The inverse function, given by 𝑥 = 𝑤(𝑦) , exists for all
corresponding values of y and is differentiable except 𝑢′ 𝑥 =
0.
■ This condition ensures that the inverse transformation is well-
defined and allows for the application of the inverse function
in the transformation process.
10
Transformation Technique:
Continuous Case
Theorem 4.2
Let f(x) be the value of the probability density of the continuous random
variable X at x. If the function given by 𝑦 = 𝑢(𝑥) is differentiable and either
increasing or decreasing for all values within the range of X for which 𝑓(𝑥) ≠ 0,
then, for these values of x, the equation 𝑦 = 𝑢(𝑥) can be uniquely solved for x
to give 𝑥 = 𝑤(𝑦), and for the corresponding values of y the probability density
of 𝑌 = 𝑢(𝑋) is given by
Elsewhere, 𝑔 𝑦 = 0.
11
Example 4.2 (continuous case)
𝑒 −𝑥 for 𝑥 > 0
𝑓 𝑥 =ቊ
0 elsewhere
13
Distribution Function Technique
𝐹 𝑦 =𝑃 𝑌≤𝑦
=𝑃 𝑔 𝑥 ≤𝑦
= 𝑃 𝑋 ≤ 𝑔−1 𝑦
15
Distribution Function Technique
Discrete Case
16
Example 4.3
If the probability function of X is given by
𝑓 𝑥 = 𝑝 1 − 𝑝 𝑥−1 for 𝑥 = 1,2, … , ∞
and 𝑌 = 3 + 2𝑋. Obtain the probability distribution function of
the random variable Y.
17
Solution 4.3
18
Solution cont’…
19
S
21
Example 4.4 (Solution)
22
Moment Generating Function
Technique
◉ Instead of determining densities of functions of random
variables directly, through density or distribution
manipulations, it is sometimes easier to convert to and
mathematically manipulate equivalent moment generating
functions.
◉ This method is possible because each distribution is
uniquely identified by a moment generating function.
23
Moment Generating Function
Technique : Discrete Case
◉ Moment generating function technique can play an important role in
determining the probability distribution of a random variables when the
function is a linear combination of n independent random variables.
Theorem 4.3:
If 𝑋1 , 𝑋2 ,…, 𝑋𝑛 are independent random
variables and 𝑌 = 𝑋1 + 𝑋2 + …+ 𝑋𝑛 , then
𝑛
𝑀𝑌 𝑡 = ෑ 𝑀𝑋𝑖 𝑡
𝑖=1
24
Example 4.5 (Discrete Case)
25
Solution 4.5:
26
Solution 4.5 cont’…
27
Moment Generating Function
Technique: Continuous Case
◉ As discrete case, moment generating functions can play an important role in
determining the probability density of a function of random variables when the
function is a linear combination of n independent random variables.
○ The moment generating function of the sum of n
independent random variables equals the product
of their moment generating functions.
(refer to Theorem 4.3)
28
Example 4.6 (Continuous Case)
29
Solution 4.6:
30
Class Activity 4.1
1. An appliance dealer sells three different models of upright freezers having 13.5, 15.9 and 19.1
cubic feet of storage space, respectively. Let X = the amount of storage space purchased by
the next customer to buy a freezer. Suppose that X has probability distribution as following
table and Y is the price (in RM) of a freezer having capacity X cubic feet.
x 13.5 15.9 19.1
P(X = x) 0.2 0.5 0.3
a) If the price of a freezer having capacity X cubic feet is 25x – 8.5, construct the probability
distribution of Y.
a) What is the expected price paid by the next customer to buy a freezer? Interpret its value.
b) What is the standard deviation of the price paid by the next customer?
31
Class Activity 4.1
2. Find the moment generating function of the negative binomial
distribution by making use of the fact that is k independent random
variables have geometric distributions with the same parameter 𝑝, their
sum is a random variable having the negative binomial distribution with
the parameter 𝑝 and k.
32
4. If the probability density of X is given by
2 1−𝑥 , 0≤𝑥 ≤1
𝑓 𝑥 =ቊ
0, elsewhere
and 𝑌 = 1 − 2𝑋, find
a) The probability density of Y.
b) The distribution function of Y.
c) Find the mean and variance of Y.
33
Class Activity 4.1