Home / Statistical Tools / Control Charts / np Chart / Math Details
Math Details¶
This page gives the exact formulas Quantum XL uses to build an np chart. Each equation lists what it computes and where it appears on the chart.
Notation¶
| Term | Description |
|---|---|
| \(n_i\) | size of subgroup \(i\) |
| \(d_i\) | number of defective items in subgroup \(i\) |
| \(\bar{p}\) | pooled proportion defective |
| \(\sigma_i\) | standard deviation of the count at subgroup \(i\) |
| \(k\) | sigma multiplier (number of standard deviations), default \(3\) |
| \(\sigma_Z\) | Laney overdispersion factor (diagnostic only on this chart) |
Center line¶
The pooled proportion \(\bar{p}\) is estimated over the baseline subgroups (or supplied as a known value), and the center line at each point is \(n_i\,\bar{p}\). When subgroup sizes vary, the center line moves from point to point.
Used by: the center line of the chart and the summary.
Plotted statistic¶
the raw count of defective items in subgroup \(i\).
Standard deviation¶
the binomial standard deviation of the count.
Control limits¶
The limits are floored at \(0\) and capped at the subgroup size \(n_i\), since the count lies in \([0, n_i]\).
If Force Straight Limits is enabled, a single assumed size replaces \(n_i\) in the center line and the standard deviation, producing a level center line and level limits (the pooled \(\bar{p}\) is still estimated from the real subgroup sizes).
Sigma zones¶
On the attribute charts and on Z-MR the one-sigma width is recovered from the limit spacing rather than recomputed, so the zones follow each point's limits exactly:
where \(\text{CL}\) is the center line and \(k\) the sigma multiplier. The zone boundaries are then placed at one and two of these units on each side of the center line:
| Zone | Region |
|---|---|
| Zone C | within \(\text{CL} \pm \sigma_1\) |
| Zone B | between \(\text{CL} \pm \sigma_1\) and \(\text{CL} \pm 2\sigma_1\) |
| Zone A | between \(\text{CL} \pm 2\sigma_1\) and the control limit |
Because \(\sigma_1\) comes from the upper half band and the lower boundaries mirror that same distance, a lower boundary can fall below a lower control limit that has been floored at \(0\), and can itself be negative. Z-MR always uses a multiplier of \(3\), so its zone lines are always at one and two standard deviations. If the center line or the upper limit is missing, or the multiplier is not positive, no zone boundaries are produced.
Full details, including the manual and disabled limit types: Control Limits and Zones.
Overdispersion diagnostic¶
The np chart reports the Laney overdispersion factor \(\sigma_Z\) as a diagnostic (not applied to the limits); a value well above \(1\) favors the Laney P' Chart. With the plotted count \(d_i\) as \(v_i\) and its center line \(n_i\,\bar{p}\) as \(\text{CL}\):
Each subgroup is standardized by its own ordinary sigma:
where \(v_i\) is the plotted statistic at subgroup \(i\), \(\text{CL}\) is the center line, and \(\sigma_i\) is the ordinary binomial or Poisson standard deviation. If \(\sigma_i \le 0\) the value is set to \(z_i = 0\).
The factor is the average moving range of the \(z_i\) (a window of two, so \(MR_i = \lvert z_i - z_{i-1}\rvert\)) divided by \(d_2\):
The engine uses the full-precision table value rather than a rounded one, so a hand check from the printed digits will differ in the sixth significant figure.
Any moving-range window that spans a missing subgroup is dropped rather than bridged, and \(\overline{MR}_z\) is the plain mean of the surviving ranges. When \(\sigma_Z\) cannot be computed it is taken to be \(1\) (no correction).
Full details: Laney Overdispersion (Sigma Z).
Shared Math Details used here¶
This chart uses shared formulas defined once in Shared Math Details.
| Shared concept | Used here for | Reference |
|---|---|---|
| Control limits and zones | the UCL/LCL and zone construction | Control Limits and Zones |
| Laney overdispersion (σ_Z) | the overdispersion diagnostic | Laney Overdispersion (Sigma Z) |
| Out-of-control tests | flagging out-of-control points | Out-of-Control tests |
See Also¶
References¶
- Montgomery, D. C. (2013). Introduction to Statistical Quality Control, 7th ed. Wiley.
- Wheeler, D. J., and Chambers, D. S. (1992). Understanding Statistical Process Control, 2nd ed. SPC Press.