I have calculated the empirical distribution of a certain metric for two different conditions A (blue) and B (yellow). The analytic distributions are unknown. Plotted are the kernel density estimators for each distribution.
I am interested to test whether A has too many large values under the assumption that A came from the same distribution that B came from. My naive reasoning is that if I take the 1% largest percentile of B, there are 30% of values of A that fall above that threshold. Given that I have tens of thousands of datapoints, this is clearly significant, but I don't know how to formalize the test. I have naively attempted comparison of the means (e.g. t-test), but the mean of B is actually higher than the mean of A, and is clearly not the test I am looking for.
Edit: I'm not 100% sure, but what I might want is a Kolmogorov-Smirnov test, but without the absolute value, just testing the maximal difference of empirical CDFs, not the maximal absolute value difference.