0
$\begingroup$

I have a random variable $Y=aX+Z$ where $a>0, Z\sim \mathcal{N}(0,1), P(X=1)=P(X=-1)=1/2$.

I would like to compute the $E(Y|X)$ and $E(X|Y)$. I was trying to find the joint pdf of $XY$.

$Y$ seems like a mixture of Guassians, in particular I thought it is distributed according to a Normal r.v. with mean $a$ and variance $1$ with probability $1/2$ and a Normal r.v. with mean $-a$ and variance $1$ with probability $1/2$. Is it a Normal r.v. with $\mu=0, \sigma^2=1/2$?

How can I compute the joint pdf now? Is it a Normal r.v. with $\mu=0, \sigma^2=1/4$?

Is $E(Y|X=x)=\int_y y \frac{f_{XY}(x,y)}{P(X=x)}$? Is $E(X|Y)=\int_x x f_{X|Y}(x|y)$?

$\endgroup$
4
  • $\begingroup$ Well, $Y\mid X\sim\mathcal N(aX,1)$, so it's mean is $aX$. $\endgroup$ Apr 30, 2018 at 15:57
  • $\begingroup$ And what about $X|Y$? @StubbornAtom $\endgroup$ Apr 30, 2018 at 15:59
  • $\begingroup$ By the same logic I think one would get $X\mid Y\sim \mathcal N(Y/a,1/a^2)$. $\endgroup$ Apr 30, 2018 at 16:10
  • $\begingroup$ I agree but it seemed too easy! $\endgroup$ Apr 30, 2018 at 16:19

1 Answer 1

1
$\begingroup$

The comments show how to find $E[Y|X]$. For $E[X|Y]$, note that $X$ is discrete, so you need only find $P(X=1|Y)$ and $P(X=-1|Y)$.

To do this, use this continuous analog of Bayes' theorem : $$ P(X=1|Y=y)=\frac{f_{Y|X=1}(y)\cdot P(X=1)}{f_Y(y)}=\frac{f_{Y|X=1}(y)\cdot P(X=1)}{f_{Y|X=1}(y)\cdot P(X=1)+f_{Y|X=-1}(y)\cdot P(X=-1)} $$

$\endgroup$
4
  • 1
    $\begingroup$ I had a typo, see edit, my answer shows how to find $E[X|Y]$. In more detail, $E[X|Y]=1\cdot P(X=1|Y)+(-1)\cdot P(X=-1|Y)$, then use Bayes' theorem. $\endgroup$ Apr 30, 2018 at 16:46
  • $\begingroup$ And so, if $X=1$ then $Y\sim \mathcal{N}(a,1)$ and this is the cdf of $Y|X=1$? Same for $X=-1$? @Mike Earnest $\endgroup$ Apr 30, 2018 at 16:49
  • $\begingroup$ That is correct. $\endgroup$ Apr 30, 2018 at 16:51
  • $\begingroup$ Thank you very much! @Mike Earnest!!! $\endgroup$ Apr 30, 2018 at 16:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .