Spearman Test - rileywheadon/ffa-framework GitHub Wiki
The Spearman Test is used to identify autocorrelation in a time series
- Null hypothesis: The least insignificant lag is
$0$ . - Alternative hypothesis: The least insignificant lag is greater than
$0$ .
To carry out the Spearman test, we use the following procedure:
- Compute Spearman's correlation coefficient
$\rho_{i}$ for$y_{t}$ and$y_{t-i}$ for all$0 \leq i < n$ . - Determine the
$p$ -value$p_{i}$ for each correlation coefficient$\rho _{i}$ . - Iterate through
$p_{i}$ to find the largest$i$ such that$p_{j} \leq \alpha$ for all$j \leq i$ . - The value of
$i$ found in (3) is the least insignificant lag at confidence level$\alpha$ .
Remark: To compute the
Then, the test statistic
For more information, see the Wikipedia pages on Autocorrelation and Spearman's Correlation Coefficient.