I've got two numerical vectors d1 and d2. I want to test if values of d2 are larger than d1 values. If I perform two-tailed KS test, I get p2tailed=0.0840 and if I perform one-tailed KS test with the hypothesis that d1 is larger than d2 I get p1islarger=0.0460.
Can I say that the probability to reject the hypothesis that d1 is lower or equal than d2 is p2tailed-p1islarger?
Otherwise, how can I calculate it?
Thanks.
For small p-values, the p-value of a 2-sided test tends to be larger than the p-value for the one-sided test (in the correct direction) for the same data. About double for roughly symmetrical distributions.
Example with fake data, analysis using R statistical software:
In the example above, the p-value changed from about 17% (2-sided) to about 8% (1-sided).
This is why dishonest researchers sometimes make rationalizations to use a one-sided test (after they have seen the data), when a two-sided test is really required. The one-sided test has a smaller p-value--maybe small enough to claim one can reject.