In several previous examples, we've shown the idea of Wrap-Unwrap design patterns that allow us to work with anonymous and named tuples. The point of this kind of design is to use immutable objects that wrap other immutable objects instead of mutable instance variables.
A common statistical measure of correlation between two sets of data is the Spearman rank correlation. This compares the rankings of two variables. Rather than trying to compare values, which might have different scales, we'll compare the relative orders. For more information, visit: http://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient.
Computing the Spearman rank correlation requires assigning a rank ...