Statistics::GOFChi2Test Function

Overload List

#SignatureDescription
1void GOFChi2Test(TVec *O, TVec *E, int NumSamples, int DegF, THypothesisResult &hRes, double &Signif, THypothesisType hType = THypothesisType::htTwoTailed, double Alpha = 0.05);The Chi-Squared goodness of fit test.
2void GOFChi2Test(TVec *Data, TDistribution Distribution, int NumBins, THypothesisResult &hRes, double &Signif, THypothesisType hType = THypothesisType::htTwoTailed, double Alpha = 0.05);The Chi-Squared goodness of fit test.

Overload 1: void GOFChi2Test(TVec *O, TVec *E, int NumSamples, int DegF, THypothesisResult &hRes, double &Signif, THypothesisType hType = THypothesisType::htTwoTailed, double Alpha = 0.05);

The Chi-Squared goodness of fit test.

#NameTypeDescription
1OTVec *Observed frequencies.
2ETVec *Estimated (theoretical) frequencies.
3NumSamplesintNumber of samples in original data vector.
4DegFintDegrees of freedom for Chi2 statistics.
5hResTHypothesisResult &Returns the result of the null hypothesis (default assumption is that data comes from specific distribution).
6Signifdouble &(Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true.
7hType = THypothesisType::htTwoTailedTHypothesisTypeDefines the type of the null hypothesis (left, right and two - tailed).
8Alpha = 0.05doubleDefines the desired significance level. If the significance probability (Signif) is bellow the desired significance (Alpha), the null hypothesis is rejected.
Remarks:

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

Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler

Overload 2: void GOFChi2Test(TVec *Data, TDistribution Distribution, int NumBins, THypothesisResult &hRes, double &Signif, THypothesisType hType = THypothesisType::htTwoTailed, double Alpha = 0.05);

The Chi-Squared goodness of fit test.

#NameTypeDescription
1DataTVec *Samples to be tested.
2DistributionTDistributionDistribution name (string). At the moment the following string values are supported : 'beta', 'exponential', 'gamma', 'normal', 'rayleigh' and 'weibull'.
3NumBinsintNumber of frequency histogram bins.
4hResTHypothesisResult &Returns the result of the null hypothesis (default assumption is that data comes from specific distribution).
5Signifdouble &(Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true.
6hType = THypothesisType::htTwoTailedTHypothesisTypeDefines the type of the null hypothesis (left, right and two - tailed).
7Alpha = 0.05doubleDefines the desired significance level. If the significance probability (Signif) is bellow the desired significance (Alpha), the null hypothesis is rejected.
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.

Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler