Hotelling T² Chart (Multivariate)

Catches problems you miss by charting variables one at a time - for example two variables that usually rise and fall together suddenly moving apart. Each row is one observation, and the distance T², which accounts for the correlation between variables, is charted.

1Data Table

Paste a table copied from Excel into a cell (Ctrl+V). Click a column header (A, B…) before pasting to use the first line as column names. Double-click a header to rename it, right-click to insert/delete rows and columns, and formulas such as =A1*2 work too.

2Hotelling T² Chart Options

Select 2 or more related numeric variables:

How to make a Hotelling T² chart

  1. Copy the numeric variable columns to monitor together, with their headers, and paste them in.
  2. Choose 2 or more variables and set the phase (Phase I/II) and the significance level.
  3. Click Analyze and review the T² chart, the contribution bar chart, the standardized trends and the automatic interpretation.

Worked example with sample data

The example data are the temperature (°C), pressure (bar) and thickness (mm) of 30 process runs. The three variables were made to move together, and row 27 has a high temperature but a low pressure, breaking their usual relationship.

Hotelling T² chart - observation 27 is above the UCL
Hotelling T² chart - observation 27 is above the UCL

In Phase II with α = 0.05 the UCL is 9.857, and observation 27 with T² = 11.57 is above it.

The contributions at point 27 are pressure 2.183, temperature 2.18 and thickness 0.6942, so pressure and temperature produced the signal.

No single variable jumps far (the largest |z| in the trend plot is pressure at point 5, 2.332), yet T² catches the broken relationship between the two variables.

How it is calculated

With observation xᵢ, the mean vector x̄ and the sample covariance matrix S, T²ᵢ = (xᵢ - x̄)ᵀS⁻¹(xᵢ - x̄). The upper limit is (m-1)²/m · Beta(1-α; p/2, (m-p-1)/2) in Phase I and p(m+1)(m-1)/(m(m-p)) · F(1-α; p, m-p) in Phase II (m observations, p variables).

Contributions are |xᵢⱼ - x̄ⱼ|·√|S⁻¹ⱼⱼ| at the point with the largest T² (among out-of-control points if there are any).

What the results show

The T² chart, a bar chart of variable contributions and an overlay of each variable's standardized (z) trend. There must be at least 5 more observations than variables.

How to read a Hotelling T² chart

  • A point above the UCL is an observation whose combination of variables departs from the usual pattern.
  • Investigate causes starting from the variable with the largest contribution bar.
  • If no single variable deviates much in the trend plot but T² is large, the relationship between the variables has broken down.

Frequently asked questions

What are Phase I and Phase II?

Phase I sets the control limits from historical data; Phase II monitors new data against those limits. The default is Phase II.

Why not chart each variable separately?

When variables are correlated, separate charts raise more false alarms or miss changes in their relationship.

How many rows do I need?

At least the number of variables + 5.

Other chart tools