Generalized variance chart: monitor multivariate spread

Updated

A generalized variance chart monitors the spread of several correlated variables at once. For each subgroup it computes the sample covariance matrix S and plots its determinant |S|, a single number that grows when the variables spread out more or stop moving together. It is the multivariate partner of the S chart, and it is usually run alongside a T² chart, which watches the mean vector.

When to use it

  • You measure two or more correlated characteristics on each unit and collect them in rational subgroups of n units, with n larger than the number of variables p.
  • You want one chart for the variability of the whole set, including the relationship between the variables, instead of one S chart per variable.
  • You have a stable baseline from which to estimate the in-control covariance.

If the variables are nearly independent, separate S charts are easier to read. To monitor the location of the variables, use the T² chart or, for small shifts, the MEWMA chart.

How it works

For p variables measured on a subgroup of n units, S is the p × p matrix of sample variances and covariances. With two variables:

|S| = s₁² · s₂² − s₁₂² = s₁² · s₂² · (1 − r²)

where s₁₂ is the covariance and r the correlation within the subgroup. |S| rises when either variance rises, and also when the correlation weakens, because the points no longer fall close to a line.

If the in-control covariance matrix is Σ, the mean of |S| is b₁|Σ| and its variance is b₂|Σ|², with constants that depend only on n and p:

b₁ = ∏(n − i) / (n − 1)ᵖ b₂ = ∏(n − i) · [∏(n − j + 2) − ∏(n − j)] / (n − 1)²ᵖ

Each product runs over i, j = 1 to p. The chart uses limits three standard deviations from the mean:

CL = b₁ |Σ| UCL = |Σ| (b₁ + 3√b₂) LCL = max(0, |Σ| (b₁ − 3√b₂))

When Σ is unknown, estimate |Σ| as the average |S| of the baseline subgroups divided by b₁; the center line is then simply that average. For p = 2 and n = 5, b₁ = 0.75 and b₂ = 0.84375, so the UCL is 3.5057 |Σ|, and the LCL is 0 because b₁ − 3√b₂ is negative. The LCL stays at zero for all common subgroup sizes.

The distribution of |S| is strongly skewed, so these limits do not give the 0.27% false-alarm rate of a Shewhart chart. For p = 2 there is an exact result: 2(n − 1)√(|S|/|Σ|) follows a chi-square distribution with 2n − 4 degrees of freedom. With n = 5, that puts about 2% of in-control subgroups above the 3-sigma UCL, roughly one in 49. If that is too many, use the probability limit:

UCL (p = 2) = |Σ| · [χ²(0.99865; 2n − 4) / (2(n − 1))]²

which for n = 5 is |Σ| × (21.739/8)² = 7.384 |Σ|.

Use only Test 1, a point above the UCL. The skewed distribution has no symmetric zones, so the run and zone tests from the tests for special causes do not apply.

Example

A CNC lathe turns a shaft with two bearing journals, nominally 25.000 mm and 30.000 mm, in one setup. Both journals are cut by the same tool, so their deviations from nominal are positively correlated. Every hour an operator measures five consecutive shafts. A stable baseline of 25 subgroups gave an average |S| of 1140.8 µm⁴, so:

  • |Σ| estimate = 1140.8 / 0.75 = 1521.0 µm⁴
  • CL = 1140.8 µm⁴
  • UCL = 1521.0 × 3.5057 = 5332 µm⁴, LCL = 0

The deviations from nominal (µm) for two of the next 20 subgroups:

SubgroupJournalShaft 1Shaft 2Shaft 3Shaft 4Shaft 5
625 mm943−9−4
630 mm991−3−7
1525 mm−2−16−233−1
1530 mm−17−6−11−300

For subgroup 6, s₁² = 50.3, s₂² = 51.2 and s₁₂ = 42.4, so |S| = 50.3 × 51.2 − 42.4² = 777.6 µm⁴. For subgroup 15, s₁² = 123.7, s₂² = 131.7 and s₁₂ = −51.55, so |S| = 123.7 × 131.7 − 51.55² = 13,634 µm⁴.

Generalized variance chart of journal diameters0500010000|S| (µm⁴)CL=1141UCL=5332LCL=0135791113151719Subgroup
Generalized variance chart of journal diameters

Subgroup 15 is far above the UCL, and above the probability limit of 7.384 × 1521.0 = 11,231 µm⁴ too. Separate S charts from the same baseline would not have flagged it: its standard deviations, 11.1 and 11.5 µm, are below the S chart limits of 11.9 and 14.9 µm. What changed is the combination: both journals spread more, and they stopped moving together (r = −0.40 in this subgroup, against a positive correlation in the baseline). The tool holder's clamping screw had worked loose, so the insert shifted slightly between cuts. The screw was torqued and checked at the next tool change.

How to read the results

  • A point above the UCL means the joint spread has grown. Look at each variable's standard deviation and at the correlation in that subgroup to see whether a variance rose, the correlation changed, or both.
  • Points near zero happen when the subgroup's points fall almost on a line or one variable barely varies. Check for a stuck gauge or values recorded too coarsely.
  • Pair it with the T² chart. The generalized variance chart watches spread; the T² chart watches the mean. Read the spread chart first, as with Xbar and S charts.

Common mistakes

  • Expecting 0.27% false alarms. With small subgroups, the 3-sigma limits flag about one in-control subgroup in 50 when p = 2. Use probability limits if that matters.
  • Relying on it alone. Different covariance matrices can have the same determinant. If one variance rises while another falls, |S| may barely move, so keep an eye on the individual standard deviations.
  • Subgroups too small. n must be larger than p, or |S| is zero by construction. Larger subgroups give a much more stable |S|.
  • Estimating |Σ| from data with special causes. As with any Phase I baseline, remove subgroups with assignable causes and recompute.

Frequently asked questions

What does the determinant of the covariance matrix measure?

For two variables, |S| is proportional to the squared area of the ellipse that holds most of the points. More spread in either variable, or a weaker correlation, makes that ellipse larger.

Why is the lower control limit zero?

Because b₁ − 3√b₂ is negative for the subgroup sizes used in practice. The distribution of |S| is skewed with a long upper tail, so three standard deviations below the mean falls below zero.

Can I use it with individual observations?

No. |S| needs at least p + 1 units in each subgroup. With individual observations, watch the mean with a T² chart and check the stability of the covariance over a moving window instead.

How is it different from an S chart?

An S chart watches one variable's standard deviation. The generalized variance chart combines the variances and covariances of several variables into one number, so it also reacts when their relationship changes.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab