UnivariateKuiperTest Method |
Tests whether the sample is compatible with the given distribution.
Namespace:
Meta.Numerics.Statistics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static TestResult KuiperTest(
this IReadOnlyList<double> sample,
ContinuousDistribution distribution
)
<ExtensionAttribute>
Public Shared Function KuiperTest (
sample As IReadOnlyList(Of Double),
distribution As ContinuousDistribution
) As TestResult
public:
[ExtensionAttribute]
static TestResult^ KuiperTest(
IReadOnlyList<double>^ sample,
ContinuousDistribution^ distribution
)
[<ExtensionAttribute>]
static member KuiperTest :
sample : IReadOnlyList<float> *
distribution : ContinuousDistribution -> TestResult
Parameters
- sample
- Type: System.Collections.GenericIReadOnlyListDouble
The sample. - distribution
- Type: Meta.Numerics.Statistics.DistributionsContinuousDistribution
The distribution.
Return Value
Type:
TestResultThe test result. The test statistic is the V statistic and the chance to obtain such a large
value of V under the assumption that the sample is drawn from the given distribution.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IReadOnlyListDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Remarks Like the Kolmogorov-Smirnov test (KolmogorovSmirnovTest(IReadOnlyListDouble, ContinuousDistribution)),
Kuiper's test compares the EDF of the sample to the CDF of the given distribution.
For small sample sizes, we compute the null distribution of V exactly. For large sample sizes, we use an accurate
asymptotic approximation. Therefore it is safe to use this method for all sample sizes.
See Also