apaAutoCorrel.Spearman(Returns, lag)
Excel
=apaAutoCorrel.Spearman(Returns, lag)Result
Returns the autocorrelation coefficients and their +/-95% confidence bands up to a certain lag. The autocorrelation coefficients are calculated as Spearman rank correlations.
Syntax
Returns: r x 1 vector of returns
lag: maximum lag
Algorithm
Spearman rank correlation coefficients are calculated from the lagged time series.
Remarks
While Pearson correlations capture linear dependencies, Spearman rank correlations also capture non-linear monotonic dependencies.
The confidence bands are the approximate 95% white-noise bands −1/n ± 2/√n, where n is the number of observations.
