Let $X,Y$ be two real valued random variables. What is the joint density of the pair $(X, X)$ and how do we calculate $E[h(X,Y)|X=x]$?

282 Views Asked by At

Suppose that we have two real valued random variables $X,Y$ on a probability setting $(\Omega, F, P)$. Suppose that $X,Y$ have densities $f_X, f_Y$ and joint density $f_{X,Y}$. So I have the following questions,

1)What is the joint density of the pair $(X, X)$?

2)How do we calculate quantities of the kind, $E[h(X,Y)|X=x]$? (I know how it works when $X, Y$ are independent)

For question 1, obviously for $Z=(X, X)$ we have that $PoZ^{-1}(A \times B) = PoX^{-1}(A \cap B) = \int_{A \cap B}f_X(x)dm(x)$. But can we find a density in $R^2$ such that the joint law measure of $Z$ will be absolutely continuous wrt the lebesgue measure of $R^2$? In other words can we find $f_{X, X}$ such that.. $\int_{A\times B}f_{X, X}(x_1, x_2)dm(x_1, x_2) = \int_{A \cap B}f_X(x)dm(x), \text{for all borel A, B}$?

For question 2, if $X, Y$ are independent one by using Fubini's theorem can prove that for $\phi(x) = E [h(x, Y)]$ we have that $\phi(X) = E [h(X, Y)|X], a.s .P$, so that $\phi(x) = E [h(X, Y)|X = x]$. So what happens when $X,Y$ are not independent? How do we calculate it?

2

There are 2 best solutions below

0
On

on 1)

If $\lambda_{2}$ denotes the Lebesguemeasure on $\mathbb{R}^{2}$ and $\Delta:=\left\{ \left(x,x\right)\mid x\in\mathbb{R}\right\} $ then $\lambda_{2}\left(\Delta\right)=0$ and $P\left\{ \left(X,X\right)\in\Delta\right\} =1$.

This implies that $\left(X,X\right)$ has no density with respect to $\lambda_{2}$.

For any measurable function $p$ we find $\int_{\triangle}p\left(x,y\right)dxdy=0\neq1$.

0n 2) $$\mathbb{E}\left[h\left(X,Y\right)\mid X=x\right]=\frac{\int h\left(x,y\right)f_{X,Y}\left(x,y\right)dy}{\int f_{X,Y}\left(x,y\right)dy}=\frac{\int h\left(x,y\right)f_{X,Y}\left(x,y\right)dy}{f_{X}\left(x\right)}$$

See the answer of @Did for further explanation.

2
On

Re 1., as already explained by @drhab, $P((X,X)\in D)=1$ where $D$ is the diagonal, and the Lebesgue measure of $D$ is zero, hence $(X,X)$ has no density.

To solve 2., one can come back to the definition: reacall that $E(h(X,Y)\mid X)=u(X)$ for some measurable function $u$ if and only if $E(h(X,Y)v(X))=E(u(X)v(X))$ for every bounded measurable function $v$, that is, $$\iint h(x,y)v(x)f_{X,Y}(x,y)\mathrm dx\mathrm dy=\int u(x)v(x)f_X(x)\mathrm dx.$$ This identity holds for every function $v$ if and only if, for every $x$, $$\int h(x,y)f_{X,Y}(x,y)\mathrm dy=u(x)f_X(x),$$ hence $E(h(X,Y)\mid X)=u(X)$ where $$u(x)=\frac1{f_X(x)}\int h(x,y)f_{X,Y}(x,y)\mathrm dy,$$ in particular, $E(h(X,Y)\mid X=x)=u(x)$ for $P_X$-almost every $x$.

In the special case when $X$ and $Y$ are independent, $f_{X,Y}(x,y)=f_{X}(x)f_{Y}(y)$ hence this simplifies into $$u(x)=\int h(x,y)f_{Y}(y)\mathrm dy=E(h(x,Y)).$$