I want to test a directional correlational hypothesis in the form of:
H0: There is a positive correlation (𝜌) between X and Y: 𝜌 > 0.
Context:
- The distribution of the data is not normal.
- Thus, I am planning to use Spearman rho or Kendall tau.
- I am working on Python.
I am currently using scipy.stats
both for Spearman and Kendall. However, the computed p-value is two-sided:
for a hypothesis test whose null hypothesis is an absence of association, tau = 0.
Any idea how to compute a one-sided (less or greater) p-value for this type of hypothesis?