Hotelling T² chart: multivariate control, Phase I and II

Updated

A T² chart (Hotelling's T²) monitors two or more correlated quality characteristics with a single statistic. For each part it measures how far the vector of measurements sits from the process mean, taking into account the spread of each variable and how they move together. A part can be inside the limits for every variable on its own and still be unusual as a combination; the T² chart catches that. This chart is not the T chart for time between rare events: there the "T" means time.

When to use it

  • You measure several characteristics on each unit, and they are correlated: length and width of a molded part, two diameters turned in one setup, temperature and pressure in a reactor.
  • You want one chart with one false-alarm rate instead of a separate chart for each variable. With p separate charts the overall chance of a false alarm grows with p.
  • The variables are roughly normal, and you have a stable baseline to estimate the mean vector and covariance matrix.

For small, sustained shifts the MEWMA chart reacts sooner. To watch the spread and correlation structure rather than the mean, pair the T² chart with the generalized variance chart. If the variables are nearly independent, separate individuals charts are simpler and easier to explain.

How it works

For an observation vector x, with mean vector x̄ and sample covariance matrix S from the baseline:

T² = (x − x̄)′ S⁻¹ (x − x̄)

With two variables the formula can be written with standardized values z₁ = (x₁ − x̄₁)/s₁, z₂ = (x₂ − x̄₂)/s₂ and their correlation r:

T² = (z₁² − 2r·z₁·z₂ + z₂²) / (1 − r²)

When r is strongly positive, a part with z₁ and z₂ of the same sign is ordinary, while a part with opposite signs gets a large T².

The chart is used in two phases, and the limits differ because of how x̄ and S relate to the plotted point.

  • Phase I checks the baseline itself. Each point is one of the m observations used to compute x̄ and S, so the limit for individual observations comes from a Beta distribution. Remove points with an assignable cause, recompute, and repeat until the baseline is clean.
  • Phase II monitors new observations against the frozen x̄ and S. The new point is independent of the estimates, so the limit comes from an F distribution and is wider for small m.

For p variables, m baseline observations and α = 0.0027 (the same false-alarm rate as 3-sigma limits):

Phase I: UCL = ((m − 1)² / m) · B(1 − α; p/2, (m − p − 1)/2) Phase II: UCL = p(m + 1)(m − 1) / (m(m − p)) · F(1 − α; p, m − p) LCL = 0

As m grows, both limits approach the chi-square quantile χ²(1 − α; p), which is 11.83 for p = 2. With small baselines that approximation is too narrow in Phase II and gives false alarms. With subgroups, T² is computed from subgroup means and the limits change; the idea is the same.

Use only Test 1, a point above the UCL. T² is never negative and its distribution is strongly skewed, so the zone and run tests from the tests for special causes do not apply. The center line drawn below is the median of the T² distribution, a visual reference only.

Example

A molding cell makes a polypropylene housing with a nominal length of 120.00 mm and width of 60.00 mm. Both dimensions depend on mold temperature and packing pressure, so they shrink and grow together. In Phase I the team measured 20 parts from a stable week:

VariableMeanStandard deviation
Length (mm)120.01350.0485
Width (mm)60.00790.0372

The correlation between length and width is r = 0.862. With p = 2 and m = 20, the Phase I limit is 18.05 × B(0.9973; 1, 8.5) = 18.05 × 0.5013 = 9.05. All 20 Phase I values of T² fall below it, the largest being 5.86, so x̄ and S were frozen. The Phase II limit is (2 × 21 × 19)/(20 × 18) × F(0.9973; 2, 18) = 2.2167 × 8.3639 = 18.54.

The next ten parts:

Part21222324252627282930
Length (mm)119.957120.040120.044120.013119.902120.011120.080119.993120.055120.016
Width (mm)59.99260.01060.01360.00459.93860.01459.96160.01160.05460.012
T²2.660.961.030.035.330.1725.020.961.710.02

For part 27, z₁ = (120.080 − 120.0135)/0.0485 = 1.37 and z₂ = (59.961 − 60.0079)/0.0372 = −1.26. Then T² = (1.371² + 2 × 0.862 × 1.371 × 1.259 + 1.259²)/(1 − 0.862²) = 6.44/0.257 = 25.0.

T² chart of housing length and width01020T²CL=1.6UCL=18.54LCL=014710131619222528Part
T² chart of housing length and width

Part 27 is far above the Phase II limit. Yet on individuals charts built from the Phase I moving ranges, its length (limits 119.853 to 120.174 mm) and width (59.896 to 60.120 mm) are both in control. Compare part 25: it is further from the mean on each dimension (z of −2.30 and −1.88), but both are low together, as the correlation predicts, so its T² is only 5.33. Part 27 was long and narrow at the same time. An ejector pin had stuck on that shot and stretched the part as it left the mold; the pin was freed and the parts from that shot were quarantined.

How to read the results

  • A point above the UCL says the observation is unusual as a whole. It does not say which variable caused it; look at the standardized values, the sign pattern and a scatter plot of the variables against the baseline.
  • Same-sign deviations on positively correlated variables usually give a modest T². Opposite signs break the correlation and give a large one.
  • A rising level of T² values without crossing the limit can mean a small shift; a MEWMA chart confirms that sooner.
  • Phase I signals should be investigated and removed only with an assignable cause, then the limits recomputed.

Common mistakes

  • Using Phase II limits in Phase I, or the chi-square limit for both. In Phase I the point helped estimate x̄ and S, so the Beta limit applies. Using the chi-square limit with 20 or 30 baseline points gives too many false alarms in Phase II.
  • Estimating S from data with a shift in them. A shift inflates S and hides later signals. Some practitioners estimate S from successive differences, which resists a shift in the baseline.
  • Charting variables that are not correlated. T² still works, but separate charts are easier to read and to act on.
  • Stopping at the signal. The chart tells you something is wrong with the combination; you still need to find which variable moved and why.

Frequently asked questions

Is the T² chart the same as the T chart?

No. The T² chart is Hotelling's multivariate chart for correlated measurements. The T chart plots the time between rare events, and its "T" stands for time.

How many baseline observations do I need?

More is better. The Phase II limit depends on m, and with p = 2 it falls from 18.54 at m = 20 toward 11.83 as m grows. A common guide is at least 20 to 25 observations, and more when p is larger, since m must exceed p by a good margin to estimate S well.

How do I find which variable caused a signal?

Look at each variable's standardized deviation and at the pairwise correlations. A decomposition of T² into the contribution of each variable, given the others, is another option, as is a scatter plot of the two variables with the baseline points.

Can T² detect a change in correlation?

Partly: points that break the usual relationship get large T² values, as part 27 did. For a sustained change in the spread or correlation, use the generalized variance chart.

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