i have seen this question being addressed around, but I have problem with deriving the proof. Namely, if we have two normally distributed variables, $x$ and $y$, with their distributions given as $p_x(x)$ and $p_y(y)$, then for arbitrary $n$, the probability of x being less than n and y being greater than n we have:
$P(x\leq n \wedge y>n) = \int_{-\infty}^n f_x(x)dx \int_n^\infty f_y(y)dy$
If this is correct, which I think is, then for all possible numbers, the probability $P(x<y)$ should be:
$P(x<y) = \int_{-\infty}^\infty \int_{-\infty}^n f_x(x)dx \int_n^\infty f_y(y)dy dn $
Well, now I have problem to get the same result as it was pointed out for example here: http://www.johndcook.com/blog/2008/07/26/random-inequalities-ii-analytical-results/
I hope somebody can explain me where am I wrong.
Best
When $n$ is negative a reversal of the inequality $\frac{x}{y}<1$ may happen.
Have a look at the Wikipedia page for the ratio distribution.