procedure ChiSquareTest(const Data: TVec; Sigma: Double; out hRes: THypothesisResult; out Signif: Double; var ConfInt: TDoubleArray; hType: THypothesisType; Alpha: Double);
Chi-Squared Test.
| # | Name | Description |
|---|---|---|
| 1 | Data | Data to be tested. |
| 2 | Sigma | Standard deviation which is compared to data standard deviation. |
| 3 | hRes | Returns the result of the null hypothesis (default assumption is that the means are equal). |
| 4 | hType | Defines the type of the null hypothesis (left, right and two - tailed). |
| 5 | Signif | (Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true. |
| 6 | ConfInt | Returns the 100*(1-Alpha) percent confidence interval for the mean. |
| 7 | Alpha | Defines 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 Chi-Squared test by comparing sample standard deviation with Sigma.