InsightFab
Knowledge Base/P-Chart Example: Monitoring Defect Rate by Lot
SPC6 min read

P-Chart Example: Monitoring Defect Rate by Lot

A p-chart tracks the proportion defective, not the count. How to compute variable limits when lot sizes change, and read the chart without panicking.

Scenario or Origin of the Problem

In the daily operations of manufacturing, monitoring the defect rate is always a focal point for engineers. Imagine a product assembly line where the inspection results of final products are tallied daily or per batch: conforming or non-conforming. Production line supervisors or quality engineers often face this confusion: Is today's 0.8% defect rate, compared to yesterday's 0.6% or the day before yesterday's 1.0%, a normal process fluctuation, or is a new abnormal situation occurring? When the defect rate fluctuates slightly, should resources be immediately mobilized to investigate and adjust process parameters, or is it just random noise? Overreacting consumes unnecessary resources and may even introduce new variations; conversely, delayed reaction might allow genuine process problems to escalate. This situation, lacking an objective basis for judgment, is precisely the real-world scenario where a P chart is needed for clarification.

Core Concepts and Principles

The P chart is a type of Statistical Process Control (SPC) tool specifically used to monitor "non-conforming rate" or "proportion of defective items." It is applicable to attribute data, meaning products have only two states: "conforming" or "non-conforming," rather than continuous measurement data. The core principle of the P chart is based on the binomial distribution; when the sample size is sufficiently large, its proportion can approximate a normal distribution, thereby establishing control limits.

Its main calculation formulas are as follows:

  1. Subgroup Non-conforming Rate (p):

`p = (Number of non-conforming items in the subgroup) / (Total number of inspected items in the subgroup n)`

  1. Average Non-conforming Rate (p̄, p-bar):

`p̄ = (Total number of non-conforming items across all subgroups) / (Total number of inspected items across all subgroups)`

  1. Control Limits:

Center Line (CL) = p̄

Upper Control Limit (UCL) = `p̄ + 3 * sqrt( p̄ * (1 - p̄) / n )`

Lower Control Limit (LCL) = `p̄ - 3 * sqrt( p̄ * (1 - p̄) / n )`

Where, `sqrt` represents the square root, and `n` is the subgroup sample size. If the calculated LCL is a negative value, the LCL should be set to 0. The significance of control limits lies in defining the expected range of defect rate fluctuations when only "common cause variation" exists in the process. Any points exceeding these limits, or specific patterns within the limits, may indicate the presence of "special cause variation."

Practical Application Method

The steps for implementing a P chart are relatively straightforward, but details determine effectiveness:

  1. Define Subgroup and Data Collection Strategy:

First, clarify your monitoring object and frequency. For example, inspect all products in a batch daily, or randomly sample a fixed number of products each shift for inspection. The key lies in

Golden Quote

"P Chart, the standard for defect rate monitoring, practical application helps stable quality improvement."

Want to try it yourself?

Every tool mentioned in this article is available on InsightFab — just upload a CSV to analyze.

Go to Tools