Previous Page | Next Page

The CAPABILITY Procedure

Adding a Normal Curve to the Histogram

[See CAPHST1 in the SAS/QC Sample Library]This example is a continuation of the preceding example.

The following statements fit a normal distribution from the thickness measurements and superimpose the fitted density curve on the histogram:

ods graphics on;
proc capability data=Trans;
   spec lsl = 3.45 usl = 3.55;
   histogram / normal;
run;
ods graphics off;

The ODS GRAPHICS ON statement specified before the PROC CAPABILITY statement enables ODS Graphics, so the histogram is created using ODS Graphics instead of traditional graphics.

The NORMAL option summarizes the fitted distribution in the printed output shown in Figure 5.7.3, and it specifies that the normal curve be displayed on the histogram shown in Figure 5.7.4.

Output 5.7.3 Summary for Fitted Normal Distribution
Process Capability Analysis of Plating Thickness

The CAPABILITY Procedure
Variable: Thick (Plating Thickness (mils))

Specification Limits
Limit Percent
Lower (LSL) 3.450000 % < LSL 8.00000
Target   % Between 87.00000
Upper (USL) 3.550000 % > USL 5.00000

Process Capability Analysis of Plating Thickness

The CAPABILITY Procedure
Fitted Normal Distribution for Thick

Parameters for Normal Distribution
Parameter Symbol Estimate
Mean Mu 3.49533
Std Dev Sigma 0.032117

Goodness-of-Fit Tests for Normal Distribution
Test Statistic DF p Value
Kolmogorov-Smirnov D 0.05563823   Pr > D >0.150
Cramer-von Mises W-Sq 0.04307548   Pr > W-Sq >0.250
Anderson-Darling A-Sq 0.27840748   Pr > A-Sq >0.250
Chi-Square Chi-Sq 6.96953022 5 Pr > Chi-Sq 0.223

Quantiles for Normal Distribution
Percent Quantile
Observed Estimated
1.0 3.42950 3.42061
5.0 3.44300 3.44250
10.0 3.45750 3.45417
25.0 3.46950 3.47367
50.0 3.49600 3.49533
75.0 3.51650 3.51699
90.0 3.53550 3.53649
95.0 3.55300 3.54816
99.0 3.57200 3.57005

Output 5.7.4 Histogram Superimposed with Normal Curve
Histogram Superimposed with Normal Curve

The printed output includes the following:

For details, including formulas for the goodness-of-fit tests, see Printed Output. Note that the NOPRINT option in the PROC CAPABILITY statement suppresses only the printed output with summary statistics for the variable Thick. To suppress the printed output in Figure 5.7.3, specify the NOPRINT option enclosed in parentheses after the NORMAL option as in Customizing a Histogram.

The NORMAL option is one of many options that you can specify in the HISTOGRAM statement. See the section Syntax for a complete list of options or the section Dictionary of Options for detailed descriptions of options.

Previous Page | Next Page | Top of Page