PracticeVideosBlogFlashcards

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.

Last updated: September 2026

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 nn (sample size) and pp (probability of nonconformance).
  • Applicable Charts: pp-chart (fraction nonconforming) and npnp-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: cc-chart (count of defects per constant unit) and uu-chart (defects per unit for variable inspection sizes).
ClassificationCharacteristicStatistical ModelControl ChartsOperational Examples
Defective (Nonconforming Item)Unit is classified binary Pass / FailBinomial (n,pn, p)pp-Chart (proportion); npnp-Chart (count)Cracked turbine blades, blown fuses, leaking syringes
Defect (Nonconformity)Tally of flaws per inspection unitPoisson (λ\lambda)cc-Chart (constant unit); uu-Chart (variable unit)Solder voids per board, weave blemishes per 100 m2100\text{ m}^2, paint scratches

2. The pp-Chart (Fraction Nonconforming)

The pp-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 nin_i.

Fundamental Formulas

For mm subgroups, where subgroup ii contains nin_i inspected items and did_i nonconforming items:

  • Fraction Nonconforming for Subgroup ii: pi=dinip_i = \frac{d_i}{n_i}
  • Center Line (pˉ\bar{p}): The overall weighted historical average fraction nonconforming: pˉ=∑i=1mdi∑i=1mni=Total Defective Items InspectedTotal Items Inspected\bar{p} = \frac{\sum_{i=1}^m d_i}{\sum_{i=1}^m n_i} = \frac{\text{Total Defective Items Inspected}}{\text{Total Items Inspected}}

CRITICAL EXAM TRAP: If sample sizes nin_i vary across subgroups, pˉ\bar{p} must never be calculated as the simple arithmetic average of the subgroup proportions (1m∑pi\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 nn

Under the Binomial distribution, the variance of sample proportion pp is σp2=p(1−p)n\sigma_p^2 = \frac{p(1-p)}{n}. Using historical pˉ\bar{p}:

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

Mandatory Truncation Rule: If the mathematical calculation yields LCLp<0LCL_p < 0, the Lower Control Limit is set to LCL=0LCL = 0. A negative proportion of defectives is physically impossible!

Handling Variable Sample Sizes on a pp-Chart

When subgroup size nin_i varies from batch to batch:

  1. Variable Control Limits (Exact Method): Calculate separate control limits for each individual subgroup ii based on its specific nin_i: UCLi=pˉ+3pˉ(1−pˉ)ni,LCLi=max⁡(0,  pˉ−3pˉ(1−pˉ)ni)UCL_i = \bar{p} + 3 \sqrt{\frac{\bar{p}(1 - \bar{p})}{n_i}}, \qquad LCL_i = \max\left(0, \; \bar{p} - 3 \sqrt{\frac{\bar{p}(1 - \bar{p})}{n_i}}\right) Notice: Larger sample sizes produce narrower control bands; smaller sample sizes produce wider control bands.
  2. Average Sample Size Method (nˉ\bar{n}): If individual sample sizes vary by no more than ±25%\pm 25\% from the average sample size nˉ=1m∑ni\bar{n} = \frac{1}{m}\sum n_i, a single set of constant control limits may be computed using nˉ\bar{n}.

3. The npnp-Chart (Number of Nonconforming Items)

The npnp-chart monitors the raw count of defective items (did_i) rather than the fraction pip_i.

The Mandatory Operational Rule for npnp-Charts

STRICT CONSTRAINT: The npnp-chart requires a strictly CONSTANT sample size nn across all subgroups (n1=n2=⋯=nn_1 = n_2 = \dots = n). If sample size varies, the npnp-chart cannot be used!

Fundamental Formulas

For constant sample size nn and baseline fraction nonconforming pˉ\bar{p}:

  • Center Line (CLnpCL_{np}): CLnp=npˉCL_{np} = n\bar{p}
  • Control Limits: UCLnp=npˉ+3npˉ(1−pˉ)UCL_{np} = n\bar{p} + 3 \sqrt{n\bar{p}(1 - \bar{p})} LCLnp=max⁡(0,  npˉ−3npˉ(1−pˉ))LCL_{np} = \max\left(0, \; n\bar{p} - 3 \sqrt{n\bar{p}(1 - \bar{p})}\right)

Why Use an npnp-Chart over a pp-Chart?

On factory production floors, line operators prefer the npnp-chart because it eliminates division. If n=100n = 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.044/100 = 0.04.


4. The cc-Chart (Defects per Constant Inspection Unit)

The cc-chart monitors the count of nonconformities (defects) observed in a single, standardized inspection unit of fixed size.

The Mandatory Operational Rule for cc-Charts

STRICT CONSTRAINT: The area of opportunity (inspection unit size) must be strictly CONSTANT across all samples (e.g., exactly 1 refrigerator, exactly 50 m250\text{ m}^2 of fabric, exactly 1 complex circuit board).

Fundamental Formulas

Under the Poisson distribution, the mean equals the variance (λ=σ2=c\lambda = \sigma^2 = c). Therefore, the standard deviation of defect count is σc=c\sigma_c = \sqrt{c}. For mm inspected units, where unit ii exhibits cic_i defects:

  • Center Line (cˉ\bar{c}): CLc=cˉ=1m∑i=1mciCL_c = \bar{c} = \frac{1}{m} \sum_{i=1}^m c_i
  • Control Limits: UCLc=cˉ+3cˉUCL_c = \bar{c} + 3 \sqrt{\bar{c}} LCLc=max⁡(0,  cˉ−3cˉ)LCL_c = \max\left(0, \; \bar{c} - 3 \sqrt{\bar{c}}\right)

If cˉ−3cˉ<0\bar{c} - 3\sqrt{\bar{c}} < 0, truncate LCLcLCL_c to 0.


5. The uu-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 cc-chart is invalid. The engineer must use a uu-chart, which monitors the average defect rate per standardized inspection unit.

Fundamental Formulas

For subgroup ii with nin_i inspection units and cic_i total defects:

  • Defects per Unit for Subgroup ii: ui=ciniu_i = \frac{c_i}{n_i}
  • Center Line (uˉ\bar{u}): The overall weighted defect rate: uˉ=∑i=1mci∑i=1mni=Total Defects CountedTotal Inspection Units Examined\bar{u} = \frac{\sum_{i=1}^m c_i}{\sum_{i=1}^m n_i} = \frac{\text{Total Defects Counted}}{\text{Total Inspection Units Examined}}
  • Control Limits for Subgroup ii (Variable Limits): CLu=uˉCL_u = \bar{u} UCLu,i=uˉ+3uˉniUCL_{u, i} = \bar{u} + 3 \sqrt{\frac{\bar{u}}{n_i}} LCLu,i=max⁡(0,  uˉ−3uˉni)LCL_{u, i} = \max\left(0, \; \bar{u} - 3 \sqrt{\frac{\bar{u}}{n_i}}\right)

If sample size is constant (ni=nn_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 CharacteristicUnit of MeasurementSample Size (nn)Underlying DistributionNCEES Chart
Continuous DimensionLength, weight, torque, pressuren=1n = 1Normal (n=1n=1)I−MRI-MR
Continuous DimensionDimensions, thickness, diameter2≤n≤92 \le n \le 9Normal (Central Limit)Xˉ\bar{X} & RR
Continuous DimensionHigh-volume automated sensingn≥10n \ge 10NormalXˉ\bar{X} & SS
Fraction DefectiveFraction nonconforming unitsVariable or ConstantBinomialpp-Chart
Count of DefectivesInteger count of rejected partsStrictly ConstantBinomialnpnp-Chart
Count of DefectsFlaws, scratches, blemishesStrictly ConstantPoissoncc-Chart
Defect Rate per UnitFlaws per m2m^2, voids per boardVariable or ConstantPoissonuu-Chart

7. Step-by-Step Worked Engineering Calculations

Worked Example 20.3.1: pp-Chart and npnp-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=20m = 20 production lots, each consisting of a constant sample size of n=250n = 250 boards. Across all 20 lots, a total of 150 defective boards are identified.

  1. Calculate the center line pˉ\bar{p} for the pp-chart.
  2. Compute the 3-sigma Upper and Lower Control Limits for the pp-chart.
  3. Compute the Center Line and 3-sigma Control Limits if the data were plotted on an npnp-chart.
  4. 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 pp-Chart

  • Total defective boards: ∑di=150\sum d_i = 150
  • Total boards inspected: ∑ni=20×250=5,000\sum n_i = 20 \times 250 = 5,000
pˉ=1505,000=0.030(3.0% nonconforming)\bar{p} = \frac{150}{5,000} = 0.030 \quad (3.0\% \text{ nonconforming})

Step 2: Calculate pp-Chart Control Limits

  • Standard error of sample proportion: σp=pˉ(1−pˉ)n=0.030(1−0.030)250=0.030(0.970)250=0.0291250=0.0001164≈0.010789\sigma_p = \sqrt{\frac{\bar{p}(1 - \bar{p})}{n}} = \sqrt{\frac{0.030(1 - 0.030)}{250}} = \sqrt{\frac{0.030(0.970)}{250}} = \sqrt{\frac{0.0291}{250}} = \sqrt{0.0001164} \approx 0.010789
  • 3-sigma margin: 3σp=3(0.010789)=0.032367≈0.03243\sigma_p = 3(0.010789) = 0.032367 \approx 0.0324
  • Control Limits: CLp=pˉ=0.0300CL_p = \bar{p} = 0.0300 UCLp=pˉ+3σp=0.0300+0.0324=0.0624(6.24%)UCL_p = \bar{p} + 3\sigma_p = 0.0300 + 0.0324 = 0.0624 \quad (6.24\%) LCLp=pˉ−3σp=0.0300−0.0324=−0.0024LCL_p = \bar{p} - 3\sigma_p = 0.0300 - 0.0324 = -0.0024
  • Applying the Mandatory Truncation Rule: Because LCLp<0LCL_p < 0, set LCLp=0.000LCL_p = 0.000.

Step 3: Calculate npnp-Chart Limits Because sample size is constant (n=250n = 250):

  • Center Line: CLnp=npˉ=250(0.030)=7.50CL_{np} = n\bar{p} = 250(0.030) = 7.50 defectives
  • Standard deviation: σnp=npˉ(1−pˉ)=250(0.030)(0.970)=7.275≈2.6972\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σnp=3(2.6972)=8.09163\sigma_{np} = 3(2.6972) = 8.0916
  • Control Limits: UCLnp=7.50+8.0916=15.59 defectivesUCL_{np} = 7.50 + 8.0916 = 15.59 \text{ defectives} LCLnp=max⁡(0,  7.50−8.0916)=max⁡(0,−0.59)=0.00 defectivesLCL_{np} = \max(0, \; 7.50 - 8.0916) = \max(0, -0.59) = 0.00 \text{ defectives}

Step 4: Evaluate Lot 12

  • For Lot 12: d12=18d_{12} = 18 defectives.
    • On the npnp-chart: d12=18>UCLnp(15.59)d_{12} = 18 > UCL_{np} (15.59). Out of control!
    • On the pp-chart: p12=18250=0.0720p_{12} = \frac{18}{250} = 0.0720. Since p12=0.0720>UCLp(0.0624)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: cc-Chart vs. uu-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 (ii)Panels Inspected (nin_i)Total Defects Counted (cic_i)
11018
21524
3820
42032
51216
  1. Explain why a cc-chart is mathematically invalid for this operational scenario.
  2. Calculate the center line uˉ\bar{u} for the appropriate uu-chart.
  3. Compute the specific Upper and Lower Control Limits for Shift 3 (n3=8n_3 = 8 panels) and Shift 4 (n4=20n_4 = 20 panels).
  4. Evaluate whether Shift 3 (c3=20c_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 (nin_i ranges from 8 to 20 panels). A cc-chart strictly requires a constant area of opportunity (ni=constantn_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 uu-chart (defects per unit) must be used.

Step 2: Calculate Center Line uˉ\bar{u}

  • Total defects counted: ∑ci=18+24+20+32+16=110\sum c_i = 18 + 24 + 20 + 32 + 16 = 110 defects
  • Total panels inspected: ∑ni=10+15+8+20+12=65\sum n_i = 10 + 15 + 8 + 20 + 12 = 65 panels
uˉ=11065=1.6923≈1.692 defects per panel\bar{u} = \frac{110}{65} = 1.6923 \approx 1.692 \text{ defects per panel}

Step 3: Calculate Control Limits for Shifts 3 and 4 For Shift 3 (n3=8n_3 = 8 panels):

  • Standard error: σu,3=uˉn3=1.69238=0.21154≈0.4599\sigma_{u, 3} = \sqrt{\frac{\bar{u}}{n_3}} = \sqrt{\frac{1.6923}{8}} = \sqrt{0.21154} \approx 0.4599
  • Limits: UCLu,3=1.6923+3(0.4599)=1.6923+1.3798=3.072 defects/panelUCL_{u, 3} = 1.6923 + 3(0.4599) = 1.6923 + 1.3798 = 3.072 \text{ defects/panel} LCLu,3=max⁡(0,  1.6923−1.3798)=0.313 defects/panelLCL_{u, 3} = \max(0, \; 1.6923 - 1.3798) = 0.313 \text{ defects/panel}

For Shift 4 (n4=20n_4 = 20 panels):

  • Standard error: σu,4=uˉn4=1.692320=0.08462≈0.2909\sigma_{u, 4} = \sqrt{\frac{\bar{u}}{n_4}} = \sqrt{\frac{1.6923}{20}} = \sqrt{0.08462} \approx 0.2909
  • Limits: UCLu,4=1.6923+3(0.2909)=1.6923+0.8727=2.565 defects/panelUCL_{u, 4} = 1.6923 + 3(0.2909) = 1.6923 + 0.8727 = 2.565 \text{ defects/panel} LCLu,4=max⁡(0,  1.6923−0.8727)=0.820 defects/panelLCL_{u, 4} = \max(0, \; 1.6923 - 0.8727) = 0.820 \text{ defects/panel}

(Notice: For n=20n = 20, the control limits are significantly tighter than for n=8n = 8).

Step 4: Evaluate Shift 3

  • For Shift 3, the observed defect rate per panel is: u3=c3n3=208=2.500 defects per panelu_3 = \frac{c_3}{n_3} = \frac{20}{8} = 2.500 \text{ defects per panel}
  • Comparing to Shift 3 control limits: LCLu,3(0.313)≤u3(2.500)≤UCLu,3(3.072)LCL_{u, 3} (0.313) \le u_3 (2.500) \le UCL_{u, 3} (3.072)
  • Conclusion: Shift 3 is in statistical control. Even though 20 defects appeared high in raw count, when standardized against the small sample size (n=8n = 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 (cc or uu chart). If the item is simply rejected as bad or accepted as good, it is a defective (pp or npnp chart).
  • Mandatory LCL Truncation: Whenever an attribute control chart formula generates a negative lower control limit, you must truncate it to zero (LCL=0LCL = 0). NCEES exam questions frequently include the raw negative number as an attractive distractor!
  • Weighted Average for pˉ\bar{p} and uˉ\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: pˉ=∑di∑ni,uˉ=∑ci∑ni\bar{p} = \frac{\sum d_i}{\sum n_i}, \qquad \bar{u} = \frac{\sum c_i}{\sum n_i}
  • When nn Varies, npnp and cc are Banned: If subgroup sizes fluctuate, you cannot use an npnp-chart or a cc-chart. You must select a pp-chart (with variable limits or nˉ\bar{n}) or a uu-chart.
Test Your Knowledge

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?

A

A c-chart because it monitors the Poisson count of surface blemishes across shifts.

B

A p-chart because it evaluates the proportion of stamped panels that contain defects.

C

A u-chart because it monitors defect rates per inspection unit when sample sizes vary across subgroups.

D

An np-chart because it plots the raw integer count of surface imperfections per inspection run.

Test Your Knowledge

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

CL = 0.0800, UCL = 0.1374, LCL = 0.0226

B

CL = 0.0400, UCL = 0.0816, LCL = 0.0000

C

CL = 0.0400, UCL = 0.0984, LCL = -0.0184

D

CL = 8.0000, UCL = 16.320, LCL = 0.0000

Test Your Knowledge

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?

A

UCL = 12.00 defects, LCL = 6.00 defects

B

UCL = 14.20 defects, LCL = 3.80 defects

C

UCL = 22.45 defects, LCL = 0.00 defects

D

UCL = 18.00 defects, LCL = 0.00 defects

Sections you finish are checked off in the contents.