Let's say we have two normally distributed populations A and B, which have different means and standard deviations. We then pick one item from population A and one from population B. How could we analytically find out the probability that the item from population B is larger in value than the item from population A?
I know that this can be solved fairly easily with some Monte-Carlo simulation, but I was curious to see how this problem could be solved analytically.
Lets say the joint pdf of A and B is $f(a,b)$. The analytical solution is:
$\int_{b\geq a} f(a,b) dadb$, this will just be the integral above the line $a=b$ on the domain of $f(a,b)$