Page 101 - Fundamentals of Probability and Statistics for Engineers
P. 101
84 Fundamentals of Probability and Statistics for Engineers
which the value at Y y i is EfXjY y i g. Hence, EfXjYg is itself a random
variable, and one of its very useful properties is that
EfXg EfEfXjYgg
4:13
If Y is a discrete random variable taking on values y 1 , y 2 ,..., the above states
that
X
EfXg EfXjY y i gP
Y y i ;
4:14
i
and
1
Z
EfXg EfXjygf
ydy;
4:15
Y
1
if Y is continuous.
To establish the relation given by Equation (4.13), let us show that Equation
(4.14) is true when both X and Y are discrete. Starting from the right-hand side
of Equation (4.14), we have
X X X
EfXjY y i gP
Y y i x j P
X x j jY y i P
Y y i :
i i j
Since, from Equation (2.24),
P
X x j \ Y y i
P
X x j jY y i ;
P
Y y i
we have
X X X
EfXjY y i gP
Y y i x j p XY
x j ; y i
i i j
X X
p
x j ; y i
x j
XY
j i
X
x j p
x j
X
j
EfXg;
and the desired result is obtained.
The usefulness of Equation (4.13) is analogous to what we found in using the
theorem of total probability discussed in Section 2.4 (see Theorem 2.1, page 23).
TLFeBOOK