MEWMA chart: multivariate EWMA for small shifts
A MEWMA chart (multivariate exponentially weighted moving average) does for several correlated variables what the EWMA chart does for one. It smooths the vector of measurements over time with a weight λ, then reduces the smoothed vector to one number, a T² distance from the target. Because the smoothing builds up evidence from many observations, it detects small, sustained shifts in the mean vector much sooner than the T² chart, which looks at one observation at a time.
When to use it
- You measure two or more correlated characteristics on each unit or sample, and the shifts that matter are small: about 0.5 to 1.5 in the multivariate distance defined below.
- Changes tend to be gradual or to persist once they happen: a drifting feed, a fouling heat exchanger, a slowly wearing tool.
- You have a stable baseline that gives the target vector μ₀ and the covariance matrix Σ.
For large, sudden upsets, the T² chart reacts at least as fast and is easier to read; many sites run both. For spread rather than location, use the generalized variance chart. If the variables are nearly independent, a separate EWMA or CUSUM chart for each one is simpler.
How it works
With xᵢ the vector of measurements at time i, and starting from Z₀ = 0:
Zᵢ = λ(xᵢ − μ₀) + (1 − λ)Zᵢ₋₁
Σ_Zᵢ = λ/(2 − λ) · [1 − (1 − λ)²ⁱ] · Σ
T²ᵢ = Zᵢ′ Σ_Zᵢ⁻¹ ZᵢThe chart plots T²ᵢ and signals when it exceeds a limit h. There is no LCL. Using the exact, time-varying covariance Σ_Zᵢ makes the early points as sensitive as the later ones; at i = 1 the statistic equals the ordinary T² of the first observation. With λ = 1 the chart is the T² chart.
The size of a shift in the mean vector is measured by the multivariate distance
δ = √( (μ₁ − μ₀)′ Σ⁻¹ (μ₁ − μ₀) )and the chart's run lengths depend only on δ, not on the direction of the shift. Unlike the univariate EWMA, h is not a simple multiple of σ: it depends on p and λ and is chosen from published run-length tables or by simulation for a target in-control average run length (ARL). For p = 2 and λ = 0.1, a simulation of 80,000 runs for this article put h = 8.8 at an in-control ARL of about 200 samples. With those settings, a shift of δ = 1 that starts after 20 in-control samples was detected after about 10 samples on average; a T² chart with the same in-control ARL (limit 10.60) needs about 42.
Use only Test 1, a point above h. Consecutive MEWMA values are strongly correlated, so the run and zone tests from the tests for special causes do not apply. When the process is in control, each T²ᵢ follows a chi-square distribution with p degrees of freedom, so the center line drawn below is its median, 1.39 for p = 2, for reference only.
Example
A dairy spray dryer makes skim milk powder. Each hour a sample is tested for moisture and bulk density. From a stable month, μ₀ = (3.50 %, 0.600 g/mL), with standard deviations 0.10 % and 0.010 g/mL and a correlation of 0.5, since both respond to the dryer's outlet temperature. The team uses λ = 0.1 and h = 8.8.
| Sample | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Moisture (%) | 3.50 | 3.43 | 3.34 | 3.56 | 3.51 | 3.50 | 3.69 | 3.59 |
| Bulk density (g/mL) | 0.609 | 0.603 | 0.581 | 0.592 | 0.609 | 0.604 | 0.611 | 0.620 |
| MEWMA T² | 1.08 | 1.84 | 2.04 | 1.03 | 0.40 | 0.36 | 0.32 | 2.01 |
| Sample | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
|---|---|---|---|---|---|---|---|
| Moisture (%) | 3.49 | 3.59 | 3.51 | 3.63 | 3.64 | 3.61 | 3.50 |
| Bulk density (g/mL) | 0.600 | 0.602 | 0.590 | 0.598 | 0.594 | 0.591 | 0.578 |
| MEWMA T² | 1.55 | 1.68 | 0.96 | 2.22 | 4.66 | 7.53 | 10.60 |
- Sample 1: Z₁ = 0.1 × (0.00, 0.009) = (0, 0.0009). Here Σ_Z = 0.01 Σ, so T²₁ equals the ordinary T² of the first sample: standardized deviations of 0 and 0.9 give (0.9²)/(1 − 0.5²) = 1.08.
- Sample 2: Z₂ = 0.1 × (−0.07, 0.003) + 0.9 × (0, 0.0009) = (−0.0070, 0.00111). The factor for Σ_Z is 0.1/1.9 × (1 − 0.9⁴) = 0.0181, which gives T²₂ = 1.84.
The MEWMA crosses h at sample 15. None of the 15 samples is unusual alone: the largest ordinary T² is 6.45, far below the T² chart's limit of 11.83 for known parameters, and individuals charts of moisture and density show no signal on any of the eight tests. But samples 9 to 15 average 3.567 % moisture and 0.593 g/mL density, wetter and lighter than target at the same time, a shift of about δ = 1.2. An evaporator cleaning before sample 9 had left the concentrate with lower solids, so the dryer was making wetter, fluffier powder. The evaporator settings were corrected.
How to read the results
- A point above h means the smoothed mean vector has moved. The shift may have started several samples earlier; look back to where T² began to climb.
- To see which variable moved, look at the components of Zᵢ, or at the individual EWMAs, divided by their standard deviations. In the example, the moisture component rose while the density component fell.
- Single outliers are damped. One extreme sample moves Z by only λ times its deviation, so keep a T² chart for large upsets.
- After a signal and a correction, restart Z at zero.
Common mistakes
- Using the univariate EWMA limit. h depends on p and λ; L·σ formulas from the single-variable chart do not carry over.
- Estimating Σ from data that contain shifts. An inflated Σ makes the chart slow. Build the baseline from a stable period, as in Phase I of a T² chart.
- Applying run rules. The smoothed statistic stays on one side of its median for long stretches by design.
- Choosing λ after seeing the data. Pick λ for the smallest shift worth detecting (smaller λ for smaller shifts) and h for the false-alarm rate you can live with, before charting.
Frequently asked questions
How do I choose λ and h?
Choose λ between about 0.05 and 0.2 for small shifts, smaller for smaller δ. Then take h from a run-length table or a simulation for your p, λ and the in-control ARL you want. For p = 2 and λ = 0.1, h = 8.8 gives an in-control ARL near 200.
What does δ mean?
δ is the distance of the shifted mean vector from μ₀ in units that account for each variable's spread and their correlation. A shift against the correlation, as in the example, gives a larger δ than the same raw change along it.
Is the MEWMA better than separate EWMA charts?
When the variables are correlated, yes: it uses the correlation and has one false-alarm rate for the whole set. With p separate EWMA charts the overall false-alarm rate rises with p, and shifts that go against the correlation are harder to see.
Can I use subgroup means?
Yes. Use the subgroup mean vectors as xᵢ and Σ/n in place of Σ.