BivariatePairedStudentTTest Method

Performs a paired Student t-test.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static TestResult PairedStudentTTest(
	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

Like a two-sample, unpaired t-test (StudentTTest(IReadOnlyCollectionDouble, IReadOnlyCollectionDouble)), a paired t-test compares two samples to detect a difference in means. Unlike the unpaired version, the paired version assumes that each

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