Click or drag to resize

BivariateSampleSpearmanRhoTest Method

Performs a Spearman rank-order test of association between the two variables.

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: (
public TestResult SpearmanRhoTest()

Return Value

Type: TestResult
The result of the test.
InsufficientDataExceptionThere are fewer than three data points.

The Spearman rank-order test of association is a non-parametric test for association between two variables. The test statistic rho is the correlation coefficient of the rank of each entry in the sample. It is thus invariant over monotonic re-parameterizations of the data, and will, for example, detect a quadratic or exponential association just as well as a linear association.

The Spearman rank-order test requires O(N log N) operations.

See Also