Template:Chi-squared test for grouped data

Chi-Squared Test for Grouped Data
A Chi-Squared goodness-of-fit test is used to test the null hypothesis that the Crow-AMSAA reliability model adequately represents a set of grouped data. The expected number of failures in the interval from $${{T}_{i-1}}$$  to  $${{T}_{i}}$$  is approximated by:


 * $${{\widehat{\theta }}_{i}}=\hat{\lambda }\left( T_{i}^-T_{i-1}^ \right)$$

For each interval, $${{\widehat{\theta }}_{i}}$$  shall not be less than 5 and, if necessary, adjacent intervals may have to be combined so that the expected number of failures in any combined interval is at least 5. Let the number of intervals after this recombination be $$d$$  and let the observed number of failures in the  $${{i}^{th}}$$  new interval be  $${{N}_{i}}$$  and let the expected number of failures in the  $${{i}^{th}}$$  new interval be  $${{\widehat{\theta }}_{i}}$$. Then the following statistic is approximately distributed as a Chi-Squared random variable with degrees of freedom $$d-2$$.


 * $${{\chi }^{2}}=\underset{i=1}{\overset{d}{\mathop \sum }}\,\frac$$

The null hypothesis is rejected if the $${{\chi }^{2}}$$  statistic exceeds the critical value for a chosen significance level. This means that the hypothesis that the Crow-AMSAA model adequately fits the grouped data shall be rejected. Critical values for this statistic can be found in tables of the Chi-Squared distribution. Example 6 An aircraft has scheduled inspections at intervals of 20 flight hours. Table 5.4 gives the data set from the first 100 hours of flight testing. Table 5.4 - Grouped test data
 * 1)	Estimate the parameters of the Crow-AMSAA model using maximum likelihood estimation.


 * 2)	Evaluate the goodness-of-fit.

Solution
 * 1)	Obtain the estimator of $$\beta $$  using Eqn. (vv). Using RGA the value of  $$\widehat{\beta }$$  is 0.75285. Now plug this value into Eqn. (vv1) and  $$\widehat{\lambda }$$  is:


 * $$\widehat{\lambda }=1.52931$$


 * 2)	There are a total of    observed failures from  $$d=5$$  intervals. Table 5.5 shows that those adjacent intervals do not have to be combined after applying Eqn. (seta) to the original intervals.

Table 5.5 - Observed vs. Expected Number of Failures for Grouped data

To test the model's goodness-of-fit, a Chi-Squared statistic of 5.45 is compared to the critical value of 7.8 corresponding to 3 degrees of freedom and a 0.05 significance level. Since the statistic is less than the critical value, the applicability of the Crow-AMSAA model is accepted.