BivariateWilcoxonSignedRankTest Method

Performs a Wilcoxon signed rank test.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static TestResult WilcoxonSignedRankTest(
	IReadOnlyList<double> x,
	IReadOnlyList<double> y
)

Parameters

x  IReadOnlyListDouble
The values of the first variable.
y  IReadOnlyListDouble
The values of the second variable.

Return Value

TestResult
The result of the test.

Remarks

The Wilcoxon signed rank test is a non-parametric alternative to the paired t-test (PairedStudentTTest(IReadOnlyListDouble, IReadOnlyListDouble)). Given two measurements on the same subjects, this method tests for changes in the distribution between the two measurements. It is sensitive primarily to shifts in the median. Note that the distributions of the individual measurements may be far from normal, and may be different for each subject.

Exceptions

ArgumentNullExceptionx or y is .
DimensionMismatchExceptionx and y do not contain the same number of entries.
InsufficientDataExceptionThere are fewer than two data points.

See Also