- KVKV-X
Calculating Cpk (Process Capability Index)
Overview
Cpk (process capability index) is a typical metric used in quality control and SPC (statistical process control). It evaluates how stably the measurement data obtained in a manufacturing process falls within the specification limits. Because it accounts for both offset of the mean and variation, it is widely used in process capability analysis and quality improvement activities. This page introduces a Cpk calculation function for the KEYENCE KV series and KV-X series.
- Difference from Cp:
Cp shows the ideal capability assuming the data mean is at the "center of the specification." Cpk, on the other hand, accurately reflects the risk (how likely out-of-spec results are) when the mean is offset from the center.
Calculation and Interpretation
Calculation
Cpk is a metric that considers how much the process variation (σ) and mean (μ) deviate from the center of the specification.
Calculate the standard deviation (σ)
\[
\sigma = \sqrt{\frac{1}{n}\sum_{i=1}^{n}(x_{i}-\bar{x})^{2}}
\]
Then use the upper specification limit (USL) and lower specification limit (LSL) to calculate the process capability index Cp
\[
Cp = \frac{USL-LSL}{6\sigma}
\]
Calculate the one-sided Cpu and Cpl
\[
Cpu = \frac{USL - \bar{x}}{3\sigma}
\]
\[
Cpl = \frac{\bar{x}-LSL}{3\sigma}
\]
Calculate Cpk taking the offset into account (the smaller of Cpu and Cpl)
\begin{align}
K &= \frac{|(USL-LSL)/2-\bar{x}|}{(USL-LSL)/2} \\
Cpk &= (1-K)Cp
\end{align}
Interpretation
If the Cpk value is 1.00 or more, the process capability is judged to be sufficient.
| Cpk value | Interpretation | Description |
|---|---|---|
| 1.33 or more | Good | Process capability is sufficient |
| 1.00~1.33 | Somewhat marginal | Room for improvement |
| Less than 1.00 | Poor | Many out-of-spec results may occur |
| Index | Characteristics |
|---|---|
| CP | Does not consider whether the center is offset |
| Cpk | Also considers center offset (more practical) |
Symbols

- Data
- Target data
- Index
- Start position
- Size
- Size
- USL
- Upper limit setting
- LSL
- Lower limit setting
- Cpk
- Process capability index
- Cp
- Specification width (specification width (does not consider offset from the center)
- CpU
- Upper specification limit
- CpL
- Lower specification limit
- AVE
- Mean
- SD
- Standard deviation
- Bias
- Offset

- Data
- Target data
- Index
- Start position
- Size
- Size
- USL
- Upper limit setting
- LSL
- Lower limit setting
- Cpk
- Process capability index
- Cp
- Specification width (specification width (does not consider offset from the center)
- CpU
- Upper specification limit
- CpL
- Lower specification limit
- AVE
- Average
- SD
- Standard deviation
- Bias
- Offset
Download
* Operation on the KV-X was verified with the simulator
