Pharmaceutical Calculation Suite
Monitor subgroup means and ranges for rapid shift detection. More powerful than I-MR when rational subgrouping is available.
Subgrouped Control Charts in Pharmaceutical Operations
The X̄-R (X-bar Range) control chart and X̄-S (X-bar Standard Deviation) chart are used when measurements can be organized into rational subgroups — typically 3 to 5 items sampled at regular time intervals. This is common in pharmaceutical manufacturing: sampling 5 tablets from a press every hour, 3 fill-weight checks per production run, or 5 potency measurements from a batch.
X̄-R charts are more sensitive than I-MR charts for detecting process shifts because they exploit rational subgrouping, reducing within-subgroup variation. The X̄ chart monitors process location (mean); the R chart monitors process spread (within-subgroup variation). Subgrouping ensures the control limits reflect only short-term variation, making the chart more responsive to special causes.
Typical applications: in-process tablet compression monitoring, fill weight sampling during production, dissolution testing with multiple tablets per batch, and blending uniformity checks. X̄-R charts are essential for real-time SPC in high-volume manufacturing.
Mathematical Basis and Control Limits
X̄-R charts are designed for subgroup size n = 5 (standard in pharma), though they work for any n ≥ 2.
Constants for n=5: A₂ = 0.577, D₃ = 0, D₄ = 2.114. These values are fixed by statistical theory and found in standard SPC tables.
Estimating σ: σ̂ = R̄ / d₂ where d₂ = 2.326 for n=5. This estimate is used for process capability (Cpk) calculations.
Symbols, Units, and Descriptions
| Symbol | Name | Units | Description |
|---|---|---|---|
| xᵢⱼ | Individual Measurement | product units | Single measurement j in subgroup i (e.g., weight of 1st tablet) |
| X̄ᵢ | Subgroup Mean | product units | Average of n observations in subgroup i |
| X̿ | Grand Mean | product units | Center line for X̄ chart; average of all subgroup means |
| Rᵢ | Subgroup Range | product units | Difference between max and min in subgroup i |
| R̄ | Average Range | product units | Mean of all k subgroup ranges; used to estimate process SD |
| A₂ | Control Chart Constant | dimensionless | For n=5: A₂ = 0.577. Converts R̄ to control limits. |
| D₃ | Control Chart Constant | dimensionless | For n=5: D₃ = 0. Lower control limit for R chart. |
| D₄ | Control Chart Constant | dimensionless | For n=5: D₄ = 2.114. Upper control limit for R chart. |
| d₂ | Control Chart Constant | dimensionless | For n=5: d₂ = 2.326. Used to estimate σ from R̄. |
| UCL, LCL | Control Limits | product units | Upper and lower control limits for X̄ and R charts |
| n | Subgroup Size | count | Number of items per subgroup (e.g., 5 tablets) |
| k | Number of Subgroups | count | Total number of subgroups collected (e.g., 8 time points) |
Worked Example — Tablet Fill Weight X̄-R Chart