Testing fit of continuous and discrete distributions to observed data


Continuous Distributions

You can test the fit of many different continuous distributions to your data using the UNIVARIATE procedure in Base SAS®, the CAPABILITY procedure in SAS/QC® (see the distribution options in the various plotting statements of these procedures), the SEVERITY and HPSEVERITY procedures in SAS/ETS®, or the RELIABILITY procedure in SAS/QC.

The following lists the distribution families available and the procedures that can be used to estimate them:

Modeling procedures, such as SAS/STAT® procedures GENMOD, GLIMMIX, and FMM, can also be used to estimate the parameters of specified distributions. See this note illustrating the use of GENMOD to estimate parameters of several distributions.

Kernel density estimation is also available for fitting distributions of unspecified or more general types such as multimodal distributions.

The SEVERITY and HPSEVERITY procedures can automatically fit all of its predefined distributions to the data and identify the best fitting distribution using several criteria such as AIC, BIC, and others.

The RELIABILITY procedure can estimate the parameters for the common life distributions when the data are complete, right censored, or interval censored.

For details, see these sections of procedure documentation:

To compare the distributions (of unspecified type) from two or more samples, use the EDF option in the NPAR1WAY procedure in SAS/STAT.

Discrete Distributions

You can use features in the FREQ procedure to test the fit of many discrete distributions. Use the TABLES statement to specify a one-way table of observed frequencies or probabilities. In the TABLES statement, specify the CHISQ option to request a Pearson chi-square test of fit, and the TESTF= or TESTP= option to specify the expected frequencies or probabilities of the hypothesized distribution. If you estimated distribution parameters in order to determine the expected values, you should also specify the DF= option in order to properly adjust the degrees of freedom of the test.

Testing the fit of discrete distributions is further discussed and illustrated in this note.