Statistics::ChiSquareTest Function

void ChiSquareTest(TVec *Data, double Sigma, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, THypothesisType hType = THypothesisType::htTwoTailed, double Alpha = 0.05);

Chi-Squared Test.

#NameTypeDescription
1DataTVec *Data to be tested.
2SigmadoubleStandard deviation which is compared to data standard deviation.
3hResTHypothesisResult &Returns the result of the null hypothesis (default assumption is that the means are equal).
4Signifdouble &(Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true.
5ConfIntDewArray<double> &Returns the 100*(1-Alpha) percent confidence interval for the mean.
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 Chi-Squared test by comparing sample standard deviation with Sigma.

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