Sub topic 10
u Charts: Defects per Unit
An u chart monitors the number of defects per unit when each unit can have zero, one, or several defects. A defect is a failure to meet one requirement. A defective unit is a unit with at least one defect. One unit can therefore contain several defects but counts as only one defective unit.
Assume you know the mean, range, and standard deviation, and understand basic process measurements. Basic probability and Python with NumPy are helpful for the example.
When to use a u chart
Use a u chart when:
- The output is count data.
- You count defects rather than defective units.
- The number of inspected units or opportunities changes between periods.
- One unit can contain more than one defect.
For example, a support team might count errors across completed cases. A case is the unit, and the number of errors per case is the defect count. If one week has 100 cases and another has 150, the chart must account for that difference.
The count per unit for period \(i\) is:
\[ ui = \frac{ci}{n_i} \]
Here, \(ci\) is the total defect count and \(ni\) is the number of units inspected.
The overall center line is weighted by the number of units:
\[ \bar{u} = \frac{\sum ci}{\sum ni} \]
The weighting matters. Taking the simple average of the period rates gives periods with small samples the same influence as periods with large samples.
Center line and control limits
For a Poisson-like defect count, the standard deviation of the rate in period \(i\) is:
\[ \sigma{ui} = \sqrt{\frac{\bar{u}}{n_i}} \]
The three-sigma limits are:
\[ UCLi = \bar{u} + 3\sqrt{\frac{\bar{u}}{ni}} \]
\[ LCLi = \max\left(0,\bar{u} - 3\sqrt{\frac{\bar{u}}{ni}}\right) \]
The limits change when \(n_i\) changes. A larger sample produces a more precise rate, so its limits are narrower. The lower limit cannot be negative because a defect rate cannot be less than zero.
| Symbol | Meaning |
|---|---|
| \(c_i\) | Defects counted in period \(i\) |
| \(n_i\) | Units inspected in period \(i\) |
| \(u_i\) | Defects per unit |
| \(\bar{u}\) | Weighted average defects per unit |
Worked calculation
The following code calculates a u chart with different sample sizes. It also floors the lower control limit at zero.
import numpy as np
defect_counts = np.array([12, 9, 15, 11, 8, 14, 10, 13])
units_inspected = np.array([20, 18, 25, 22, 16, 24, 20, 23])
u = defect_counts / units_inspected
u_bar = defect_counts.sum() / units_inspected.sum()
sigma = np.sqrt(u_bar / units_inspected)
ucl = u_bar + 3 * sigma
lcl = np.maximum(0.0, u_bar - 3 * sigma)
print("Rates:", u)
print("Center line:", u_bar)
print("Lower limits:", lcl)
print("Upper limits:", ucl)Interpret each period using its own limits. A point above its upper limit suggests a special cause, such as a changed procedure, unusual workload, or data-entry problem. A point below its lower limit can also be a signal, although the lower limit is often zero.
Assumptions and common errors
A u chart assumes that defect counts are reasonably modeled by a Poisson process. Defects should be counted consistently, and the units should represent comparable opportunities for defects. If units differ greatly in complexity, normalize the denominator using a meaningful opportunity measure.
If the observed variation is much larger than the Poisson model predicts, the data may be overdispersed. Investigate subgroups, changing conditions, or inconsistent counting before simply widening the limits.
Exercise
A period has 18 defects in 30 units, and the center line is 0.5 defects per unit. Is its rate above the center line?
Show answer
Yes. Its rate is 18 / 30 = 0.6 defects per unit, which is above 0.5. Whether it is a special-cause signal requires comparison with that period's control limits.