Mathwords logoMathwords

P-Chart — Definition, Formula & Example

A p-chart is a time-ordered graph that tracks the fraction of items in each sample with some trait, such as being defective. Upper and lower limit lines show how much that fraction can bounce around by chance alone.

A p-chart (proportion control chart) is a statistical process control chart that plots sample proportions p^i\hat{p}_i against sample order. It has a center line at the pooled proportion pˉ\bar{p} and control limits at pˉ±3pˉ(1−pˉ)/n\bar{p} \pm 3\sqrt{\bar{p}(1-\bar{p})/n}. The chart is based on the binomial model for the count of 'successes' in each sample of size nn. A point outside the limits signals special-cause variation, meaning the process has likely changed.

Key Formula

CL=pˉ,UCL=pˉ+3pˉ(1−pˉ)n,LCL=pˉ−3pˉ(1−pˉ)n\text{CL} = \bar{p}, \qquad \text{UCL} = \bar{p} + 3\sqrt{\frac{\bar{p}(1-\bar{p})}{n}}, \qquad \text{LCL} = \bar{p} - 3\sqrt{\frac{\bar{p}(1-\bar{p})}{n}}
Where:
  • pˉ\bar{p} = Pooled proportion: total defective items divided by total items inspected across all baseline samples
  • nn = Number of items in each sample
  • CL\text{CL} = Center line, drawn at the overall average proportion
  • UCL,LCL\text{UCL}, \text{LCL} = Upper and lower control limits, 3 standard deviations from the center line

Worked Example

Problem: A factory inspects 100 light bulbs each day. Over 20 days, it finds 200 defective bulbs out of 2,000 inspected. Build the p-chart limits. On day 21, inspectors find 22 defective bulbs out of 100. Is the process in control?
Step 1: Find the center line. Divide the total number of defective bulbs by the total number inspected.
pˉ=2002000=0.10\bar{p} = \frac{200}{2000} = 0.10
Step 2: Find the standard deviation of a sample proportion when n=100n = 100.
0.10(0.90)100=0.0009=0.03\sqrt{\frac{0.10(0.90)}{100}} = \sqrt{0.0009} = 0.03
Step 3: Go 3 standard deviations above and below the center line. Then compare day 21's proportion with the upper limit.
UCL=0.10+3(0.03)=0.19,LCL=0.10−3(0.03)=0.01,p^21=22100=0.22>0.19\text{UCL} = 0.10 + 3(0.03) = 0.19, \quad \text{LCL} = 0.10 - 3(0.03) = 0.01, \quad \hat{p}_{21} = \frac{22}{100} = 0.22 > 0.19
Answer: The center line is 0.10, the UCL is 0.19, and the LCL is 0.01. Day 21's proportion of 0.22 falls above the UCL. That signals the process is out of control, so the factory should look for a specific cause, such as a faulty machine or a bad batch of parts.

Visualization

Why It Matters

P-charts are a core tool of statistical process control. Manufacturing engineers, hospital quality teams, and call centers use them to spot real problems without overreacting to random noise. In AP Statistics, the limit formula reuses the standard deviation of the sampling distribution of p^\hat{p}, the same quantity behind one-proportion confidence intervals.

Common Mistakes

Mistake: Reporting a negative lower control limit when pˉ\bar{p} is small or nn is small.
Correction: A proportion can never be below 0. If the formula gives a negative LCL, set the LCL to 0. Also, if sample sizes differ from day to day, compute separate limits for each sample using its own nn.

Related Terms

  • Time Series — P-charts plot proportions in time order like this
  • Relative Frequency — Each plotted point is a sample relative frequency
  • Pareto Chart — Quality tool that ranks causes of defects found
  • C-Chart — Tracks the count of defects instead of the proportion defective
  • Univariate Data — A p-chart tracks one categorical variable per sample
  • Control Chart — General chart type that a p-chart specializes