Template:Goodness-of-fit test camsaa

Goodness-of-Fit Tests
While using the Crow-AMSAA model in the RGA 7 software, there are four goodness-of-fit tests which may become available depending on their applicability. The Cramér-von Mises goodness-of-fit test tests the hypothesis that the data follows a nonhomogeneous Poisson process with failure intensity equal to $$u(t)=\lambda \beta {{t}^{\beta -1}}$$. This test can be applied when the failure data is complete over the continuous interval $$[0,{{T}_{q}}]$$  with no gaps in the data. The Chi-Squared test is a goodness-of-fit test that can be applied under more general circumstances, particularly when the data set is grouped. In addition, for multiple system data the Common Beta Hypothesis (CBH) test also can be used to compare the intensity functions of the individual systems by comparing the $${{\beta }_{q}}$$  results for each system. Lastly, the Laplace Trend test checks for trends within the data. Due to their general application to multiple models, the Common Beta Hypothesis test and the Laplace Trend test are both presented in Appendix B. The Cramér-von Mises and Chi-Squared tests are described here since they apply to the Crow-AMSAA model only.

Cramér-von Mises Test for Individual Failure Times
If the individual failure times are known, a Cramér-von Mises statistic is used to test the null hypothesis that a non-homogeneous Poisson process with failure intensity function $$\rho \left( t \right)=\lambda \,\beta \,{{t}^{\beta -1}}\left( \lambda >0,\beta >0,t>0 \right)$$  properly describes the reliability growth of a system. The Cramér-von Mises goodness-of-fit statistic is then given by the following expression:


 * $$C_{M}^{2}=\frac{1}{12M}+\underset{i=1}{\overset{M}{\mathop \sum }}\,{{\left[ {{\left( \frac{{{T}_{i}}}{T} \right)}^{{\hat{\beta }}}}-\frac{2i-1}{2M} \right]}^{2}}$$


 * where:


 * $$M=\left\{ \begin{matrix}

N\text{ if the test is time terminated} \\ N-1\text{ if the test is failure terminated} \\ \end{matrix} \right\}$$

The failure times, $${{T}_{i}}$$, must be ordered so that  $${{T}_{1}}<{{T}_{2}}<\ldots <{{T}_{M}}$$. If the statistic $$C_{M}^{2}$$  exceeds the critical value corresponding to  $$M$$  for a chosen significance level, then the null hypothesis that the Crow-AMSAA model adequately fits the data shall be rejected. Otherwise, the model shall be accepted. Critical values of $$C_{M}^{2}$$  are shown in Appendix B, Table B.2, where the table is indexed by the total number of observed failures,  $$M$$.

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.