20.3 Attribute Control Charts: Defectives (p, np) and Defects (c, u)
Key Takeaways
- Attribute control charts classify inspection data into two distinct statistical distributions: nonconforming units / defectives governed by the Binomial distribution (p and np charts) and nonconformities / defects per unit governed by the Poisson distribution (c and u charts).
- A p-chart tracks the fraction nonconforming and supports variable or constant sample sizes n, whereas the np-chart tracks the integer count of defective items and strictly mandates a CONSTANT subgroup sample size n.
- A c-chart monitors the total count of defects across a single constant inspection unit, whereas a u-chart monitors the defect rate per unit (u = c / n) and accommodates varying inspection sample sizes or continuous inspection areas.
- When calculating lower control limits for attribute charts, any negative mathematical result must be truncated to zero (LCL = max(0, calculated value)) because physical counts and proportions cannot be negative.
- When subgroup sample sizes vary on a p-chart, the baseline center line p_bar must be computed as total defectives divided by total inspected units (Sigma d_i / Sigma n_i), NOT as the unweighted arithmetic average of subgroup percentages.
Attribute control charts evaluate qualitative characteristics that are counted rather than measured on a continuous dimensional scale. Attribute data arises when products are classified into discrete binary states (e.g., conforming vs. nonconforming, pass vs. fail, functional vs. inoperable) or when surface blemishes, solder bridges, or packaging flaws are tallied across an inspection unit. While attribute charts require larger sample sizes than variable charts to achieve equivalent statistical power, they offer tremendous administrative advantages: inspection is often rapid, non-destructive, inexpensive (e.g., go/no-go plug gauges or automated vision sensors), and capable of summarizing complex multi-defect assemblies into a single metric.
1. Classification of Attribute Data: Defectives vs. Defects
The single most critical conceptual hurdle on the FE exam is distinguishing between nonconforming units (defectives) and nonconformities (defects):
Attribute Data Taxonomy
│
┌──────────────────────┴──────────────────────┐
▼ ▼
DEFECTIVE ITEM DEFECT COUNT
(Nonconforming Unit) (Nonconformity)
───────────────────── ─────────────────
• The ENTIRE unit is rejected • Specific flaw, scratch, or blemish
• Binary: Conforming vs Nonconforming • Multiple flaws can reside on 1 unit
• Statistical Model: BINOMIAL • Statistical Model: POISSON
• Sample Size: n items inspected • Sample Size: Inspection area / volume
│ │
┌────┴────┐ ┌────┴────┐
▼ ▼ ▼ ▼
p-Chart np-Chart c-Chart u-Chart
Fraction Count Count Rate
Defective Defective Defects Defects/Unit
(n varies (n CONSTANT) (Unit (Unit
or fixed) CONSTANT) varies)
Defectives (Nonconforming Units) — Binomial Distribution
An item is either conforming (acceptable) or nonconforming (defective). A smartphone either powers on or it does not; a sealed hydraulic fitting either leaks or holds pressure. Regardless of whether a part has 1 flaw or 10 flaws, it counts as exactly one defective item.
- Governing Distribution: Binomial distribution with parameters $n$ (sample size) and $p$ (probability of nonconformance).
- Applicable Charts: $p$-chart (fraction nonconforming) and $np$-chart (number of nonconforming items).
Defects (Nonconformities) — Poisson Distribution
A defect is a specific physical imperfection or departure from a quality standard. An automobile door panel may have two paint pinholes, one scratch, and one dent: that is four defects on a single unit. A circuit board may have five cold solder joints but still pass functional testing.
- Governing Distribution: Poisson distribution with parameter $\lambda$ (average count of independent, rare events per inspection area of opportunity).
- Applicable Charts: $c$-chart (count of defects per constant unit) and $u$-chart (defects per unit for variable inspection sizes).
| Classification | Characteristic | Statistical Model | Control Charts | Operational Examples |
|---|---|---|---|---|
| Defective (Nonconforming Item) | Unit is classified binary Pass / Fail | Binomial ($n, p$) | $p$-Chart (proportion)<br>$np$-Chart (count) | Cracked turbine blades, blown fuses, leaking syringes |
| Defect (Nonconformity) | Tally of flaws per inspection unit | Poisson ($\lambda$) | $c$-Chart (constant unit)<br>$u$-Chart (variable unit) | Solder voids per board, weave blemishes per $100\text{ m}^2$, paint scratches |
2. The $p$-Chart (Fraction Nonconforming)
The $p$-chart monitors the proportion (or fraction) of nonconforming items in a sample. It is the most versatile attribute chart because it accommodates both constant and variable subgroup sample sizes $n_i$.
Fundamental Formulas
For $m$ subgroups, where subgroup $i$ contains $n_i$ inspected items and $d_i$ nonconforming items:
- Fraction Nonconforming for Subgroup $i$:
- Center Line ($\bar{p}$): The overall weighted historical average fraction nonconforming:
CRITICAL EXAM TRAP: If sample sizes $n_i$ vary across subgroups, $\bar{p}$ must never be calculated as the simple arithmetic average of the subgroup proportions ($\frac{1}{m}\sum p_i$). Doing so treats small batches with equal weight to large batches, introducing mathematical bias!
Control Limits for Constant Sample Size $n$
Under the Binomial distribution, the variance of sample proportion $p$ is $\sigma_p^2 = \frac{p(1-p)}{n}$. Using historical $\bar{p}$:
Mandatory Truncation Rule: If the mathematical calculation yields $LCL_p < 0$, the Lower Control Limit is set to $LCL = 0$. A negative proportion of defectives is physically impossible!
Handling Variable Sample Sizes on a $p$-Chart
When subgroup size $n_i$ varies from batch to batch:
- Variable Control Limits (Exact Method): Calculate separate control limits for each individual subgroup $i$ based on its specific $n_i$: Notice: Larger sample sizes produce narrower control bands; smaller sample sizes produce wider control bands.
- Average Sample Size Method ($\bar{n}$): If individual sample sizes vary by no more than $\pm 25%$ from the average sample size $\bar{n} = \frac{1}{m}\sum n_i$, a single set of constant control limits may be computed using $\bar{n}$.
3. The $np$-Chart (Number of Nonconforming Items)
The $np$-chart monitors the raw count of defective items ($d_i$) rather than the fraction $p_i$.
The Mandatory Operational Rule for $np$-Charts
STRICT CONSTRAINT: The $np$-chart requires a strictly CONSTANT sample size $n$ across all subgroups ($n_1 = n_2 = \dots = n$). If sample size varies, the $np$-chart cannot be used!
Fundamental Formulas
For constant sample size $n$ and baseline fraction nonconforming $\bar{p}$:
- Center Line ($CL_{np}$):
- Control Limits:
Why Use an $np$-Chart over a $p$-Chart?
On factory production floors, line operators prefer the $np$-chart because it eliminates division. If $n = 100$ stamping parts are pulled, the operator simply counts the defective parts (e.g., 4 parts) and plots the integer 4 directly on the chart without calculating $4/100 = 0.04$.
4. The $c$-Chart (Defects per Constant Inspection Unit)
The $c$-chart monitors the count of nonconformities (defects) observed in a single, standardized inspection unit of fixed size.
The Mandatory Operational Rule for $c$-Charts
STRICT CONSTRAINT: The area of opportunity (inspection unit size) must be strictly CONSTANT across all samples (e.g., exactly 1 refrigerator, exactly $50\text{ m}^2$ of fabric, exactly 1 complex circuit board).
Fundamental Formulas
Under the Poisson distribution, the mean equals the variance ($\lambda = \sigma^2 = c$). Therefore, the standard deviation of defect count is $\sigma_c = \sqrt{c}$. For $m$ inspected units, where unit $i$ exhibits $c_i$ defects:
- Center Line ($\bar{c}$):
- Control Limits:
If $\bar{c} - 3\sqrt{\bar{c}} < 0$, truncate $LCL_c$ to 0.
5. The $u$-Chart (Defects per Unit for Variable Inspection Sizes)
When the inspection unit size varies from sample to sample (e.g., inspecting 5 aircraft wings on Monday, 3 on Tuesday; or inspecting continuous rolls of sheet steel where roll lengths vary), the $c$-chart is invalid. The engineer must use a $u$-chart, which monitors the average defect rate per standardized inspection unit.
Fundamental Formulas
For subgroup $i$ with $n_i$ inspection units and $c_i$ total defects:
- Defects per Unit for Subgroup $i$:
- Center Line ($\bar{u}$): The overall weighted defect rate:
- Control Limits for Subgroup $i$ (Variable Limits):
If sample size is constant ($n_i = n$), the control limits remain fixed across all subgroups.
6. Master Control Chart Selection Guide
The following decision logic guarantees selecting the correct chart on the FE exam:
Master Chart Selection Decision Tree
What type of data do you have?
│
┌──────────────────────┴──────────────────────┐
▼ ▼
VARIABLE (Continuous) ATTRIBUTE (Discrete)
(mm, kg, MPa, cP) (Good/Bad, Flaw Counts)
│ │
What is sample size n? What are you counting?
┌─────┼─────┐ ┌─────────────┴─────────────┐
▼ ▼ ▼ ▼ ▼
n = 1 2<=n<=9 n>=10 DEFECTIVES DEFECTS
│ │ │ (Items Rejected) (Flaw Counts)
I-MR X-R X-S │ │
Is n constant? Is area constant?
┌───┴───┐ ┌───┴───┐
▼ ▼ ▼ ▼
CONST VARIES CONST VARIES
│ │ │ │
np p c u
(or p) (or u)
| Quality Characteristic | Unit of Measurement | Sample Size ($n$) | Underlying Distribution | NCEES Chart |
|---|---|---|---|---|
| Continuous Dimension | Length, weight, torque, pressure | $n = 1$ | Normal ($n=1$) | $I-MR$ |
| Continuous Dimension | Dimensions, thickness, diameter | $2 \le n \le 9$ | Normal (Central Limit) | $\bar{X}$ & $R$ |
| Continuous Dimension | High-volume automated sensing | $n \ge 10$ | Normal | $\bar{X}$ & $S$ |
| Fraction Defective | Fraction nonconforming units | Variable or Constant | Binomial | $p$-Chart |
| Count of Defectives | Integer count of rejected parts | Strictly Constant | Binomial | $np$-Chart |
| Count of Defects | Flaws, scratches, blemishes | Strictly Constant | Poisson | $c$-Chart |
| Defect Rate per Unit | Flaws per $m^2$, voids per board | Variable or Constant | Poisson | $u$-Chart |
7. Step-by-Step Worked Engineering Calculations
Worked Example 20.3.1: $p$-Chart and $np$-Chart with Lower Limit Truncation
Problem Statement: An automated optical inspection (AOI) station evaluates surface-mount PCB assemblies for component misalignment. A quality engineer inspects $m = 20$ production lots, each consisting of a constant sample size of $n = 250$ boards. Across all 20 lots, a total of 150 defective boards are identified.
- Calculate the center line $\bar{p}$ for the $p$-chart.
- Compute the 3-sigma Upper and Lower Control Limits for the $p$-chart.
- Compute the Center Line and 3-sigma Control Limits if the data were plotted on an $np$-chart.
- If Lot 12 exhibits 18 defective boards, evaluate whether this lot represents an out-of-control condition on both charts.
Solution:
Step 1: Compute Center Line for $p$-Chart
- Total defective boards: $\sum d_i = 150$
- Total boards inspected: $\sum n_i = 20 \times 250 = 5,000$
Step 2: Calculate $p$-Chart Control Limits
- Standard error of sample proportion:
- 3-sigma margin: $3\sigma_p = 3(0.010789) = 0.032367 \approx 0.0324$
- Control Limits:
- Applying the Mandatory Truncation Rule: Because $LCL_p < 0$, set $LCL_p = 0.000$.
Step 3: Calculate $np$-Chart Limits Because sample size is constant ($n = 250$):
- Center Line: $CL_{np} = n\bar{p} = 250(0.030) = 7.50$ defectives
- Standard deviation: $\sigma_{np} = \sqrt{n\bar{p}(1 - \bar{p})} = \sqrt{250(0.030)(0.970)} = \sqrt{7.275} \approx 2.6972$
- 3-sigma margin: $3\sigma_{np} = 3(2.6972) = 8.0916$
- Control Limits:
Step 4: Evaluate Lot 12
- For Lot 12: $d_{12} = 18$ defectives.
- On the $np$-chart: $d_{12} = 18 > UCL_{np} (15.59)$. Out of control!
- On the $p$-chart: $p_{12} = \frac{18}{250} = 0.0720$. Since $p_{12} = 0.0720 > UCL_p (0.0624)$. Out of control!
- Conclusion: Both charts provide identical statistical conclusions. Lot 12 indicates a special-cause disturbance (e.g., feeder misalignment or solder paste stencil blockage) that must be investigated.
Worked Example 20.3.2: $c$-Chart vs. $u$-Chart with Variable Inspection Units
Problem Statement: An industrial coating facility inspects newly electroplated steel panels for surface pitting defects. Over five consecutive shifts, inspectors record the total number of pitting defects found across varying numbers of standard panels inspected:
| Shift ($i$) | Panels Inspected ($n_i$) | Total Defects Counted ($c_i$) |
|---|---|---|
| 1 | 10 | 18 |
| 2 | 15 | 24 |
| 3 | 8 | 20 |
| 4 | 20 | 32 |
| 5 | 12 | 16 |
- Explain why a $c$-chart is mathematically invalid for this operational scenario.
- Calculate the center line $\bar{u}$ for the appropriate $u$-chart.
- Compute the specific Upper and Lower Control Limits for Shift 3 ($n_3 = 8$ panels) and Shift 4 ($n_4 = 20$ panels).
- Evaluate whether Shift 3 ($c_3 = 20$ defects) represents an out-of-control condition.
Solution:
Step 1: Chart Justification The data records nonconformities (defects), which follow a Poisson model. However, the sample size varies from shift to shift ($n_i$ ranges from 8 to 20 panels). A $c$-chart strictly requires a constant area of opportunity ($n_i = \text{constant}$). Plotting raw counts when sample size varies would cause large batches to trigger false alarms simply due to higher inspection volume. Therefore, a $u$-chart (defects per unit) must be used.
Step 2: Calculate Center Line $\bar{u}$
- Total defects counted: $\sum c_i = 18 + 24 + 20 + 32 + 16 = 110$ defects
- Total panels inspected: $\sum n_i = 10 + 15 + 8 + 20 + 12 = 65$ panels
Step 3: Calculate Control Limits for Shifts 3 and 4 For Shift 3 ($n_3 = 8$ panels):
- Standard error: $\sigma_{u, 3} = \sqrt{\frac{\bar{u}}{n_3}} = \sqrt{\frac{1.6923}{8}} = \sqrt{0.21154} \approx 0.4599$
- Limits:
For Shift 4 ($n_4 = 20$ panels):
- Standard error: $\sigma_{u, 4} = \sqrt{\frac{\bar{u}}{n_4}} = \sqrt{\frac{1.6923}{20}} = \sqrt{0.08462} \approx 0.2909$
- Limits: (Notice: For $n = 20$, the control limits are significantly tighter than for $n = 8$).
Step 4: Evaluate Shift 3
- For Shift 3, the observed defect rate per panel is:
- Comparing to Shift 3 control limits:
- Conclusion: Shift 3 is in statistical control. Even though 20 defects appeared high in raw count, when standardized against the small sample size ($n = 8$), the rate of 2.500 defects/panel remains within 3-sigma random variation.
8. NCEES Reference Handbook Tips & Realistic Exam Traps
- Defect vs. Defective Trap: Always ask: Can an item have more than one of these flaws and still be one item? If yes, it is a defect ($c$ or $u$ chart). If the item is simply rejected as bad or accepted as good, it is a defective ($p$ or $np$ chart).
- Mandatory LCL Truncation: Whenever an attribute control chart formula generates a negative lower control limit, you must truncate it to zero ($LCL = 0$). NCEES exam questions frequently include the raw negative number as an attractive distractor!
- Weighted Average for $\bar{p}$ and $\bar{u}$: If an exam problem presents varying sample sizes, never take the simple average of the percentages. You must sum all defectives (or defects) and divide by the sum of all inspected units:
- When $n$ Varies, $np$ and $c$ are Banned: If subgroup sizes fluctuate, you cannot use an $np$-chart or a $c$-chart. You must select a $p$-chart (with variable limits or $\bar{n}$) or a $u$-chart.
A quality engineering team at an automotive stamping plant inspects newly formed body panels for surface blemishes (paint nibs, micro-dents, scratches). Because shift output fluctuates, inspectors examine varying numbers of panels each shift (ranging from 40 to 90 panels per shift) and log the total count of blemishes found. The lead engineer must construct a control chart to monitor the blemish rate per panel over time. Which control chart MUST be selected?
An electronics assembly facility inspects 20 production lots of printed circuit boards. Each lot consists of a constant sample size of n = 200 boards. Across all 20 lots, a total of 160 defective boards are identified. What are the Center Line (CL), Upper Control Limit (UCL), and Lower Control Limit (LCL) for the resulting p-chart?
A textile manufacturing plant inspects finished rolls of woven fabric for weave imperfections. Each inspection unit is standardized as a 100-square-meter section of cloth. Across 30 randomly sampled inspection units, quality auditors tally a total of 270 weave imperfections. What are the Upper Control Limit (UCL) and Lower Control Limit (LCL) for the resulting c-chart?