Proof that the probability $P(X<Y) = 0.5$ for two iid variable

320 Views Asked by At

I'm struggling to prove analytically that for two iid (independent and identically distributed) random variables $ P(X<Y) = 0.5$ for any distribution. I'm able to do it by direct integration on specific distributions, but not in the general usecase.