<< Chapter < Page Chapter >> Page >

Definition . The conditional expectation of X , given event C with positive probability, is the quantity

E [ X | C ] = E [ I C X ] P ( C ) = E [ I C X ] E [ I C ]

Remark . The product form E [ X | C ] P ( C ) = E [ I C X ] is often useful.

A numerical example

Suppose X exponential ( λ ) and C = { 1 / λ X 2 / λ } . Now I C = I M ( X ) where M = [ 1 / λ , 2 / λ ] .

P ( C ) = P ( X 1 / λ ) - P ( X > 2 / λ ) = e - 1 - e - 2 and
E [ I C X ] = I M ( t ) t λ e - λ t d t = 1 / λ 2 / λ t λ e - λ t d t = 1 λ ( 2 e - 1 - 3 e - 2 )

Thus

E [ X | C ] = 2 e - 1 - 3 e - 2 λ ( e - 1 - e - 2 ) 1 . 418 λ
Got questions? Get instant answers now!

Conditioning by a random vector—discrete case

Suppose X = i = 1 n t i I A i and Y = j = 1 m u j I B j in canonical form. We suppose P ( A i ) = P ( X = t i ) > 0 and P ( B j ) = P ( Y = u j ) > 0 , for each permissible i , j . Now

P ( Y = u j | X = t i ) = P ( X = t i , Y = u j ) P ( X = t i )

We take the expectation relative to the conditional probability P ( · | X = t i ) to get

E [ g ( Y ) | X = t i ] = j = 1 m g ( u j ) P ( Y = u j | X = t i ) = e ( t i )

Since we have a value for each t i in the range of X , the function e ( · ) is defined on the range of X . Now consider any reasonable set M on the real line and determine the expectation

E [ I M ( X ) g ( Y ) ] = i = 1 n j = 1 m I M ( t i ) g ( u j ) P ( X = t i , Y = u j )
= i = 1 n I M ( t i ) j = 1 m g ( u j ) P ( Y = u j | X = t i ) P ( X = t i )
= i = 1 n I M ( t i ) e ( t i ) P ( X = t i ) = E [ I M ( X ) e ( X ) ]

We have the pattern

( A ) E [ I M ( X ) g ( Y ) ] = E [ I M ( X ) e ( X ) ] where e ( t i ) = E [ g ( Y ) | X = t i ]

for all t i in the range of X .

We return to examine this property later. But first, consider an example to display the nature of the concept.

Basic calculations and interpretation

Suppose the pair { X , Y } has the joint distribution

P ( X = t i , Y = u j )
X = 0 1 4 9
Y = 2 0.05 0.04 0.21 0.15
0 0.05 0.01 0.09 0.10
-1 0.10 0.05 0.10 0.05
P X 0.20 0.10 0.40 0.30

Calculate E [ Y | X = t i ] for each possible value t i taken on by X

  • E [ Y | X = 0 ] = - 1 0 . 10 0 . 20 + 0 0 . 05 0 . 20 + 2 0 . 05 0 . 20
  • = ( - 1 · 0 . 10 + 0 · 0 . 05 + 2 · 0 . 05 ) / 0 . 20 = 0
  • E [ Y | X = 1 ] = ( - 1 · 0 . 05 + 0 · 0 . 01 + 2 · 0 . 04 ) / 0 . 10 = 0 . 30
  • E [ Y | X = 4 ] = ( - 1 · 0 . 10 + 0 · 0 . 09 + 2 · 0 . 21 ) / 0 . 40 = 0 . 80
  • E [ Y | X = 9 ] = ( - 1 · 0 . 05 + 0 · 0 . 10 + 2 · 0 . 15 ) / 0 . 10 = 0 . 83

The pattern of operation in each case can be described as follows:

  • For the i th column, multiply each value u j by P ( X = t i , Y = u j ) , sum, then divide by P ( X = t i ) .

The following interpretation helps visualize the conditional expectation and points to an important result in the general case.

  • For each t i we use the mass distributed “above” it. This mass is distributed along a vertical line at values u j taken on by Y . The result of the computation is to determine the center of mass for the conditional distribution above t = t i . As in the case of ordinary expectations, this should be the best estimate, in the mean-square sense, of Y when X = t i . We examine that possibility in the treatment of the regression problem in [link] .

Although the calculations are not difficult for a problem of this size, the basic pattern can be implemented simply with MATLAB, making the handling of much larger problems quite easy. Thisis particularly useful in dealing with the simple approximation to an absolutely continuous pair.

X = [0 1 4 9]; % Data for the joint distributionY = [-1 0 2];P = 0.01*[ 5 4 21 15; 5 1 9 10; 10 5 10 5];jcalc % Setup for calculations Enter JOINT PROBABILITIES (as on the plane) PEnter row matrix of VALUES of X X Enter row matrix of VALUES of Y YUse array operations on matrices X, Y, PX, PY, t, u, and P EYX = sum(u.*P)./sum(P); % sum(P) = PX (operation sum yields column sums)disp([X;EYX]') % u.*P = u_j P(X = t_i, Y = u_j) for all i, j0 0 1.0000 0.30004.0000 0.8000 9.0000 0.8333

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Applied probability. OpenStax CNX. Aug 31, 2009 Download for free at http://cnx.org/content/col10708/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Applied probability' conversation and receive update notifications?

Ask