| EasyFit Help Home • Learn More About EasyFit | |
Chi-Squared TestThe Chi-Squared test is used to determine if a sample comes from a population with a specific distribution. This test is applied to binned data, so the value of the test statistic depends on how the data is binned. Please note that this test is available for continuous sample data only. Although there is no optimal choice for the number of bins (k), there are several formulas which can be used to calculate this number based on the sample size (N). For example, EasyFit employs the following empirical formula: ![]() The data can be grouped into intervals of equal probability or equal width. The first approach is generally more acceptable since it handles peaked data much better (you can change the binning method in the Fitting Options dialog). Each bin should contain at least 5 or more data points, so certain adjacent bins sometimes need to be joined together for this condition to be satisfied. DefinitionThe Chi-Squared statistic is defined as ,where Oi is the observed frequency for bin i, and Ei is the expected frequency for bin i calculated by ,where F is the CDF of the probability distribution being tested, and x1, x2 are the limits for bin i. Hypothesis TestingThe null and the alternative hypotheses are:
The hypothesis regarding the distributional form is rejected at the
chosen significance level ( ![]()
meaning the Chi-Squared inverse CDF with k-1 degrees of freedom and a significance
level of
The fixed values of P-Value
The P-value, in contrast to fixed The P-value can be useful, in particular, when the null hypothesis is rejected at all predefined significance levels, and you need to know at which level it could be accepted. EasyFit displays the P-values based on the Chi-Squared test statistics (χ2) calculated for each fitted distribution. |
|
| Copyright © MathWave Technologies www.mathwave.com |
|