Statistics::ZTest Function

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

Z Test.

#NameTypeDescription
1DataTVec *The data samples to be analyzed.
2Meanconst doubleThe mean to value to compare the data to.
3Sigmaconst doubleThe standard deviation to compare the data to.
4hResTHypothesisResult &Returns the result of the null hypothesis (default assumption is that the means are equal).
5Signifdouble &(Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true.
6ConfIntDewArray<double> &Returns the 100*(1-Alpha) percent confidence interval for the mean.
7hType = THypothesisType::htTwoTailedconst THypothesisTypeDefines the type of the null hypothesis (left, right and two - tailed).
8Alpha = 0.05const doubleDefines the desired significance level. If the significance probability (Signif) is bellow the desired significance (Alpha), the null hypothesis is rejected.

Returns: Z statistics.

Remarks:

Compares the normally distributed Data elements mean value with known standard deviation Sigma, to a mean value Mean.

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