Inferensys

Glossary

C Chart

A C chart is a type of control chart used in Statistical Process Control (SPC) to monitor the total count of nonconformities (defects) in a sample of constant size over time.
Operations room with a large monitor wall for system visibility and control.
STATISTICAL PROCESS CONTROL FOR DATA

What is a C Chart?

A C chart is a type of control chart used in Statistical Process Control (SPC) to monitor the count of nonconformities (defects) in a sample of constant size for attribute data over time.

A C chart is a statistical process control (SPC) tool designed for attribute data, specifically for monitoring the total number of nonconformities (defects) in a constant sample size over time. It plots the count of defects per unit or inspection area against statistically calculated control limits, which are typically set at ±3 standard deviations from the process mean. This allows practitioners to distinguish between common cause variation (inherent, random noise) and special cause variation (assignable, non-random signals) in the data generation process.

The chart's effectiveness relies on the data meeting key assumptions: the opportunity for defects is large, their occurrence is independent, and the probability of a defect is small and constant. It is closely related to the P chart, which monitors the proportion of defective units. C charts are foundational in data quality monitoring and manufacturing quality control, providing a visual mechanism to detect shifts or trends that indicate a process is becoming unstable or out of control, triggering investigative and corrective actions.

STATISTICAL PROCESS CONTROL FOR DATA

Key Characteristics of a C Chart

A C chart is a type of control chart used in Statistical Process Control (SPC) to monitor the total count of nonconformities (defects) in a sample of constant size over time. It is designed for attribute data where the opportunity area for defects is large but the sample size is fixed.

01

Purpose and Core Use Case

The C chart is used to monitor the total number of defects (nonconformities) in a constant sample size or inspection unit. It answers the question: "Is the defect rate stable?"

  • Key Application: Monitoring the count of flaws, errors, or incidents where the sample area, volume, or time period is constant (e.g., defects per 100 lines of code, errors per daily transaction log, scratches per manufactured panel).
  • Data Type: Uses attribute data (count data), not continuous measurements.
  • Objective: To distinguish between common cause variation (inherent to the process) and special cause variation (indicating an assignable change that needs investigation).
02

Fundamental Assumptions

For a C chart to be valid and effective, the underlying process and data must meet specific statistical assumptions.

  • Constant Sample Size/Opportunity: The area of opportunity for defects must be identical for each sample (e.g., same length of code reviewed, same time period, same unit area inspected).
  • Poisson Distribution: The occurrence of defects is assumed to follow a Poisson distribution. This implies defects are independent, rare, and randomly distributed within the inspection unit.
  • Defect Definition: The definition of a 'defect' or 'nonconformity' must be clear, consistent, and objectively measurable across all samples.
03

Control Limit Calculation

The center line and control limits for a C chart are derived from the observed data, providing statistically sound boundaries for process behavior.

  • Center Line (c̄): The average number of defects per sample. Calculated as: c̄ = (Sum of defects in all samples) / (Number of samples).
  • Upper Control Limit (UCL): UCL = c̄ + 3 * sqrt(c̄)
  • Lower Control Limit (LCL): LCL = c̄ - 3 * sqrt(c̄) (set to 0 if calculation yields a negative value).

These 3-sigma limits are based on the properties of the Poisson distribution, where the standard deviation is the square root of the mean. A point plotting outside these limits is a strong signal of special cause variation.

04

Interpretation and Signals

Analyzing a C chart involves looking for patterns that indicate the process is out of statistical control.

  • Primary Signal: Any single point falling outside the control limits (UCL or LCL).
  • Pattern-Based Signals (Western Electric Rules):
    • A run of 7 or more points consecutively above or below the center line.
    • 6 points in a row steadily increasing or decreasing (a trend).
    • 2 out of 3 points in the outer third of the control band (between 2 and 3 sigma from the mean).
  • Implication: A signal suggests an assignable cause—a specific, identifiable factor has changed the defect generation process, requiring investigation and corrective action.
05

Comparison with P Chart

It is crucial to distinguish a C chart from a P chart, as both handle attribute data but for different scenarios.

  • C Chart: Tracks the count of defects (nonconformities) in a constant sample size. The sample is a single unit of inspection with multiple opportunities for defects.
  • P Chart: Tracks the proportion or percentage of defective units in a sample where each unit is classified as pass/fail. Sample sizes can vary.

Example:

  • C Chart: Number of typographical errors in ten 100-page manuals (sample size = 1 manual, defect count per manual).
  • P Chart: Proportion of manuals with any typos out of a daily batch of 50 manuals (sample size = 50, defective unit = a manual with ≥1 typo).
06

Application in Data Observability

In modern data pipelines, C charts can be applied to monitor data quality metrics where the inspection unit is constant.

  • Monitoring Data Errors: Count of parsing failures per daily ETL job run, assuming a consistent volume of source files.
  • Schema Violations: Number of records failing schema validation checks per fixed batch of 10,000 records.
  • Anomaly Detection: Count of outlier data points identified by a rule-based checker per hourly data stream snapshot.

By establishing a baseline defect count () and control limits, data engineering teams can receive statistical alerts when the rate of data quality issues shifts significantly, moving from reactive firefighting to proactive process control.

ATTRIBUTE CONTROL CHARTS

C Chart vs. P Chart: Key Differences

A comparison of two primary control charts used for attribute data in Statistical Process Control, highlighting their distinct applications, formulas, and data requirements.

Feature / MetricC Chart (Count of Defects)P Chart (Proportion Defective)

Data Type

Count data (Discrete)

Proportion data (Continuous 0-1)

What is Monitored

Number of nonconformities (defects) in a constant sample size

Proportion or fraction of nonconforming units (defectives) in a sample

Sample Size Requirement

Constant (must be identical for all samples)

Can vary from sample to sample

Central Line (CL) Formula

c̄ = (Total Defects) / (Number of Samples)

p̄ = (Total Defectives) / (Total Items Inspected)

Control Limits

Based on Poisson distribution: UCL/LCL = c̄ ± 3√c̄

Based on Binomial distribution: UCL/LCL = p̄ ± 3√(p̄(1-p̄)/n)

Unit of Analysis

Opportunities for defects within an item or sample (e.g., flaws per bolt of fabric)

The item itself (e.g., defective/non-defective bolt of fabric)

Primary Use Case

Monitoring total defect count when inspection area/unit size is constant (e.g., bugs per 1000 lines of code, typos per page)

Monitoring the fraction defective when sample size varies (e.g., % defective parts from daily production batches)

Sensitivity to Sample Size Changes

High - Invalid if sample size varies

Robust - Formulas account for variable 'n' in each sample

C CHART

Frequently Asked Questions

A C chart is a statistical process control (SPC) chart used to monitor the total count of nonconformities (defects) in a sample of constant size over time. It is a key tool for attribute data quality monitoring in data observability and manufacturing.

A C chart is a type of control chart used in Statistical Process Control (SPC) to monitor the total count of nonconformities (defects) in a sample of constant size over time. It works by plotting the number of defects per inspection unit (c) on a chart with a center line (CL) representing the average defect count and statistically derived upper control limit (UCL) and lower control limit (LCL).

How it works:

  1. Data Collection: Inspect a constant sample size (e.g., 100 records, 1 square meter of fabric, a batch of 50 transactions).
  2. Count Defects: Record the total number of defects (c) found in that unit. A single unit can have multiple defects.
  3. Calculate Limits: The center line (CL) is the average number of defects per sample. Control limits are calculated based on the Poisson distribution: UCL = c̄ + 3√c̄ and LCL = c̄ - 3√c̄ (where c̄ is the average defect count). The LCL is set to 0 if the calculation yields a negative number.
  4. Plot and Analyze: Plot each sample's defect count. Points outside the control limits or forming non-random patterns indicate special cause variation, signaling an out-of-control process that requires investigation.
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.