capability - Process capability indices

Syntax

S = capability(data,specs)

Description

S = capability(data,specs) estimates capability indices for measurements in data given the specifications in specs. data can be either a vector or a matrix of measurements. If data is a matrix, indices are computed for the columns. specs can be either a two-element vector of the form [L,U] containing lower and upper specification limits, or (if data is a matrix) a two-row matrix with the same number of columns as data. If there is no lower bound, use -Inf as the first element of specs. If there is no upper bound, use Inf as the second element of specs.

The output S is a structure with the following fields:

Indices are computed under the assumption that data values are independent samples from a normal population with constant mean and variance.

Indices divide a "specification width" (between specification limits) by a "process width" (between control limits). Higher ratios indicate processes with less measurements outside of specification.

Example

Simulate a sample from a process with a mean of 3 and a standard deviation of 0.005:

data = normrnd(3,0.005,100,1);

Compute capability indices if the process has an upper specification limit of 3.01 and a lower specification limit of 2.99:

S = capability(data,[2.99 3.01])
S = 
       mu: 3.0006
    sigma: 0.0047
        P: 0.9669
       Pl: 0.0116
       Pu: 0.0215
       Cp: 0.7156
      Cpl: 0.7567
      Cpu: 0.6744
      Cpk: 0.6744

Visualize the specification and process widths:

capaplot(data,[2.99 3.01]);
grid on

Reference

[1] Montgomery, D., Introduction to Statistical Quality Control, John Wiley & Sons, 1991, pp. 369–374.

See Also

capaplot, histfit

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS