Home > Extreme Optimization Statistics Library for .NET > Reference > Extreme.Statistics.Tests Namespace
Represents a test that a sample comes from a specified distribution.
For a list of all members of this type, see ChiSquareGoodnessOfFitTest Members.
System.Object
HypothesisTest
OneSampleTest
ChiSquareGoodnessOfFitTest
Use the ChiSquareGoodnessOfFitTest class to test whether a sample comes from a specific distribution.
The sample can be supplied as either a NumericalVariable or a Histogram.
The distribution can be specified as a probability distribution (a class that inherits from Distribution) or a Histogram. The distribution can be discrete or continuous.
If the sample and distribution are both supplied as a Histogram, the boundaries must be identical.
A chi-square test uses binned data. A drawback is that the results of the test depend on how the data is binned. The test also needs a suffient sample size for the chi-square approximation to be valid.
The AndersonDarlingTest and OneSampleKolmogorovSmirnovTest tests are alternatives to the chi-square goodness-of-fit test, but they are valid only for continuous distributions.
Namespace: Extreme.Statistics.Tests
Assembly: Extreme.Statistics (in Extreme.Statistics.dll)
ChiSquareGoodnessOfFitTest Members | Extreme.Statistics.Tests Namespace | AndersonDarlingTest | OneSampleKolmogorovSmirnovTest