Conditional Expectation For Discrete Random Variables: Agenda
Conditional Expectation For Discrete Random Variables: Agenda
Agenda
1. Conditional Expectation for discrete random variables
Example
The joint distribution of X and Y is given in the following table
1
Let’s find E(Y |X = 1).
• fX (x) ≥ 0 ∀x ∈ R
Rb
• ∀a < b, P (a < X < b) = a
fX (x)dx
Example
A certain process for producing an industrial chemical yeilds a product that
contains two main types of impurities. Let X denote the proportion of im-
purities of Type I and Y denote the proportion of impurities of Type II.
2
Suppose that the joint density of X and Y can be modelled as,
= 0.3 × [1 − 0.25]
= 0.3 × 0.75
= 0.225
Lemma 1. If X and Y are continuous random variables, with joint pdf fX,Y
then the individual or marginal pdf ’s fX and fY are given by,
Z ∞
fX (x) = fX,Y (x, y)dy
−∞
Z ∞
fY (y) = fX,Y (x, y)dx
−∞
3
fX and fY .
Z ∞
fX (x) = fX,Y (x, y)dy
Z−∞
∞
= 2(1 − x)1{0≤x≤1,0≤y≤1} dy
−∞
Z 1
= 2(1 − x)1{0≤x≤1} dy
0
= 2(1 − x)1{0≤x≤1}
= 2(1 − x) if 0 ≤ x ≤ 1
= 0 otherwise
Z ∞
fY (y) = fX,Y (x, y)dx
Z−∞
∞
= 2(1 − x)1{0≤x≤1,0≤y≤1} dx
−∞
Z 1
= 2(1 − x)1{0≤y≤1} dx
0
1
1{0≤y≤1} −(1 − x)2 0
=
= 1{0≤y≤1} × 1
= 1 if 0 ≤ y ≤ 1
= 0 otherwise
Please note that by using the indicator function 1{...} we are considering
the various cases at once and making the calculations easier.
4
we define the conditional pdf of Y given X = x as,
fX,Y (x, y)
fY |X=x (y) =
fX (x)
for all y ∈ R.
Note that when fX (x) = 0 we don’t define the above quantity. Now we
can calculate
Z 0.5
P (Y ≤ 0.5|X = 0.3) = fY |X=0.3 (y)dy
−∞
Homework::
2. 5.27,5.31,5.32,5.34