












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Two Random Variables
Joint Probability distribution, joint PDF
Examples
Conditional Probability
Marginal PDF, Bayes’ Rule
Estimation Based on Observation.
Questions and Solutions
Reading:
G. R. Cooper & C. D. McGillem 3.1 - 3.
EE/STAT 322, #
at different time instants.time; sometimes we need the joint distributions to describe multiple RVsA marginal (single) PDF describes the distribution of an RV at a given
Joint probability distribution function:
XY
x, y
x, Y
y ) .
x, y
< x <
< y <
, y
x,
Note:
, y
y ) .
x, y
is a nondecreasing function as either
x
or
y , or both, increase.
XY
, y
F Y ( y ) , F
XY
x,
X
(^) ( x ) .
EE/STAT 322, #
Given a joint PDF Example:
f XY
x, y
1
( x 2 − x 1
)(
y 2 − y 1 ) , x 1
< x
x 2 , y
1
< y
y
elsewhere
Find the correlation value
and the marginal PDFs
f X
(^) ( x )
and
f Y ( y ). X
Y
1
x
2
x
1
y
2
y
)
,
(
y
x
f
EE/STAT 322, #
4
E^ Solution:
x 2
x 1
y 2
y 1
xyf
x, y
dydx
x 2
x 1
y 2
y 1
xy
( x 2 − x 1
y 2 − y 1 )
dydx
( x 1 + x 2
y 1 + y 2 ).
f X
(^) ( x ) =
y 2
y 1
f (^) ( x, y
dy
y 2
y 1
1
( x 2 − x 1
)(
y 2 − y 1 )
dy
1
x 2 −
x 1 (^) ,
x 1
< x
x 2 ;
f Y
( y ) =
x 2
x 1
f (^) ( x, y
dx
x 2
x 1
1
( x 2 − x 1
)(
y 2 − y 1 )
dx
1
y 2 − y 1 (^) ,
y 1
< y
y 2 ,
EE/STAT 322, #
(b)
1 / 2
0
1 / 4
0
e −
(
x
y ) dydx
2 1 (
/e
3 1 (
− e − 3 / 4
/e
− e − 3 / 4
(b)
∞ 0
∞ 0
xy
e −
(
x
y ) dxdy
∞ 0
xe
−
2 x dx
∞ 0
ye
− 3 y dy
Using integration by part, we get
∞
0
xe
−
2 x dx
∞
0
2 x
de
− 2 x = − [
2 x e −
2 x | 0 ∞
∞
0
e −
2 x dx
e −
2 x | ∞ 0
Similarly,
∞ 0
ye
−
3 y dy
. So
EE/STAT 322, #
7
Conditional probability distribution function:
X
(^) ( x | M
P (^) ( X
≤
x,M
(^) )
P (^) ( M
(^) )
Let
M = { Y ≤ y }
, then
X
(^) ( x | Y
y ) =
P (^) ( X
≤
x,Y
≤
y )
P (^) ( Y (^) ≤
y )
F (^) ( x,y
)
F Y (^) ( y ) .
Assume
y 1
< Y
≤ y 2 } ( P
X
(^) ( x | y 1
< Y
y 2 ) =
x, y
1
< Y
y 2 )
y 1
< Y
y 2 )
x, Y
≤ y 2 ) − P
x, Y
y 1 )
Y ≤ y 2 ) − P
y 1 )
x, y
2 )
−
x, y
1 )
F Y ( y 2 ) − F Y ( y 1 ).
EE/STAT 322, #
Note:
x, y
/∂y
∂ (^) ∫ −∞x
∫ −∞y
(^) f (^) ( u,v
) dvdu
∂y
x −∞
f (^) ( u, y
du
f The conditional PDF is X
(^) ( x | Y
y ) =
∂F
X (^) ( x | Y (^) =
y )
∂x
f (^) ( x, y
/f
Y
( y ) .
Note:
∂ (^) ∫ −∞x
(^) f (^) ( u,y
) dy
∂x
f (^) ( x, y
By interchanging
and
it follows that
f Y ( y | X = x
f (^) ( x,y
)
f X (^) ( x ) (^).
f As a shorthand notation, the continuous version of Bayes’ theorem: (^) ( y | x ) =
f (^) ( x,y
)
f X (^) ( x ) (^) , and
f (^) ( x | y ) =
f (^) ( x,y
)
f Y ( y ).
P The discrete version is
(^) ( X
i | Y j ) =
i , Y
j ) /P
j ) =
i , Y
j ) / [ ∑
i , Y
j )]
.
EE/STAT 322, #
f From joint PDF to conditional PDF and marginal PDF: (^) ( x, y
f (^) ( x | y ) f Y ( y
f (^) ( y | x ) f X
x ) .
Example:
A joint PDF is given by
f (^) ( x, y
5 6 (
− x 2 y ) , 0 ≤ x ≤ 1 , 0 ≤ y ≤ 0
elsewhere
f We can obtain conditional and marginal PDFs from the joint PDF. (^) ( x ) =
1 0
f (^) ( x, y
dy
5 6 (
x 2 /
, 0 ≤ x ≤ 1.
f (^) ( y ) =
1 0
f (^) ( x, y
dx
5 6 (
y/
, 0 ≤ y ≤ 1.
f (^) ( x | y ) =
f (^) ( x, y
/f
Y
( y ) =
1 −
x 2 y
1 −
y/
3 , 0 ≤ x ≤ 1 ,
y
f (^) ( y | x ) =
f (^) ( x, y
/f
X
(^) ( x ) =
1 −
x 2 y
1 − x 2 / 2 , 0 ≤ x ≤ 1 ,
y
EE/STAT 322, #
11
f (^) ( x | y ) =
b
√
2 πσ
N (^) f Y (^) ( y ) exp
( − ( y − x ) 2
2 σ N 2
bx
x
x <
Next,
the most likely value of
given
y
is
x
which maximizes
f (^) ( x | Y = y )
, or in mathematical language,
ˆx
=
max
x f (^) ( x | Y = y ).
In
f (^) ( x | y ) , factor
f Y
( y )
is independent of
and can be ignored. We want
to maximize
− ( y − x ) 2
2 σ N 2
bx
, or to minimize
x ) =
( y − x ) 2 2 σ N 2
bx
Let
′ ( x ) = 0
, we get
x
y
−
bσ
N 2
(^).
EE/STAT 322, #
y
−
bσ
N 2
y
−
bσ
N 2
y
−
bσ
N 2
(a)
0
ˆ
=
X
)
|
(
y
x
f
)
|
(
y
x
f
X
X
(b)
X ˆ
EE/STAT 322, #
2 1 | Y
2 1 ) =
(^21) ∞
f (^) ( x | Y
2 1 ) dx
(^21) ∞
f (^) ( x,Y
=
21 )
f (^) ( Y
=
21 )
dx
f (^) ( Y
2 1 ) =
1 0
3 2 ( x
dx
3 2 ( x 2 / + x ) |
01
=
3 2
· 2 3
= 1
Note that
2 1 ) =
f (^) ( Y
2 1 )∆
y
= 0
2 1 | Y
2 1 ) =
(^21) ∞
3 2 ( x
dx
3 2 ( x 2 / 2 +
x ) | 211
= 7
2 1 | X
2 1 ) =
21
0
f (^) ( X
=
21 ,y
)
f (^) ( X
=
21 )
dx
21
0
3 2 ( 2 1
y ) dy
3 2 ( y/
y 2 ) | (^021)
=
3 2
· ( 2 1 ) = 1
Here we used that
f (^) ( X
2 1 ) =
1 0
3 2 ( 2 1
y ) dy
EE/STAT 322, #
Example:
(Ex 3-2.2)
A random signal
is uniformly distributed between 10 and 20 V.
deviation of 5 V. The observed signal isIt is observed that the present Gaussian noise has zero mean and standard
Find the best estimate of
, (a) if
; (b) if
; (c) if
X
)
( (^) x
f
10
20
EE/STAT 322, #
17
To maximize
f (^) ( x | y )
with respect to
x , we need to minimize
x ) = (
y − x ) 2.
, which is
closest to
X
)
|
(
y
Y
x
f
=
10
20
)
|
(
x
y
f
10
ˆ
=^
X
5
=
y
EE/STAT 322, #
19
′ ( x ) = 0
x
y , if
y
≤
X
)
|
(
y
Y
x
f
=
0
10
20
)
|
(
x
y
f
12
ˆ
=^
X
20
10
<
<
y
, which is
closest to
EE/STAT 322, #