Posted By: GPEngine
The sense of Spearman is reversed - 03/27/15 06:21
Zorro's Spearman returns high values when input series is steadily decreasing and low values when input series is steadily increasing. Someone implemented it backwards. I think it's because series index is in reverse order.
The correct implementation is something like
The correct implementation is something like
Code:
var d = ((Period - Idx[g_count] - 1) - g_count); sum += d * d;