Another corollary is a direct application of the Fubini's theorem.
Corollary Two. Assume that f:R2→R is a function measurable B2/B.
Define
g(x)≐E[f(x,Y)]=∫Rf(x,y)ν(dy),∀x∈R.
Then we have:
E[g(X)]=E[f(X,Y)],
i.e.,
∫R(∫Rf(x,y)ν(dy))μ(dx)=∫R2f(x,y)(μ×ν)(d(x,y))
Remarks:
If X and Y are not independent, then the above claim may not hold, since the product measure μ×ν may not be the joint distribution of (X,Y).
In the above, we operate on the product space (R×R,B×B,μ×ν)=(R2,B2,μ×ν), instead of (Ω×Ω,F×F,λ×λ)=(Ω2,F2,λ2).
There are various interpretations of E[f(X,Y)]:
f(X,Y) can be viewed as a function from Ω to R, given by ω→f(X(ω),Y(ω)).
It is easy to see that it is measurable F/B, and therefore is a random variable.
Then
E[f(X,Y)]=∫Ωf(X(ω),Y(ω))λ(dω).
Alternative, we can view f(x,y) as a measurable function from the probability space (R2,B2,μ×ν), to R.
It is a random variable, and
E[f(X,Y)]=∫R2f(x,y)(μ×ν)(d(x,y)).
It can be proven that the two integrals are equal:
If f(x,y)=I[(x,y)∈A×B], for some A,B∈B, then by independence of X and Y, both integrals equal μ(A)⋅ν(B).
Since S≐{A×B:A,B∈B} generates B2, i.e., σ(S)=B2, applying π-λ theorem, if f(x,y)=I[(x,y)∈M] for some M∈B2, the two integral are equal.
By linearity of integration, if f(x,y) is B2 simple function, the two integral are equal.
By monotone convergence theorem, if f(x,y) is a non-negative measurable function, the two integral are equal.
By decomposing f into non-negative and negative parts, if f(x,y) is an integrable function, the two integral are equal.
Reference
[1] P. Billingsley, Probability and measure, 3rd ed. New York: Wiley, 1995.