Chapter 3 Note
Chapter 3 Note
Chapter 3
Two Random Variables
3.1 Introduction
In many applications it is important to study two or more rvs defined on the same sample space.
In this chapter, we first consider the case of two rvs, their associated distribution, and some
properties, such as independence of the rvs. These concepts are then extended to the case of
many rvs defined on the same sample space.
The overall sample space of the experiment could then be viewed as S = S1 × S2. For any
outcome s ∈ S of this experiment, the pair of random variables (X, Y) is merely a mapping of the
outcomes to a pair of numerical values (x(s), y(s)).
Let S be the sample space of a random experiment. Let X and Y be two rvs. Then the pair (X, Y)
is called a bivariate rv (or two-dimensional random vector) if each of X and Y associates a real
number with every element of S. Thus, the bivariate rv (X, Y) can be considered as a function
that to each point ξ in S assigns a point (x, y) in the plane. The range space of the bivariate rv (X,
Y) is denoted by Rxy and defined by
*( ) ( ) ( ) +
If the rvs X and Y are each, by themselves, discrete rvs, then (X, Y) is called a discrete bivariate
rv. Similarly, if X and Y are each, by themselves, continuous rvs, then (X, Y) is called a
continuous bivariate rv. If one of X and Y is discrete while the other is continuous, then (X, Y) is
called a mixed bivariate rv. Figure 3.1 (X, Y) as a function from S to the plane.
Chapter 3 Page 1
Mekelle University Ethiopian Institute of Technology Faculty of ECE
The event (X ≤ x, Y ≤ y) in Eq. (3.1) is equivalent to the event A ∩ B, where A and B are events
of S defined by
If, for particular values of x and y, A and B were independent events of S, then
Properties of FXY(x, y): The joint cdf of two rvs has many properties analogous to those of the
cdf of a single rv.
1) 0 ≤ FXY(x, y) ≤ 1
2) If x1 ≤ x2, and y1 ≤ y2, then
3) ( ) ( )
4) ( ) ( )
( ) ( )
5) ( ) ( ) ( )
( ) ( ) ( )
Chapter 3 Page 2
Mekelle University Ethiopian Institute of Technology Faculty of ECE
7) If x1 ≤ x2 and y1 ≤ y2, then
Note that the left-hand side of this equation is equal to P(x1 < X ≤ x2, y1 < Y ≤ y2).
( ) ( ) ( )
( ) ( ) ( ) (3.6)
Similarly,
( ) ( ) ( ) (3.7)
FX(x) and FY(y) on Equations (3.6) and (3.7), are referred to as the marginal cdfs of X and Y,
respectively.
Example 3.1: Given two random variables X and Y with the joint cdf ( ), and marginal
cdfs ( ) and ( ), respectively, compute the joint probability that X is greater than a and Y
is greater than b.
Solution:
= 1 – P(*̅̅̅̅̅̅̅̅̅̅̅+ ̅̅̅̅̅̅̅̅̅̅̅
* +) = 1 – P({X ≤ a} {Y ≤ b})
( )( )
( ) {
Solution:
( ) ( ) 2
( ) ( ) {
Chapter 3 Page 3
Mekelle University Ethiopian Institute of Technology Faculty of ECE
b) Since FXY(x,y) = FX(x)FY(y), X and Y are independent.
c) P(X ≤ 1, Y ≤ 1) = FXY(1,1) = ( )( )
P(X ≤ 1) = FX(1) = ( )
P(Y > 1) = 1 – FY(1) =
P(X > x, Y > y) = 1 – FX(x) – FY(y) + FXY(x,y) =
( )
Solution:
( ) {
( ) {
b) For X and Y to be independent, we must have FXY(x, y) = FX(x)FY(y). Thus, for 0 ≤ x <
a, 0 ≤ y < b, we must have p1 = p2p3, for X and Y to be independent.
Joint probability mass functions: Let (X, Y) be a discrete bivariate rv, and let (X, Y) take
on the values (xi, yj) for a certain allowable set of integers i and j. Let
The function PXY(xi, yj) is called the joint probability mass function (joint pmf) of (X, Y).
Properties of PXY(xi, yj):
1) 0 ≤ PXY(xi, yj) ≤ 1
2) ∑ ∑ ( )
3) ,( )∈ - ∑( )∈ ∑ ( )
where the summation is over the points (xi, yj) in the range space RA corresponding to the event
A. The joint cdf of a discrete bivariate rv (X, Y) is given by
( ) ∑ ∑ ( ) (3.9)
Chapter 3 Page 4
Mekelle University Ethiopian Institute of Technology Faculty of ECE
Marginal probability mass functions: Suppose that for a fixed value X = xi, the rv Y can take on
only the possible values yj (j = 1, 2, … , n). Then
( ) ( ) ∑ ( ) (3.10)
where the summation is taken over all possible pairs (xi, yj) with xi fixed. Similarly,
( ) ( ) ∑ ( ) (3.11)
where the summation is taken over all possible pairs (xi, yj) with yj fixed. The pmfs PX(xi) and
PY(yj), when obtained by Equations (3.10) and (3.11), are referred to as the marginal pmfs of X
and Y, respectively.
Example 3.4: Two fair dice are thrown. Consider a bivariate rv (X, Y). Let X = 0 or 1 according
to whether the first die shows an even number or an odd number of dots. Similarly, let Y = 0 or 1
according to the second die.
Solution:
PXY(x,y) = PX(x)PY(y) = ¼
Example 3.5: Consider the binary communication channel shown in Figure 3.2. Let (X, Y) be a
bivariate rv, where X is the input to the channel and Y is the output of the channel. Let P(X = 0)
= 0.5, P(Y = 1|X = 0) = 0.1, and P(Y = 0|X = 1) = 0.2.
( ) ∑ ( )
( ) ∑ ( )
( ) ∑ ( )
( ) ∑ ( )
Joint probability density functions: Let (X, Y) be a continuous bivariate rv with cdf
FXY(x, y) and let
( )
( ) (3.13)
The function fXY(x, y) is called the joint probability density function (joint pdf) of (X, Y). By
integrating Equation (3.13), we have
( ) ∫ ∫ ( ) (3.14)
Chapter 3 Page 6
Mekelle University Ethiopian Institute of Technology Faculty of ECE
Properties of fXY(x, y):
1) fXY(x, y) ≥ 0
2) ∫ ∫ ( )
3) ( ) is continuous for all values of x or y except possibly a finite set.
4) ,( )∈ - ∬ ( )
( ) ∫ ∫ ( ) ( )
( )
( ) ∫ ( )
( ) ∫ ( ) (3.15)
( ) ∫ ( ) (3.16)
The pdfs fX(x) and fY(y), when obtained by Equations (3.15) and (3.16), are referred to as the
marginal pdfs of X and Y, respectively.
( ) ( ) ( )
( ) ( ) ( )
( ) ( ) ( ) (3.17)
analogous with Equation (3.12) for the discrete case. Thus, we say that the continuous rvs X and
Y are independent rvs if and only if Equation (3.17) is satisfied.
( )
( ) 2
where k is a constant.
Solution:
a) The value of k is
Chapter 3 Page 7
Mekelle University Ethiopian Institute of Technology Faculty of ECE
∫ ∫ ( ) ∫ ∫ ( ) ∫ ( )
∫ ( ) ( )
Thus k = 1/8
( ) ∫ ( ) ∫ ( ) ( ) { ( )
( ) ∫ ( ) ∫ ( ) ( ) { ( )
( ) 2
where k is a constant.
Solution:
a) The value of k is
∫ ∫ ( ) ∫ ∫ ( ) ∫ ( )
∫ . / ( )
Thus, k = 4.
b) To determine whether X and Y are independent, first find the marginal pdfs of X and Y.
( ) {∫
( ) {∫
Chapter 3 Page 8
Mekelle University Ethiopian Institute of Technology Faculty of ECE
( ) ( ) ( ), therefore X and Y are independent.
c) The region in the x - y plane corresponding to the event (X +. Y < 1) is shown in Figure
3.3(b) as a shaded area. Then
( ) ∫ ∫ ∫ ( ) ∫ ( )
Properties of ( | ):
1) 0 ≤ ( | )≤1 2) ∑ ( | )
Notice that if X and Y are independent, then by Equation (3.12),
( | ) ( ) (3.20)
( | ) ( ) (3.21)
Conditional probability density functions: If (X, Y) is a continuous bivariate rv with joint pdf
fXY(x, y), then the conditional pdf of Y, given that X = x, is defined by
( )
( ) ( ) (3.22)
( )
Chapter 3 Page 9
Mekelle University Ethiopian Institute of Technology Faculty of ECE
Properties of ( ):
1) ( )
2) ∫ ( )
( ) ( ) and ( ) ( ) (3.24)
Example 3.8: Consider the bivariate rv (X, Y) with joint and marginal pmfs given by
( ) { ( )
( ) ( )
( ) ( )
Solution:
( )
( | )
( )
( )
( | )
( )
( ) ( )
( ) ( )
Example 3.9: Find the conditional pdfs fy|x(y|x) and fx|y(x|y) for the bivariate rv (X, Y) whose
joint and marginal pdfs are given below
( ) 2
( )
( )
Solution:
Chapter 3 Page 10
Mekelle University Ethiopian Institute of Technology Faculty of ECE
( )
( )
( )
( )
( )
( )
∑ ∑ ( )
, - { (3.25)
∫ ∫ ( )
If n = 0, we obtain the kth moment of X, and if k = 0, we obtain the nth moment of Y. Thus,
, - , -
∑∑ ( ) ∑ ∑ ( ) ∑ ( )
∑∑ ( ) ∑ ∑ ( ) ∑ ( )
∫ ∫ ( ) ∫ ,∫ ( ) - ∫ ( )
∫ ∫ ( ) ∫ ,∫ ( ) - ∫ ( )
The (1,1)th joint moment of (X,Y), , - is called the correlation of X and Y. If E(XY)
= 0, then we say that X and Y are orthogonal. The covariance of X and Y, denoted by Cov(X, Y)
or σXY is defined by
If Cov(X, Y) = 0, then we say that X and Y are uncorrelated. From Equation (3.27), we see that
X and Y are uncorrelated if
Note that if X and Y are independent, then it can be shown that they are uncorrelated, but the
converse is not true in general; that is, the fact that X and Y are uncorrelated does not, in general,
Chapter 3 Page 11
Mekelle University Ethiopian Institute of Technology Faculty of ECE
imply that they are independent. The correlation coefficient, denoted by ρ(X,Y) or ρxy, is defined
by
( )
( ) (3.29)
It can be shown that | ρxy | ≤ 1 and -1 ≤ ρxy ≤ 1. Note that the correlation coefficient of X and Y
is a measure of linear dependence between X and Y.
, - ∑ ( ) (3.30)
( ) 0( ) 1 ∑ ( ) ( ) (3.31)
( ) , - , - (3.32)
The conditional mean of X, given that Y = yj and the conditional variance of X, given that Y = yj
are given by similar expressions. Note that the conditional mean of Y, given that X = xi, is a
function of xi alone. Similarly, the conditional mean of X, given that Y = yj, is a function of yj
alone.
If (X, Y) is a continuous bivariate rv with joint pdf fXY(x, y), the conditional mean of Y, given
that X = x, is defined by
, - ∫ ( ) (3.33)
( ) 0( ) 1 ∫ ( ) ( ) (3.34)
( ) , - , - (3.35)
The conditional mean of X, given that Y = y, and the conditional variance of X, given that Y = y,
are given by similar expressions. Note that the conditional mean of Y, given that X = x, is a
function of x alone. Similarly, the conditional mean of X, given that Y = y, is a function of y
alone.
( )
Chapter 3 Page 12
Mekelle University Ethiopian Institute of Technology Faculty of ECE
Show that X and Y are not independent but are uncorrelated.
Solution:
( ) ∫ ( )
( ∫ ∫ )
√ √ √
Noting that the integrand of the first integral in the above expression is the pdf of N(0; 1) and the
second integral in the above expression is the variance of N(0; 1), we have
( ) ( ) -∞ < x < ∞
√
( ) ( ) -∞ < y < ∞
√
( ) ∫ ( ) ( ) ∫ ( )
( ) ∫ ∫ ( )
The integral vanishes because the contributions of the second and the fourth quadrants cancel
those of the first and the third. Thus, E(XY) = E(X)E(Y), and so X and Y are uncorrelated.
Definitions:
Given an experiment, the n-tuple of rvs (X1, X2, … , Xn) is called an n-variate rv (or n -
dimensional random vector) if each Xi, i = 1, 2, … , n, associates a real number with every
sample point ξ ϵ S. Thus, an n-variate rv is simply a rule associating an n-tuple of real numbers
with every ξ ϵ S.
Let (X1, X2, … , Xn) be an n-variate rv on S. Then its joint cdf is defined as
Chapter 3 Page 13
Mekelle University Ethiopian Institute of Technology Faculty of ECE
( ) ( ) (3.36)
Note that
( )
The marginal joint cdfs are obtained by setting the appropriate Xi’s to in Equation (3.36). For
example,
( ) ( )
( ) ( ) (3.37)
The probability of any n-dimensional event A is found by summing Eq. (3.37) over the points in
the n-dimensional range space RA corresponding to the event A:
,( )∈ - ∑( )∈ ∑ ( ) (3.38)
Properties of ( ):
1) 0 ≤ ( )≤1
2) ∑ ∑ ( )
The marginal pmf's of one or more of the rvs are obtained by summing Eq. (3.37) appropriately.
For example,
( ) ∑ ( ) (3.39)
Then
( ) ∫ ∫ ∫ ( ) (3.42)
The marginal pdfs of one or more of the rvs are obtained by integrating Equation (3.41)
appropriately. For example,
( ) ∫ ( )
( ) ∫ ∫ ( )
Chapter 3 Page 14
Mekelle University Ethiopian Institute of Technology Faculty of ECE
Conditional pdfs are defined similarly. For example,
( )
( ) (3.43)
( )
( ) ∏ ( ) (3.44)
( ) ∏ ( ) (3.45)
∑ ∑ ( )
( ) { (3.46)
∫ ∫ ( )
( ) ,( ) - (3.47)
( ) ,( )( )- (3.48)
( ) (3.50)
Chapter 3 Page 15
Mekelle University Ethiopian Institute of Technology Faculty of ECE
B. Bivariate normal distribution: A bivariate rv (X, Y) is said to be a bivariate normal
(or gaussian) rv if its joint pdf is given by
( )
( ) (3.51)
( )
Where ( ) [. / . /. / . / ] (3.52)
and μX, μY, , are the means and variances of X and Y, respectively. It can be shown that ρ
is the correlation coefficient of X and Y and that X and Y are independent when p = 0.
[ ]
[ ]
The n-variate rv (X1, X2, …, Xn) is called an n-variate normal rv if its joint pdf is given by
( ) ( )
( ) (3.53)
( )
where T denotes the transpose, μ is the vector mean, K is the covariance matrix given by
( )
, - [ ] [ ]
( )
[ ] ( )
fX(x) = ( ).
Chapter 3 Page 16