Control charts for attributes: p, np, c and u
Defectives versus defects, binomial and Poisson basis, choosing among p, np, c and u charts, their centre lines and 3-sigma limits with varying sample size, and why a negative LCL is set to zero.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Many quality characteristics are not measured but counted: a casting is good or bad, a go/no-go gauge accepts or rejects, a painted panel has a number of blemishes. Attribute control charts monitor such data cheaply, often straight from routine inspection records, and they are the natural first chart for assembly lines, electronics and service processes. Choosing the right one of the four charts is itself a frequent exam question.
Key ideas
Defective versus defect. This distinction decides the chart.
- A defective (non-conforming unit) is a whole unit that fails to meet a requirement. Each unit is either defective or not, so the count of defectives in a sample of n follows the binomial distribution. Charts: p (fraction defective) and np (number defective).
- A defect (non-conformity) is an individual flaw; one unit can carry several. Counts of defects in a given area of opportunity follow the Poisson distribution. Charts: c (defects per inspection unit or per sample of constant size) and u (defects per unit, sample size may vary).
Choosing the chart
| Counting | Sample size constant | Sample size varies |
|---|---|---|
| Defectives (binomial) | np or p | p |
| Defects (Poisson) | c or u | u |
p chart. Plots the fraction defective p = d/n of each sample. Its limits depend on n, so with varying sample sizes each point gets its own limits (or an average n is used when sizes vary by less than about 25 %).
np chart. Plots the number defective d directly; easier for shop-floor staff, but only valid for a constant sample size.
c chart. Plots the number of defects in each inspection unit, where the inspection unit is the same every time (one car, one 10 m² of cloth, one circuit board).
u chart. Plots defects per unit u = c/n when the number of units inspected changes from sample to sample.
Limits. All four use ±3 standard deviations of the plotted statistic about the centre line. Because counts cannot be negative, a computed LCL below zero is set to zero. A non-zero LCL is useful: a point below it means the process has become better (or the inspection has become careless) and should also be investigated.
Limitations compared with variables charts. Attribute charts need much larger samples (often 50–200 units) to detect a change, carry no information about how far a part is from the limit, and react only after defectives are already being made. A variables chart on the key dimension is preferred wherever measurement is practical; attribute charts are preferred for many characteristics at once, visual checks and go/no-go gauging.
Formulas
p̄ = Σd / Σn
- p̄ = average fraction defective; d = number of defectives in a sample; n = sample size (units).
UCL_p, LCL_p = p̄ ± 3·√[p̄(1 − p̄)/n]
- p chart limits (dimensionless fraction); use each sample's own n when sizes vary.
UCL_np, LCL_np = n·p̄ ± 3·√[n·p̄(1 − p̄)]
- np chart limits (number of defectives); constant n only.
c̄ = Σc / k and UCL_c, LCL_c = c̄ ± 3·√c̄
- c = number of defects in one inspection unit; k = number of inspection units (samples). Limits in number of defects.
ū = Σc / Σn and UCL_u, LCL_u = ū ± 3·√(ū / n)
- u = c/n = defects per unit; n = number of units in the sample (limits change with n).
In all cases a negative LCL is replaced by 0.
Worked examples
Example 1 (standard): p and np charts Given: 20 samples of 200 bearings each are inspected with go/no-go gauges; a total of 320 defectives is found. Find the p chart and np chart limits.
p̄ = Σd / Σn = 320 / (20 × 200) = 320 / 4000 = 0.080.σ_p = √[p̄(1 − p̄)/n] = √(0.08 × 0.92 / 200) = √0.000368 = 0.01918.UCL_p = 0.080 + 3 × 0.01918 = 0.1375;LCL_p = 0.080 − 0.0575 = 0.0225.n·p̄ = 200 × 0.08 = 16;σ_np = √(16 × 0.92) = 3.837.UCL_np = 16 + 3 × 3.837 = 27.51;LCL_np = 16 − 11.51 = 4.49.
p chart: 0.0225 to 0.1375 (CL 0.080); np chart: 4.49 to 27.51 defectives (CL 16). A sample with 28 or more defectives, or 4 or fewer, is a signal.
Example 2 (GATE level): c and u charts Given: 40 painted car bodies are inspected and 120 paint defects are found in total. (a) Find c chart limits for inspecting one body at a time. (b) On a later day 5 bodies are inspected together and 30 defects found. Using a u chart, is the process in control?
c̄ = 120 / 40 = 3.0defects per body.- (a)
UCL_c = 3 + 3√3 = 3 + 5.196 = 8.196;LCL_c = 3 − 5.196 < 0, so LCL = 0. - (b)
ū = 120 / 40 = 3.0defects per body; for n = 5,√(ū/n) = √(3/5) = 0.7746. UCL_u = 3 + 3 × 0.7746 = 5.324;LCL_u = 3 − 2.324 = 0.676.- Observed
u = 30 / 5 = 6.0defects per body, which is above 5.324.
(a) c chart: 0 to 8.20 defects per body (CL 3). (b) u = 6.0 > UCL 5.32: out of control; look for an assignable cause in the paint shop that day.
Common mistakes
- Using a p or np chart for defects, or a c chart for defectives; first ask whether you are counting bad units or flaws.
- Using an np or c chart when the sample size varies; switch to p or u.
- Forgetting to divide by n inside the square root for p and u charts, or dividing twice.
- Reporting a negative LCL instead of setting it to zero.
- Ignoring points below a non-zero LCL; they may mean real improvement or an inspection failure.
- Mixing percentage and fraction: if p̄ is in %, the formula p̄(1 − p̄) needs a fraction.
For GATE PI
Typical questions give the number of samples, sample size and total defectives (or total defects) and ask for the centre line, UCL or LCL of a p, np, c or u chart; or ask which chart fits a described situation. Remember the binomial basis of p/np and the Poisson basis of c/u, and that LCL is set to zero when negative.
Quick check
- Which chart would you use for the number of scratches per sheet of glass of fixed size?
- With c̄ = 16, what are the c chart limits?
- 25 samples of 100 units contain 100 defectives in all. What is p̄?
- Which chart handles defects with a varying number of units inspected?
Answers: 1. c chart. 2. UCL = 28, LCL = 4. 3. 0.04. 4. u chart.
Interview questions
All Metrology, Quality and Reliability interview questionsTry answering each one aloud before you open it.
1.What is a control chart for attributes, and how does it differ from a control chart for variables?Concept
A control chart for attributes is used to monitor the quality of a process by evaluating categorical data, such as the number of defective items in a batch. It differs from a control chart for variables, which deals with continuous data like measurements of length or weight. Attribute charts include p, np, c, and u charts, while variable charts include X-bar and R charts.
2.Explain the purpose of a p-chart in quality control.Concept
A p-chart, or proportion chart, is used to monitor the proportion of defective items in a process over time. It helps in identifying whether the process is stable and in control by plotting the proportion of defects in each sample against control limits. If the points fall outside the control limits, it indicates that the process may be out of control.
3.What is an np-chart, and when would you use it?Concept
An np chart plots the number of defective (non-conforming) units in each sample, rather than the fraction. It is valid only when the sample size n is constant, because its centre line n·p̄ and limits n·p̄ ± 3√[n·p̄(1 − p̄)] depend on n. Operators like it because they plot the raw count; if the sample size varies, a p chart is used instead.
4.Describe the difference between a c-chart and a u-chart.Concept
A c-chart is used to monitor the count of defects in a fixed area or volume, assuming the sample size is constant. In contrast, a u-chart is used when the sample size varies, as it monitors the number of defects per unit. The u-chart adjusts for varying sample sizes by plotting the average number of defects per unit.
5.Why is it important to use control charts for attributes in a manufacturing process?Application
Control charts for attributes are important because they help in monitoring the quality of a process by identifying variations in categorical data, such as defects. They provide a visual representation of the process stability and help in detecting any shifts or trends that may indicate a problem. This allows for timely corrective actions to maintain product quality.
6.What could happen if a process is monitored using the wrong type of control chart?Application
Using the wrong type of control chart can lead to incorrect conclusions about the process stability. For example, using a variable chart for attribute data might not accurately reflect the process variations, leading to missed signals of out-of-control conditions. This can result in poor quality control and increased defects.
7.How would you determine the control limits for a p-chart?Numerical
Collect 20–25 samples, compute p̄ = total defectives / total units inspected, and set limits at p̄ ± 3√[p̄(1 − p̄)/n], where n is the sample size. If the LCL comes out negative it is set to zero. If sample sizes differ, each point gets its own limits using its own n (or an average n if the sizes vary only slightly). Points outside the trial limits with known assignable causes are removed and the limits recomputed.
8.A process has a sample size of 100 units, with an average of 5 defects per sample. Calculate the control limits for a c-chart.Numerical
For a c-chart, the control limits are calculated using the average number of defects (c̄). Here, c̄ = 5. The Upper Control Limit (UCL) = c̄ + 3√c̄ = 5 + 3√5 ≈ 11.71, and the Lower Control Limit (LCL) = c̄ - 3√c̄ = 5 - 3√5 ≈ -1.71. Since the LCL cannot be negative, it is set to 0.
9.What kinds of assignable causes might an attribute control chart detect?Application
Typical assignable causes are a bad batch of raw material, a worn or broken tool or fixture, a machine fault, a new or untrained operator, a changed procedure, or a change in inspection standard or gauge. They show up as points outside the limits, runs or trends. Common-cause variation, by contrast, is the inherent random scatter of a stable process and stays within the limits; reducing it needs a change to the process itself, not a local fix.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?