capability
Process capability indices
Syntax
S = capability(data,specs)
Description
S = capability(data,specs)
estimates capability indices for measurements indata
given the specifications inspecs
.data
can be either a vector or a matrix of measurements. Ifdata
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 (ifdata
is a matrix) a two-row matrix with the same number of columns asdata
. If there is no lower bound, use-Inf
as the first element ofspecs
. If there is no upper bound, useInf
as the second element ofspecs
.
The outputS
is a structure with the following fields:
mu
— Sample meansigma
— Sample standard deviationP
— Estimated probability of being within limitsPl
— Estimated probability of being belowL
Pu
— Estimated probability of being aboveU
Cp
—(U-L)/(6*sigma)
Cpl
—(mu-L)./(3.*sigma)
Cpu
—(U-mu)./(3.*sigma)
Cpk
—min(Cpl,Cpu)
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 a process with fewer measurements outside of specification.
Examples
References
[1] Montgomery, D.Introduction to Statistical Quality Control. Hoboken, NJ: John Wiley & Sons, 1991, pp. 369–374.