Statistics.GOFChi2Test Method

Overload List

#SignatureDescription
1procedure GOFChi2Test(const Data: TVec; Distribution: TDistribution; NumBins: Integer; out hRes: THypothesisResult; out Signif: Double; hType: THypothesisType; Alpha: Double);The Chi-Squared goodness of fit test.
2procedure GOFChi2Test(const O: TVec; const E: TVec; NumSamples: Integer; DegF: Integer; out hRes: THypothesisResult; out Signif: Double; hType: THypothesisType; Alpha: Double);The Chi-Squared goodness of fit test.

Overload 1: procedure GOFChi2Test(const Data: TVec; Distribution: TDistribution; NumBins: Integer; out hRes: THypothesisResult; out Signif: Double; hType: THypothesisType; Alpha: Double);

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: procedure GOFChi2Test(const O: TVec; const E: TVec; NumSamples: Integer; DegF: Integer; out hRes: THypothesisResult; out Signif: Double; hType: THypothesisType; Alpha: Double);

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.