I am going through this post in trying to prove the probabilistic interpretation of the AUC for a ROC Curve (for a classifier):
The AUC for a ROC curve is the the probability of the classifier scoring a randomly chosen positive point higher than a randomly chosen negative one.
I was able to follow till the end, but am a little stuck on getting the final result. So far I have the following
\begin{align*} {AUC} &= \int_0^1 tpr(fpr) d(fpr)\\ &= \int_0^1 tpr(fpr(s))d(fpr(s))\\ &= \int_{+\infty}^{-\infty} tpr(s)fpr'(s)ds\\ &= \int_{+\infty}^{-\infty} \left(1-F_1(s)\right) \left(-f_{-1}(s)\right)ds\\ &= \int_{-\infty}^{+\infty} (1-F_1(s)) (f_{-1}(s))ds \\ &= \int_{-\infty}^{+\infty} Pr(s<X_{1}) (f_{-1}(s))ds \\ &= \int_{-\infty}^{+\infty} Pr(X_{-1}<X_{1}\ |\ X_{-1}=s) (f_{-1}(s))ds \\ &= \int_{-\infty}^{+\infty} Pr(X_{-1}<X_{1}, X_{-1}=s ) ds \\ &= Pr(X_{-1}<X_{1} ). % &= \int_{-\infty}^{+\infty} P(S>s) (f_{-1}(s))ds \\ \end{align*}
I am struggling in my confidence that
$$\int_{-\infty}^{+\infty} Pr(X_{-1}<X_{1}\ |\ X_{-1}=s) (f_{-1}(s))ds = \int_{-\infty}^{+\infty} Pr(X_{-1}<X_{1}, X_{-1}=s ) ds$$
is correct. I found the result in this post, but cannot find it elsewhere for continuous random variables. Is this a standard definition without proof? I have not seen it before and I can't find anything about conditional probabilities that makes me get it, could I get some help on that part?
Thanks