Choose a rate instead of a raw count
Use a U chart when a unit may contain several defects and inspection exposure varies. Examples include defects per page when page counts change, or nonconformities per length of material when inspected lengths differ. It still requires a consistent definition of a unit and a comparable defect-counting rule.
A U chart differs from a P chart because it counts nonconformities, not defective items. One unit can contribute more than one defect. If every sample has exactly equal exposure, a C chart may present the count more directly; if the question is pass/fail units, use a P or NP chart instead.
Enter paired sample lists
The first list contains each sample’s total defects; the second list contains the corresponding inspected units. The lists must have the same length, defect values must be nonnegative finite numbers, and each unit denominator must be positive. Keep the entries in identical chronological order so each limit belongs to its sample size. Use the U-chart calculator only after the defect and exposure lists are aligned.
The calculator accepts comma-separated values and does not enforce integer defect counts or integer unit denominators. Fractional exposure can be useful for some rate models, but observed defects and inspected item counts are ordinarily whole numbers. Check the data definition yourself before interpreting the output.
Pooled center and sample limits
The overall center ū is total defects divided by total inspected units, not the unweighted average of sample rates. For sample i with nᵢ units, the Poisson-style standard error is the square root of ū divided by nᵢ. Its limits are ū plus or minus three standard errors, with a negative lower limit clipped at zero.
The calculator reports one center line and a separate lower-to-upper interval for each entered sample size. It displays the center to six decimal places and each sample limit to four. The upper limit is not rounded before later samples are calculated, and the same pooled center is used for every sample.
Why sample sizes change the width
With fewer units inspected, a rate has more sampling variation, so its three-sigma band is wider. With more units, the estimated rate is more precise and its band narrows. The center line remains the pooled baseline rate; only the uncertainty width changes with nᵢ.
Comparing raw counts alone can mislead: a larger sample often has more defects simply because it covers more units. Calculate each observed rate and compare it with the interval for that sample’s own denominator.
Examples of unequal exposure
In the first example, the four samples contribute 44 defects across 550 total units, so the pooled rate is 0.08 defects per unit. For 100 units the upper limit is about 0.16485; for 200 units it narrows to 0.14. The other sample sizes receive their own interval from the same formula.
In the second example, 44 defects across 400 units give ū = 0.11. A 100-unit sample has an upper limit of about 0.20950; a 300-unit sample has an upper limit near 0.16745. Neither value describes a defective-item percentage: it is a count rate, and a unit can contain multiple defects.
Worked examples
Four samples with changing exposure
Inputs: Defects = 8, 12, 9, 15; units = 100, 150, 100, 200
Calculation: ū = 44 / 550 = 0.08. For n=100: limits = 0 to 0.08 + 3√(0.08/100) = 0.16485. For n=200: limits = 0 to 0.08 + 3√(0.08/200) = 0.14.
The center is 0.080000 defects per unit. The 100-unit samples have limits 0.0000–0.1649, the 150-unit sample has limits 0.0107–0.1493, and the 200-unit sample has limits 0.0200–0.1400.
A small sample and a larger sample
Inputs: Defects = 20, 24; units inspected = 100, 300
Calculation: ū = 44 / 400 = 0.11. For 100 units: UCL = 0.11 + 3√(0.11/100) = 0.20950. For 300 units: UCL = 0.11 + 3√(0.11/300) = 0.16745.
The pooled center is 0.110000 defects per unit. The 100-unit sample gets limits 0.0105–0.2095; the 300-unit sample gets limits 0.0526–0.1674.
Assumptions and calculator scope
The familiar limits use a Poisson model: counts arise from comparable opportunities and are approximately independent, with a stable underlying rate. Strong clustering, overdispersion, changing inspection severity, or an inconsistent opportunity definition can make ordinary limits unreliable. Review process behavior before trusting a pooled center.
This calculator does not test Poisson fit, identify special causes, or evaluate the input time sequence. It accepts decimals and does not check that sample sizes are whole counts. The formula itself matches variable-exposure U-chart limits, but the validation is broader than typical physical count data; preserve that distinction in QA.
Turn the calculation into monitoring
Before calculating, define one unit and count defects the same way for every sample. Keep a row per time point with defects, units inspected, and the resulting rate. The rates and intervals must stay paired with the sample that produced them; do not copy one sample's limits across a variable-size sequence.