PracticeVideosBlogFlashcards

6.1 Control Charts for Nonconforming Units: p and np Charts

Key Takeaways

  • Attribute control charts for nonconforming units evaluate items based on binary classification (conforming vs. nonconforming / pass vs. fail) governed by the Binomial probability distribution.

  • The p chart monitors the proportion or fraction of nonconforming units and is statistically valid for both constant and variable subgroup sample sizes (n_i).

  • The np chart monitors the count of nonconforming units and strictly requires a constant subgroup sample size (n) across all subgroups.

  • Three-sigma control limits are calculated from the process baseline average; if a calculated lower control limit is negative, it must be set to zero (LCL = 0) because a negative defect proportion is physically impossible.

  • When subgroup sample sizes vary by less than ±25% from the average sample size (n_bar), an average sample size control limit approximation can be applied, though individual exact limits must be evaluated for borderline points.

Last updated: September 2026

6.1 Control Charts for Nonconforming Units: p and np Charts

Introduction to Attribute Control Charts

In statistical process control (SPC), quality characteristics are divided into two fundamental data categories: variables data and attributes data. While variables data involve continuous, quantitative measurements along a continuous scale (such as shaft diameters in millimeters, tensile strength in megapascals, or flange thickness in inches), attributes data involve qualitative classifications based on discrete criteria. Attributes inspection answers binary questions: Does the part meet the blueprint requirement or not? Is the unit conforming or nonconforming? Does the thread gage engage or bind?

As an ASQ Certified Quality Technician (CQT), you will encounter attribute inspection daily when operating go/no-go plug gages, optical profile sensors, visual surface inspection stations, and functional electrical continuity testers. Attribute control charts provide an indispensable statistical mechanism for monitoring process stability, detecting assignable causes of variation, and verifying whether quality improvements have successfully shifted baseline defect rates.

Nonconforming Units vs. Nonconformities: The Foundational Distinction

A critical conceptual distinction tested extensively on the ASQ CQT exam is the difference between a nonconforming unit and a nonconformity:

  • Nonconforming Unit (Defective Part): An entire unit of product that fails to meet one or more specified requirements, causing the item to be classified as unacceptable. A part is either conforming (good) or nonconforming (bad)—a binary distinction. For example, a stamped bracket whose mounting hole is drilled undersize is categorized as one nonconforming unit.
  • Nonconformity (Defect): A specific instance of a flaw, blemish, or departure from a quality requirement. A single product unit may contain multiple nonconformities (for example, a single painted enclosure might exhibit two scratches, one paint run, and three pinholes).

Control charts designed for nonconforming units (the focus of this section) are the pp chart (proportion nonconforming) and the npnp chart (number nonconforming). Control charts designed for nonconformities are the cc chart and uu chart, detailed in Section 6.2.


The Binomial Distribution: The Statistical Engine

Control charts for nonconforming units are mathematically founded upon the Binomial probability distribution. The binomial model applies when a process satisfies four specific statistical conditions:

  1. The production or inspection process consists of a sequence of nn distinct trials (parts inspected).
  2. Each trial results in only one of two mutually exclusive outcomes: conforming or nonconforming (success or failure).
  3. The true probability of producing a nonconforming unit, denoted by pp, remains constant from trial to trial.
  4. All trials are statistically independent (the outcome of inspecting one part does not influence the outcome of inspecting any subsequent part).

Statistical Parameters of the Binomial Distribution

For a binomial distribution with sample size nn and fraction nonconforming pp:

  • Mean number of nonconforming units: μ=np\mu = np
  • Variance of nonconforming counts: σ2=np(1−p)\sigma^2 = np(1-p)
  • Standard deviation of nonconforming counts: σ=np(1−p)\sigma = \sqrt{np(1-p)}

When evaluating the proportion (fraction) nonconforming, defined as the number of nonconforming items xx divided by sample size nn (p=x/np = x/n):

  • Mean proportion nonconforming: μp=p\mu_p = p
  • Variance of proportion nonconforming: σp2=p(1−p)n\sigma_p^2 = \frac{p(1-p)}{n}
  • Standard error of proportion nonconforming: σp=p(1−p)n\sigma_p = \sqrt{\frac{p(1-p)}{n}}

Normal Approximation to the Binomial

Because control charts utilize symmetric three-sigma (±3σ\pm 3\sigma) limits derived from normal distribution theory, the binomial distribution must be sufficiently symmetric for the control limits to be statistically valid. By rule of thumb, the normal approximation is acceptable when:

np≥5andn(1−p)≥5np \ge 5 \quad \text{and} \quad n(1-p) \ge 5

When the defect rate pp is very small (such as p=0.005p = 0.005 in modern automated assembly), the subgroup sample size nn must be substantially larger (e.g., n≥1,000n \ge 1,000) to satisfy this condition and prevent severe limit distortion.


The pp Chart: Proportion Nonconforming

The pp chart tracks the proportion (or percentage) of nonconforming units within a subgroup sample. The calculated subgroup proportion is:

pi=npini=Number of nonconforming units in subgroup iTotal number of units inspected in subgroup ip_i = \frac{np_i}{n_i} = \frac{\text{Number of nonconforming units in subgroup } i}{\text{Total number of units inspected in subgroup } i}

Primary Advantages of the pp Chart

  • Flexibility with Sample Size: The pp chart can be utilized whether the subgroup sample size is constant across all inspection periods or varies from subgroup to subgroup (such as 100% sorting of daily production lots of fluctuating quantities).
  • Normalized Metric: Because it reports a decimal fraction or percentage, performance can be directly compared across different production lines, work shifts, or facility divisions regardless of lot size differences.

Centerline Calculation

To establish baseline control limits, a technician typically collects preliminary data across kk rational subgroups (conventionally k≥20k \ge 20 to 2525 subgroups). The centerline of the pp chart, denoted as pˉ\bar{p}, represents the weighted average fraction nonconforming:

pˉ=∑i=1knpi∑i=1kni=Total nonconforming units across all subgroupsTotal units inspected across all subgroups\bar{p} = \frac{\sum_{i=1}^k np_i}{\sum_{i=1}^k n_i} = \frac{\text{Total nonconforming units across all subgroups}}{\text{Total units inspected across all subgroups}}

Caution

Common Exam Trap: Never calculate pˉ\bar{p} by taking the simple arithmetic average of individual pip_i values if the subgroup sample sizes nin_i vary! You must calculate the weighted average by dividing total rejected parts by total inspected parts.

Control Limit Formulas for Constant Sample Size (nn)

When all subgroups contain an identical number of units nn, the standard error σp\sigma_p is constant across all subgroups:

Standard Error: σp=pˉ(1−pˉ)n\text{Standard Error: } \sigma_p = \sqrt{\frac{\bar{p}(1-\bar{p})}{n}} Upper Control Limit (UCL): UCLp=pˉ+3pˉ(1−pˉ)n\text{Upper Control Limit (UCL): } UCL_p = \bar{p} + 3\sqrt{\frac{\bar{p}(1-\bar{p})}{n}} Lower Control Limit (LCL): LCLp=pˉ−3pˉ(1−pˉ)n\text{Lower Control Limit (LCL): } LCL_p = \bar{p} - 3\sqrt{\frac{\bar{p}(1-\bar{p})}{n}}

The Zero Truncation Rule for LCL

Because a proportion cannot physically be less than zero, if the mathematical calculation yields a negative value for the lower control limit (LCLp<0LCL_p < 0), the technician must set the lower control limit to zero:

If LCLp<0  ⟹  LCLp=0\text{If } LCL_p < 0 \implies LCL_p = 0

On an operational control chart, when LCL=0LCL = 0, a subgroup plotting at zero nonconforming units indicates perfect performance, not an out-of-control condition. However, it also means the chart cannot detect statistically significant process improvements at the lower boundary unless subgroup sample sizes are enlarged.

Handling Variable Subgroup Sample Sizes (nin_i)

In real-world inspection, subgroup sizes frequently fluctuate due to variable daily output, batch sizes, or 100% receiving inspection lots. When nin_i changes from subgroup to subgroup, the standard error changes inversely with ni\sqrt{n_i}. Quality technicians use three distinct methods to handle variable sample sizes:

  1. Individual Exact Control Limits Method (Standard): Exact control limits are calculated individually for each subgroup based on its specific sample size nin_i:

    UCLpi=pˉ+3pˉ(1−pˉ)ni,LCLpi=max⁡(0,pˉ−3pˉ(1−pˉ)ni)UCL_{p_i} = \bar{p} + 3\sqrt{\frac{\bar{p}(1-\bar{p})}{n_i}}, \qquad LCL_{p_i} = \max\left(0, \bar{p} - 3\sqrt{\frac{\bar{p}(1-\bar{p})}{n_i}}\right)
    • When nin_i is larger than average, the control limits narrow (tighten).
    • When nin_i is smaller than average, the control limits widen (expand).
    • Visual Appearance: The control limits appear stepped or jagged across the chart.
  2. Average Sample Size Method (±25%\pm 25\% Rule): To avoid drawing jagged limits, if individual subgroup sample sizes nin_i do not vary by more than ±25%\pm 25\% from the average sample size nˉ\bar{n} (where nˉ=∑nik\bar{n} = \frac{\sum n_i}{k}), a single set of constant control limits may be established using nˉ\bar{n}:

    UCLp=pˉ+3pˉ(1−pˉ)nˉ,LCLp=max⁡(0,pˉ−3pˉ(1−pˉ)nˉ)UCL_p = \bar{p} + 3\sqrt{\frac{\bar{p}(1-\bar{p})}{\bar{n}}}, \qquad LCL_p = \max\left(0, \bar{p} - 3\sqrt{\frac{\bar{p}(1-\bar{p})}{\bar{n}}}\right)

    Important Operational Protocol: If any subgroup proportion plots near the average limit line (borderline points), the technician must calculate the exact individual control limit for that specific subgroup to verify whether it is truly in or out of control.

  3. Standardized pp Chart (ZZ Chart): Each subgroup proportion is converted into a standardized standard normal deviate (ZZ-score):

    Zi=pi−pˉσpi=pi−pˉpˉ(1−pˉ)niZ_i = \frac{p_i - \bar{p}}{\sigma_{p_i}} = \frac{p_i - \bar{p}}{\sqrt{\frac{\bar{p}(1-\bar{p})}{n_i}}}

    The standardized chart plots ZiZ_i with a constant Centerline CL=0CL = 0, an Upper Control Limit UCL=+3UCL = +3, and a Lower Control Limit LCL=−3LCL = -3.


The npnp Chart: Number of Nonconforming Units

The npnp chart tracks the actual count (integer number) of nonconforming units within each subgroup, rather than a calculated proportion.

The Strict Requirement of the npnp Chart

Important

The Cardinal Rule of the npnp Chart: The subgroup sample size nn MUST BE CONSTANT across all subgroups without exception. If the sample size changes by even a single part between subgroups, the npnp chart is mathematically invalid, because the underlying binomial parameters change and raw counts become incomparable.

Why Shop Floors Prefer the npnp Chart

  • Operator Ease: Shop-floor technicians and machine operators do not need to perform division or handle decimal fractions. If an inspector checks 200 stamped brackets and finds 8 defective parts, they directly plot the number 8.
  • Reduced Arithmetic Errors: Eliminating intermediate division reduces calculation mistakes during manual plotting.

Centerline and Control Limits for the npnp Chart

Given kk subgroups of constant sample size nn:

  • Centerline: CL=npˉ=∑i=1knpikCL = n\bar{p} = \frac{\sum_{i=1}^k np_i}{k}
  • Standard Deviation: σnp=npˉ(1−pˉ)\sigma_{np} = \sqrt{n\bar{p}(1-\bar{p})}
  • Upper Control Limit: UCLnp=npˉ+3npˉ(1−pˉ)UCL_{np} = n\bar{p} + 3\sqrt{n\bar{p}(1-\bar{p})}
  • Lower Control Limit: LCLnp=npˉ−3npˉ(1−pˉ)LCL_{np} = n\bar{p} - 3\sqrt{n\bar{p}(1-\bar{p})} (If LCLnp<0  ⟹  LCLnp=0LCL_{np} < 0 \implies LCL_{np} = 0)

Notice the direct mathematical bridge between the two charts:

UCLnp=n×UCLp,LCLnp=n×LCLp,CLnp=n×CLpUCL_{np} = n \times UCL_p, \qquad LCL_{np} = n \times LCL_p, \qquad CL_{np} = n \times CL_p

Comparison: pp Chart vs. npnp Chart

| Feature | pp Chart | npnp Chart | |---|---|---|| | Quality Characteristic Monitored | Proportion (fraction/percent) of nonconforming units | Absolute count (number) of nonconforming units | | Subgroup Sample Size (nn) | Constant OR Variable | Strictly Constant | | Underlying Distribution | Binomial distribution | Binomial distribution | | Centerline (CLCL) | pˉ=∑np∑n\bar{p} = \frac{\sum np}{\sum n} | npˉ=∑npkn\bar{p} = \frac{\sum np}{k} | | Standard Deviation (σ\sigma) | σp=pˉ(1−pˉ)ni\sigma_p = \sqrt{\frac{\bar{p}(1-\bar{p})}{n_i}} | σnp=npˉ(1−pˉ)\sigma_{np} = \sqrt{n\bar{p}(1-\bar{p})} | | Upper Control Limit (UCLUCL) | pˉ+3pˉ(1−pˉ)ni\bar{p} + 3\sqrt{\frac{\bar{p}(1-\bar{p})}{n_i}} | npˉ+3npˉ(1−pˉ)n\bar{p} + 3\sqrt{n\bar{p}(1-\bar{p})} | | Lower Control Limit (LCLLCL) | pˉ−3pˉ(1−pˉ)ni\bar{p} - 3\sqrt{\frac{\bar{p}(1-\bar{p})}{n_i}} (truncate if <0< 0) | npˉ−3npˉ(1−pˉ)n\bar{p} - 3\sqrt{n\bar{p}(1-\bar{p})} (truncate if <0< 0) | | Shop-Floor Practicality | Requires division; preferred by engineers and managers for cross-lot comparison | No division required; preferred by shop-floor operators for direct tally plotting |


Step-by-Step Worked Numerical Examples

Worked Example 1: Establishing pp Chart and npnp Chart Limits with Constant nn

Scenario: A quality technician at a precision stamping plant monitors an automated progressive stamping press forming brass terminals. Every hour, a random sample of n=400n = 400 terminals is inspected using an optical vision system. Over 25 consecutive production hours (k=25k = 25), a total of 240 nonconforming terminals are identified (∑np=240\sum np = 240). Total terminals inspected =25×400=10,000= 25 \times 400 = 10,000.

Step A: Calculate pp Chart Parameters

  1. Centerline (pˉ\bar{p}): pˉ=∑np∑n=24010,000=0.0240(2.40%))\bar{p} = \frac{\sum np}{\sum n} = \frac{240}{10,000} = 0.0240 \quad (2.40\%))
  2. Standard Error (σp\sigma_p): σp=pˉ(1−pˉ)n=0.0240×(1−0.0240)400=0.0240×0.9760400=0.023424400=0.00005856≈0.007652\sigma_p = \sqrt{\frac{\bar{p}(1-\bar{p})}{n}} = \sqrt{\frac{0.0240 \times (1 - 0.0240)}{400}} = \sqrt{\frac{0.0240 \times 0.9760}{400}} = \sqrt{\frac{0.023424}{400}} = \sqrt{0.00005856} \approx 0.007652
  3. Three-Sigma Spread (3σp3\sigma_p): 3σp=3×0.00765245=0.022957≈0.02303\sigma_p = 3 \times 0.00765245 = 0.022957 \approx 0.0230
  4. Control Limits: UCLp=pˉ+3σp=0.0240+0.02296=0.04696≈0.0470(4.70%))UCL_p = \bar{p} + 3\sigma_p = 0.0240 + 0.02296 = 0.04696 \approx 0.0470 \quad (4.70\%)) LCLp=pˉ−3σp=0.0240−0.02296=0.00104≈0.0010(0.10%))LCL_p = \bar{p} - 3\sigma_p = 0.0240 - 0.02296 = 0.00104 \approx 0.0010 \quad (0.10\%))

Step B: Calculate npnp Chart Parameters for the Same Process

  1. Centerline (CLnpCL_{np}): CLnp=npˉ=400×0.0240=9.60 nonconforming terminalsCL_{np} = n\bar{p} = 400 \times 0.0240 = 9.60 \text{ nonconforming terminals}
  2. Standard Deviation (σnp\sigma_{np}): σnp=npˉ(1−pˉ)=400×0.0240×0.9760=9.3696≈3.0610\sigma_{np} = \sqrt{n\bar{p}(1-\bar{p})} = \sqrt{400 \times 0.0240 \times 0.9760} = \sqrt{9.3696} \approx 3.0610
  3. Three-Sigma Spread (3σnp3\sigma_{np}): 3σnp=3×3.06098=9.1829≈9.183\sigma_{np} = 3 \times 3.06098 = 9.1829 \approx 9.18
  4. Control Limits: UCLnp=npˉ+3σnp=9.60+9.183=18.783≈18.78 nonconforming terminalsUCL_{np} = n\bar{p} + 3\sigma_{np} = 9.60 + 9.183 = 18.783 \approx 18.78 \text{ nonconforming terminals} LCLnp=npˉ−3σnp=9.60−9.183=0.417≈0.42 nonconforming terminalsLCL_{np} = n\bar{p} - 3\sigma_{np} = 9.60 - 9.183 = 0.417 \approx 0.42 \text{ nonconforming terminals}

(Note: 400×UCLp=400×0.04696=18.78400 \times UCL_p = 400 \times 0.04696 = 18.78 terminals, verifying exact equivalence).


Worked Example 2: Variable Subgroup Size pp Chart and Truncated Lower Limit

Scenario: A medical device cleanroom packages sterile catheter sets. Production lot sizes vary daily. The baseline average nonconforming fraction is established as pˉ=0.0120\bar{p} = 0.0120 (1.20%). The technician must calculate individual control limits for two different shifts:

  • Shift 1: Sample size n1=200n_1 = 200 units.
  • Shift 2: Sample size n2=800n_2 = 800 units.

Calculations for Shift 1 (n1=200n_1 = 200):

σp1=0.0120×0.9880200=0.011856200=0.00005928≈0.007699\sigma_{p1} = \sqrt{\frac{0.0120 \times 0.9880}{200}} = \sqrt{\frac{0.011856}{200}} = \sqrt{0.00005928} \approx 0.007699 3σp1=3×0.007699=0.023103\sigma_{p1} = 3 \times 0.007699 = 0.02310 UCLp1=0.0120+0.02310=0.03510(3.51%))UCL_{p1} = 0.0120 + 0.02310 = 0.03510 \quad (3.51\%)) LCLp1=0.0120−0.02310=−0.01110LCL_{p1} = 0.0120 - 0.02310 = -0.01110

Rule Application: Since calculated LCLp1<0LCL_{p1} < 0, set LCLp1=0LCL_{p1} = 0.

Calculations for Shift 2 (n2=800n_2 = 800):

σp2=0.0120×0.9880800=0.011856800=0.00001482≈0.003850\sigma_{p2} = \sqrt{\frac{0.0120 \times 0.9880}{800}} = \sqrt{\frac{0.011856}{800}} = \sqrt{0.00001482} \approx 0.003850 3σp2=3×0.003850=0.011553\sigma_{p2} = 3 \times 0.003850 = 0.01155 UCLp2=0.0120+0.01155=0.02355(2.36%))UCL_{p2} = 0.0120 + 0.01155 = 0.02355 \quad (2.36\%)) LCLp2=0.0120−0.01155=+0.00045(0.045%))LCL_{p2} = 0.0120 - 0.01155 = +0.00045 \quad (0.045\%))

Technical Insight: Notice that for the larger sample (n=800n = 800), the upper limit narrowed from 3.51% down to 2.36%, and the lower limit became a positive number (0.045%0.045\%), making it possible to detect a statistically significant process improvement if zero nonconforming parts are observed.


Technician Inspection Scenarios & Common Exam Traps

Real-World Shop Scenario: Machining Bushings on Multi-Spindle Lathes

A technician oversees an automated cell turning hardened bronze bushings. The quality plan requires checking 150 bushings every two hours using a go/no-go plug gage for bore diameter. If an operator mistakenly records 140 parts on one shift and 160 on the next, an npnp chart will generate false alarms or mask true shifts because the count is unadjusted for lot size. The technician must either strictly enforce the constant sample size of 150 or convert the charting system to a pp chart.

Common Exam Traps for CQT Candidates

  • Exam Trap 1: Attempting an npnp Chart with Variable Sample Sizes: Any exam question describing changing subgroup quantities (e.g., nn varies between 100 and 150) that suggests an npnp chart is presenting an invalid distracter. Variable sizes require a pp chart.
  • Exam Trap 2: Simple Averaging of Proportions: If given subgroups with different sample sizes, never sum the pp values and divide by kk. Always compute pˉ=Total RejectsTotal Inspected\bar{p} = \frac{\text{Total Rejects}}{\text{Total Inspected}}.
  • Exam Trap 3: Reporting a Negative LCL: Never leave a lower control limit as a negative number on the ASQ exam. A negative fraction nonconforming is physically impossible; it must always be rounded up to zero (LCL=0LCL = 0).
  • Exam Trap 4: Confusing pp with uu: If the question describes counting scratches, pinholes, or surface cracks, it is asking about defects (nonconformities), which mandate a cc or uu chart—not a pp chart.
Test Your Knowledge

A quality technician is establishing a control chart for an automated sheet metal stamping process. Inspection subgroups are collected at the end of each hour, but because line speed fluctuates, the hourly subgroup size varies between 180 and 320 parts. Each inspected part is checked with a go/no-go attribute gage and categorized as either conforming or nonconforming. Which control chart MUST be selected, and how should the control limits be established?

A

A p chart must be used, and individual control limits should be calculated for each subgroup based on its specific sample size ni (or average sample size if within ±25%).

B

An np chart must be used, setting the sample size parameter to the minimum observed subgroup size of 180 parts.

C

A c chart must be used, because attribute go/no-go gaging always follows the Poisson distribution.

D

An X-bar and R chart must be used, because variable subgroup sizes cannot be evaluated on attribute control charts.

Test Your Knowledge

Over 20 shifts, a machine shop inspects a constant sample of n = 500 machined pins per shift for plating coverage. A total of 450 nonconforming pins are identified across all 20 shifts (sum of np = 450). What are the centerline (CL), upper control limit (UCL), and lower control limit (LCL) for an np chart monitoring this process?

A

Centerline = 0.045 pins, UCL = 0.0728 pins, LCL = 0.0172 pins

B

Centerline = 45.0 pins, UCL = 63.85 pins, LCL = 26.15 pins

C

Centerline = 22.5 pins, UCL = 36.41 pins, LCL = 8.59 pins

D

Centerline = 22.5 pins, UCL = 49.50 pins, LCL = 0.00 pins

Test Your Knowledge

A quality technician calculates trial control limits for a p chart where the baseline average fraction nonconforming is p_bar = 0.015 and the constant subgroup size is n = 50. The mathematical calculation for the lower control limit yields: LCL = 0.015 - 3 * sqrt[(0.015 * 0.985) / 50] = 0.015 - 0.0516 = -0.0366. How must the technician establish the official LCL on the control chart, and what is the underlying statistical reasoning?

A

Set LCL = -0.0366, because mathematical control limits must never be altered or truncated on an official ASQ control chart.

B

Set LCL = 0, because a negative fraction nonconforming is physically impossible, and the lower boundary of the binomial distribution is zero.

C

Increase the sample size to n = 1,000 to force the calculated LCL to equal exactly 0.000.

D

Discard the p chart and replace it with a u chart, because negative limits indicate that the Poisson distribution was the correct underlying model.

Sections you finish are checked off in the contents.