Pharmaceutical Calculation Suite
Accumulates evidence across observations to catch small, sustained shifts a Shewhart chart misses — with the λ choice and the early-observation limits done right.
The exponentially weighted moving average (EWMA) chart accumulates evidence across observations, which makes it more sensitive than a Shewhart individuals chart to small, sustained process shifts and gradual drift. Introduced by Roberts (1959), it is a standard tool for Stage 3 continued process verification, where slow degradation over months matters more than isolated spikes.
Where this is used:
Steady state (i → ∞): z₀ ± L·σ·√[λ/(2−λ)]. Use the time-varying limits for the first observations — the EWMA's variance grows toward its asymptote, so early limits are tighter than the steady-state pair, and comparing early points against steady-state limits alone can miss a start-up signal.
Choosing λ — the weight on the current observation. A small λ (0.05–0.2) carries long memory: maximum smoothing and the best sensitivity to small sustained shifts, at the cost of responding slowly to large abrupt shifts. A large λ weights recent data more, smooths less, and responds faster; at λ = 1 the chart degenerates to a Shewhart individuals chart. λ between 0.2 and 0.3 is the usual recommendation (Hunter 1986; NIST/SEMATECH e-Handbook), with L ≈ 2.7–3. Lucas and Saccucci (1990) tabulate (λ, L) pairs against average run length.
| Symbol | Variable | Units | Description |
|---|---|---|---|
| xᵢ | Current observation | product units | Latest measurement (potency %, moisture %, …). |
| zᵢ | EWMA statistic | product units | Exponentially weighted average at time i — the plotted value. |
| λ | Smoothing parameter | dimensionless | Weight on the current observation, 0 < λ ≤ 1. Small λ = long memory, best for small sustained shifts; λ = 1 = Shewhart individuals. Typical 0.2–0.3. |
| z₀ | Starting value | product units | The process target or historical mean. |
| σ | Process standard deviation | product units | A sound short-term estimate (e.g. from a moving range) — an estimate inflated by drift widens the limits and hides the drift. |
| L | Control-limit width multiplier | dimensionless | ≈ 2.7–3, chosen with λ (Lucas & Saccucci tables). |
| i | Observation number | count | Drives the time-varying variance term [1 − (1−λ)^(2i)]. |
Scenario: granule moisture, target 2.2%, σ = 0.15%, λ = 0.2, L = 3. Eight daily readings: 2.1, 2.3, 2.0, 2.4, 2.2, 2.5, 2.3, 2.1%.
PharmaCalc returns an EWMA chart tuned to the shift size you care about. It is computed server-side against the published method and written into a GMP PDF report with the inputs, formula chain, references, document control and signature pages — traceable to the software release that produced it.
Open the EWMA Chart calculator — free demo