Statistics.GOFChi2Test Method

Overload List

#SignatureDescription
1void GOFChi2Test(TVec Data, TDistribution Distribution, Int32 NumBins, ref THypothesisResult hRes, ref Double Signif, THypothesisType hType, Double Alpha)The Chi-Squared goodness of fit test.
2void GOFChi2Test(TVec O, TVec E, Int32 NumSamples, Int32 DegF, ref THypothesisResult hRes, ref Double Signif, THypothesisType hType, Double Alpha)The Chi-Squared goodness of fit test.

Overload 1: void GOFChi2Test(TVec Data, TDistribution Distribution, Int32 NumBins, ref THypothesisResult hRes, ref Double Signif, THypothesisType hType, Double Alpha)

The Chi-Squared goodness of fit test.

#NameDescription
1DataSamples to be tested.
2NumBinsNumber of frequency histogram bins.
3DistributionDistribution name (string). At the moment the following string values are supported : 'beta', 'exponential', 'gamma', 'normal', 'rayleigh' and 'weibull'.
4hResReturns the result of the null hypothesis (default assumption is that data comes from specific distribution).
5hTypeDefines the type of the null hypothesis (left, right and two - tailed).
6Signif(Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true.
7AlphaDefines the desired significance level. If the significance probability (Signif) is bellow the desired significance (Alpha), the null hypothesis is rejected.

Result: stored in self (calling object)

Remarks:

Performs the Chi-squared goodness of fit test to test if data is coming from specific distribution. This overload version does not require expected and actual frequencies, but only data vector.

Overload 2: void GOFChi2Test(TVec O, TVec E, Int32 NumSamples, Int32 DegF, ref THypothesisResult hRes, ref Double Signif, THypothesisType hType, Double Alpha)

The Chi-Squared goodness of fit test.

#NameDescription
1OObserved frequencies.
2EEstimated (theoretical) frequencies.
3NumSamplesNumber of samples in original data vector.
4DegFDegrees of freedom for Chi2 statistics.
5hResReturns the result of the null hypothesis (default assumption is that data comes from specific distribution).
6hTypeDefines the type of the null hypothesis (left, right and two - tailed).
7Signif(Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true.
8AlphaDefines the desired significance level. If the significance probability (Signif) is bellow the desired significance (Alpha), the null hypothesis is rejected.

Result: stored in self (calling object)

Remarks:

Performs the Chi-squared goodness of fit test to test if data is coming from specific distribution.