Spearman correlation test

This method deals with the modelling of a probability distribution of a random vector \vect{X} = \left( X^1,\ldots,X^{n_X} \right). It seeks to find a type of dependency (here a monotonous correlation) which may exist between two components X^i and X^j.

The Spearman’s correlation coefficient \rho^S_{U,V}, defined in Spearman’s coefficient , measures the strength of a monotonous relationship between two random variables U and V. If we have a sample made up of N pairs \left\{ (u_1,v_1),(u_2,v_2),(u_N,v_N) \right\}, we denote \widehat{\rho}^S_{U,V} to be the estimated coefficient.

Even in the case where two variables U and V have a Spearman’s coefficient \rho^S_{U,V} equal to zero, the estimate \widehat{\rho}^S_{U,V} obtained from the sample may be non-zero: the limited sample size does not provide the perfect image of the real correlation. Pearson’s test nevertheless enables one to determine if the value obtained by \widehat{\rho}^S_{U,V} is significantly different from zero. More precisely, the user first chooses a probability \alpha. From this value the critical value d_\alpha is calculated automatically such that:

  • if \left| \widehat{\rho}^S_{U,V} \right| > d_\alpha, one can conclude that the real Spearman’s correlation coefficient \rho^S_{U,V} is not zero; the risk of error in making this assertion is controlled and equal to \alpha;

  • if \left| \widehat{\rho}^S_{U,V} \right| \leq d_\alpha, there is insufficient evidence to reject the null hypothesis \rho^S_{U,V} = 0.

An important notion is the so-called “p-value” of the test. This quantity is equal to the limit error probability \alpha_\textrm{lim} under which the null correlation hypothesis is rejected. Thus, Spearman’s’s coefficient is supposed non zero if and only if \alpha_\textrm{lim} is greater than the value \alpha desired by the user. Note that the higher \alpha_\textrm{lim} - \alpha, the more robust the decision.

(Source code, png, hires.png, pdf)

../../_images/spearman_test-1.png

Examples: