Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let $X_1$ and $X_2$ be two Random variables with a standard normal distribution, and the two variables are independent.

Find $E[X_1|X_1>X_2]$

My answer is far.

If we knew $X_2$, then the answer would be: $\frac{\phi(X_2)}{1-\Phi(X_2)}$

But, since we don't know X_2 either I have

$\int_{-\infty}^{\infty} \frac{\phi^2(X_2)}{1-\Phi(X_2)}dX_2$

I cannot solve this integral, I've tried Integration by parts, but I get stuck.

share|cite|improve this question
In what sense you 'do not know ' $X_2$? $X_2 \sim N(0,1)$ – Alex Jan 25 '13 at 22:53
Sorry, I'm not sure understand your comment. I started off assuming both $X_1$ and $X_2$ are $N(0,1)$ – Greg Jan 25 '13 at 23:50
up vote 2 down vote accepted

Let $\phi$ and $\Phi$ be the pdf and cdf of the standard normal distribution, and for a condition $A$, let $[A]$ be $1$ if $A$ is true and $0$ otherwise. Then

\begin{eqnarray*} {\Bbb E}[X_1\mid X_1>X_2] &=& \frac{{\Bbb E}[X_1 [X_1>X_2]]}{{\Bbb P}[X_1>X_2]}\\ &=& \frac{1}{{\Bbb P}[X_1>X_2]} \int_{x>y} x \phi(x) \phi(y) \, dy\, dx\\ &=& \frac{1}{{\Bbb P}[X_1>X_2]} \int_{\Bbb R} x \phi(x) \left( \int_{y<x} \phi(y) \, dy\right) \, dx\\ &=& \frac{1}{{\Bbb P}[X_1>X_2]} \int_{\Bbb R} x \phi(x) \Phi(x) \, dx. \end{eqnarray*} Since ${\Bbb P}[X_1>X_2]=\frac12$, this equals $$ 2 \int_{\Bbb R} x \phi(x) \Phi(x) \, dx. $$ You can integrate this by parts by setting $u=\Phi(x)$, $dv=x \phi(x) dx$.

share|cite|improve this answer
Thanks for this. Could you elaborate on that first step, I don't quite see how you got there? – Greg Jan 26 '13 at 9:15
I expanded the answer. – David Moews Jan 26 '13 at 9:52
so Integrating by parts, I get $-\Phi(x)*\phi(x)+\int \phi^2(x)dx$, which I get to be 0? – Greg Jan 26 '13 at 16:20
No, that's not right. After all, you expect to have ${\Bbb E}[X_1\mid X_1>X_2]>{\Bbb E}[X_1]=0$. – David Moews Jan 26 '13 at 18:52
Correct, sorry made a mistake with the integral $\int \phi^2(x)$. – Greg Jan 26 '13 at 20:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.