Represents the runs test of randomness.
SystemObject Extreme.Statistics.TestsHypothesisTest Extreme.Statistics.TestsOneSampleTestT Extreme.Statistics.TestsRunsTestT
Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16073.0)
public sealed class RunsTest<T> : OneSampleTest<T>
Public NotInheritable Class RunsTest(Of T)
Inherits OneSampleTest(Of T)
public ref class RunsTest sealed : public OneSampleTest<T>
type RunsTest<'T> =
- The element type of the sample.
The RunsTestT type exposes the following members.
Use the RunsTestT class to test whether the elements of a sample are randomly distributed.
Specifically, the test counts the number of sequences ("runs") of values that are larger or smaller than a specific
value, and compares it to the expected number of runs for a random sequence.
For example, the residuals of a regression calculation should be randomly distributed around zero.
If the fitted line or curve is not a good model for the data, then the residuals will tend to show long runs of positive
or negative values. The runs test can detect this pattern.
The distribution of the number of runs is approximately normal.
For small sample sizes (less than 50) a continuity correction is applied.
The runs test is sometimes called the Wald-Wolfowitz test.
Supported in: 6.0