INTERMEDIATE · 180 MIN · INTERACTIVE LAB
Multivariate Statistical Process Control (MSPC) – Hotelling's T², Generalized Variance & Multivariate EWMA Control Charts: Complete Guide and Minitab Practice
Two pipes pass their individual strength checks. One follows the usual relationship between yield and tensile strength; the other breaks it. Can your control chart tell them apart? Multivariate statistical process control (MSPC) can.
What you will be able to do
Understand and calculate
- Explain why correlated variables require joint monitoring.
- Calculate variance, covariance, correlation and T² by hand.
- Distinguish joint location, dispersion and persistent drift.
Interpret and apply
- Establish a representative historical baseline.
- Recreate four Minitab chart types and interpret five panels.
- Investigate a signal without confusing control with specification compliance.
Prerequisites: basic means, standard deviations and control limits. All examples use synthetic teaching data, not production records.
Before the mathematics: why do we need multivariate SPC?
Univariate SPC monitors one characteristic at a time. Multivariate SPC monitors several related characteristics as a vector. A process can look normal on each separate chart while its usual relationship between characteristics changes.
Separate charts see two acceptable readings
The joint chart sees an abnormal combination
Neither picture determines whether a pipe meets its engineering specifications. Statistical control and product acceptance are separate decisions.
What does one point represent?
| Design | Input | One plotted point |
|---|---|---|
| Individuals | One paired YS/UTS specimen | Its two-dimensional observation |
| Subgroups | Ten paired specimens per subgroup | T²: subgroup means; GV: subgroup covariance; MEWMA: smoothed subgroup means |
Our Minitab exercises use subgroups of ten. The pipe A/B introduction uses individuals, so its numerical statistic and limit must not be compared directly with the saved subgroup chart.
The hidden signal: two variables, one story
Yield strength (YS) and ultimate tensile strength (UTS) often move together. A pipe with unusually high YS and low UTS may be suspicious even if each value is within its own control limits. Control limits describe statistical behaviour, not engineering specifications.
Pipe A
515 MPa YS, 615 MPa UTS. Both rise together.
\(T^2 = 2.5\)Pipe B
515 MPa YS, 585 MPa UTS. The usual relationship breaks.
\(T^2 = 22.5\)Try it: move the correlation
Which detective answers which question?
| Chart | What it remembers | What it detects | What it cannot establish |
|---|---|---|---|
| Shewhart | Current point | Large individual mean or spread changes, depending on chart | Unusual joint combinations |
| CUSUM | Accumulated deviations | Small sustained univariate mean shift | Changing covariance |
| EWMA | Weighted history | Univariate drift | Joint location |
| T² | Current vector | Joint location change | Direction or cause by itself |
| GV | Current subgroup covariance | Change in determinant | Every possible covariance change |
| MEWMA | Weighted vector history | Persistent joint location shift | Dispersion change specifically |
Essential vocabulary
A row of paired measurements, not separate unrelated samples.
How two deviations move together, in product units.
Standardized covariance, between \(-1\) and \(+1\).
Measurements collected under comparable short-term conditions.
Expected number of plotted points before a signal.
A diagnostic contribution analysis, not proof of causality.
Covariance: the process fingerprint
A variance describes the spread of one variable. Covariance describes how two variables move together. Correlation scales covariance to a unitless number between \(-1\) and \(+1\).
YS variance (MPa²)
YS–UTS covariance (MPa²)
Correlation
\[S=\begin{bmatrix}100&80\\80&100\end{bmatrix},\quad r=\frac{80}{10(10)}=0.8\]
The diagonal entries are variances; off-diagonal entries are covariances. Both standard deviations equal 10 MPa. Positive covariance means the variables tend to move in the same direction.
Calculate it from measurements
For paired observations, the sample covariance is \[s_{xy}=\frac{\sum_{i=1}^{N}(x_i-\bar x)(y_i-\bar y)}{N-1}\] where \(N\) is the number of paired observations and the bars represent sample means. Replacing \(y\) with \(x\) gives the sample variance.
For YS values 480, 490, 500, 510, 520 and UTS values 580, 595, 590, 615, 620, the means are 500 and 600. The sums of squared deviations are 1000 and 1150; cross-products total 1000.
| YS | UTS | \(\text{YS} - 500\) | \(\text{UTS} - 600\) | \((\text{YS} - 500)^2\) | \((\text{UTS} - 600)^2\) | Cross-product |
|---|---|---|---|---|---|---|
| 480 | 580 | -20 | -20 | 400 | 400 | 400 |
| 490 | 595 | -10 | -5 | 100 | 25 | 50 |
| 500 | 590 | 0 | -10 | 0 | 100 | 0 |
| 510 | 615 | 10 | 15 | 100 | 225 | 150 |
| 520 | 620 | 20 | 20 | 400 | 400 | 400 |
| Sum | 0 | 0 | 1000 | 1150 | 1000 |
Divide each sum by \(N-1=4\), not 5, because these are sample estimates. The standard deviations are \(\sqrt{250}=15.81\) and \(\sqrt{287.5}=16.96\) MPa. Their correlation is \(250/\sqrt{250(287.5)}=0.9325\). Notice this small teaching sample has its own covariance matrix; do not substitute it for the historical 100/80 matrix.
\[S=\begin{bmatrix}250&250\\250&287.5\end{bmatrix}\]
With rational subgroups, estimate within-subgroup covariance rather than blindly using overall covariance. For equal subgroup sizes, average their covariance matrices. For unequal sizes, weight by degrees of freedom. Individual-observation charts may use successive-difference estimators.
Use comparable grades, sizes, test orientations and measurement methods. Do not discard points simply because they signal; investigate and document assignable causes.
Build a historical covariance matrix from real measurements — not an invented matrix
The fixed matrix in the saved project is a teaching assumption. When you monitor an actual production process, estimate the mean and covariance from a representative, stable baseline. Here is an independent Phase I example using only the first 40 subgroups of the original practice dataset (400 measurements). These estimates are separate from the saved chart settings.
Step 1 — establish location
Mean YS = 500.4565 MPa
Mean UTS = 600.2878 MPa
40 equal-size subgroups, each containing 10 paired specimens.
Step 2 — estimate within-subgroup variation
\[S_{\mathrm{pool}}=\begin{bmatrix}98.6679&88.3904\\88.3904&114.0702\end{bmatrix}\]
Units: MPa². This is not the covariance of the 40 subgroup averages.
Why pool the individual subgroup matrices?
\[S_{\mathrm{pool}}=\frac{\sum_{i=1}^{m}(n_i-1)S_i}{\sum_{i=1}^{m}(n_i-1)}\]
For equal sizes, simply average the subgroup covariance matrices. For this example the denominator is \(40 \times 9 = 360\). The pooled estimate describes short-term variation, while covariance across all 400 readings can include between-subgroup movements.
Estimate and store historical parameters in Minitab
- Open the T²/GV worksheet. Use
Data → Subset Worksheetto create a baseline worksheet containing only subgroup IDs 1 through 40. - Create a T² chart using the YS and UTS columns and Subgroup as subgroup identifiers. Leave historical parameters unspecified so Minitab estimates them.
- Review the chart for instability; investigate special causes and document any justified exclusions. A historical window is not automatically stable.
- In T² Options → Storage, select means and covariance matrices. Run the analysis and inspect the saved matrix with Data → Display Data. Compare the values against the teaching estimate above, allowing for estimator differences.
- For prospective monitoring, copy the historical matrix and means to the worksheet containing future observations. Enter the actual number of baseline subgroups used (40 in this example, if none were excluded). Do not recalculate the reference from the future data every time an alarm occurs.
Before deployment, confirm the variables share a stable joint distribution, the paired measurements are meaningful, the matrix is positive definite and sampling assumptions are adequate. A near-singular matrix is a warning of redundant variables or insufficient information.
01 · Joint location
Hotelling's T²: detect a joint mean shift
\[T_i^2=n(\bar{\mathbf x}_i-\boldsymbol\mu_0)^T S^{-1}(\bar{\mathbf x}_i-\boldsymbol\mu_0)\]
Here \(n\) is subgroup size, \(\bar{\mathbf x}_i\) the subgroup mean vector, \(\boldsymbol\mu_0\) the reference mean vector, and \(S\) the reference covariance matrix. The inverse covariance adjusts the distance for natural spread and relationships.
A superscript T means transpose: it turns a column into a row. The superscript \(-1\) denotes the inverse matrix, not the reciprocal of each entry. Multiply the row of mean deviations, the inverse covariance, and the column of deviations in that order; the result is one number.
For one observation and two variables with standardized deviations \(z_1,z_2\) and correlation \(r\): \[T^2=\frac{z_1^2-2rz_1z_2+z_2^2}{1-r^2}\]
Pipe A gives 2.5 and Pipe B gives 22.5 when both standard deviations are 10 MPa and correlation is 0.8. With known population parameters the theoretical limit is a chi-square quantile; estimated parameters require chart-specific limits. The saved Minitab UCL is 27.1452, not the illustrative 11.83 limit used for the individual-observation lab.
Why the upper control limits differ
For a known mean and known covariance, independent normal subgroup means have \(T^2\sim\chi_p^2\). For \(p=2\) and upper-tail probability 0.0027, the quantile is 11.829. This is the introductory ellipse threshold. The saved chart instead uses Minitab's historical-sample-count setting of 2 and returns 27.1452. Use that number to reproduce the saved project, not as a general production recommendation.
When the parameters are estimated, the reference sample size, the estimator and whether the plotted observations were used to estimate the baseline affect the distribution.
Phase I and Phase II limits need not match. For a new production chart use Minitab's documented formula for that design rather than copying either exercise limit. The MEWMA limit also depends on the weight and run-length target.
T² control chart
Reveal full saved-project plot rendering
Show step-by-step Minitab setup — T²
Start with: T2_GV_Practice.csv. If you have never imported a CSV, follow the first-time setup guide first. Activate the correct worksheet. You should have 600 rows, four named numeric columns, and 60 groups of ten.
1–2. Create the stored matrix M1
Do this once per worksheet. Follow Step B: type 100, 80 and 80, 100 into C5:C6, then use Data → Copy → Columns to Matrix to store them as M1. Check it with Data → Display Data (two rows: 100, 80 and 80, 100) before you continue.
3. Open the chart and fill in its main dialog
Select Stat → Control Charts → Multivariate Charts → T². Click in each field before entering its value. Use the names or numbers shown; do not enter both sets.
C3 C4Subgroup sizesC1Next click T² Options; do not submit the main dialog yet.
Variables: C3 = YS_MPa, C4 = UTS_MPa. Subgroup sizes: C1 = Subgroup identifies the group of each row. You can alternatively enter the constant 10 when all groups are contiguous and equal-sized, but use C1 for the saved exercise. Never enter C2 or 60 here.
4. Enter historical parameters in the Options dialog
Click T² Options → Parameters. Use the values below. These fields are different from the main dialog.
500 600Covariance matrix → MatrixM1Number of samples used to calculate covariance2Use Copy instead of M1 only if that is the actual name of the verified stored matrix. Leave stages and unrelated settings at defaults.
Important: the saved exercise uses historical count 2, even though this is a theoretical covariance matrix. This reproduces the project, not a defensible production baseline. The number is neither the number of variables nor the subgroup size. For a real estimated reference use the actual historical sample count required by Minitab.
5. Run the chart and check the output
- Confirm the Options dialog, then click OK in the main chart dialog.
- In the Navigator, select the new T² analysis. The output shows the plotted chart and any test results. The horizontal axis is subgroup number, not individual specimen number.
- Compare the displayed upper limit with 27.1452, allowing for rounding. There should be 60 plotted statistics . Expected signal locations: 41 and 51.
- Hover over a plotted point in the graph to inspect its subgroup and statistic where supported. Inspect the test-results/decomposition table for the flagged points and variables. The table may display tiny p-values as 0.000; see the lesson's actual saved-output transcription. A signal is a reason to investigate, not proof of a defect.
Official Minitab historical parameter instructions for T² · If your chart does not match, troubleshoot here.
The chart detects a joint deviation, not necessarily a change in just one variable. Inspect individual measurements and decomposition before assigning a cause.
02 · Joint dispersion
Generalized Variance: detect joint dispersion
\[GV_i=\det(S_i)=s_1^2s_2^2(1-r^2)\]
For two variables, \(s_1,s_2\) are subgroup standard deviations and \(r\) is their subgroup correlation. The determinant measures joint dispersion, not the arithmetic sum of variances.
Both SDs 10; correlation 0.8
Both SDs 15; correlation 0.8
Both SDs 10; correlation 0.2
Even when each standard deviation is unchanged, weaker correlation can increase generalized variance. Conversely, different covariance matrices can have the same determinant. A sign reversal of correlation alone is invisible to this statistic.
Live lab: change spread without moving the center
GV control chart
Reveal full saved-project plot rendering
Show step-by-step Minitab setup — Generalized Variance
Start with: T2_GV_Practice.csv. If you have never imported a CSV, follow the first-time setup guide first. Activate the correct worksheet. You should have 600 rows, four named numeric columns, and 60 groups of ten.
1–2. Create the stored matrix M1
Do this once per worksheet. Follow Step B: type 100, 80 and 80, 100 into C5:C6, then use Data → Copy → Columns to Matrix to store them as M1. Check it with Data → Display Data (two rows: 100, 80 and 80, 100) before you continue.
3. Open the chart and fill in its main dialog
Select Stat → Control Charts → Multivariate Charts → Generalized Variance. Click in each field before entering its value. Use the names or numbers shown; do not enter both sets.
C3 C4Subgroup sizesC1Next click Gen Var Options; do not submit the main dialog yet.
Variables: C3 = YS_MPa, C4 = UTS_MPa. Subgroup sizes: C1 = Subgroup identifies the group of each row. You can alternatively enter the constant 10 when all groups are contiguous and equal-sized, but use C1 for the saved exercise. Never enter C2 or 60 here.
4. Enter historical parameters in the Options dialog
Click Gen Var Options → Parameters. Use the values below. These fields are different from the main dialog.
M1Use Copy instead of M1 only if that is the actual name of the verified stored matrix. Leave stages and unrelated settings at defaults.
GV has no mean or historical sample-count entry. Its statistic concerns dispersion.
5. Run the chart and check the output
- Confirm the Options dialog, then click OK in the main chart dialog.
- In the Navigator, select the new Generalized Variance analysis. The output shows the plotted chart and any test results. The horizontal axis is subgroup number, not individual specimen number.
- Compare the displayed upper limit with 11446.0181, allowing for rounding. There should be 60 plotted statistics . Expected signal locations: 46 and 51.
- Hover over a plotted point in the graph to inspect its subgroup and statistic where supported. Read the associated test-results output for the flagged subgroups. A signal is a reason to investigate, not proof of a defect.
Official Minitab historical parameter instructions for Generalized Variance · If your chart does not match, troubleshoot here.
The saved center line is 3600 and lower limit is zero. Subgroup 46 illustrates a dispersion disturbance without a T² signal.
03 · Location + dispersion
T²–Generalized Variance: the two-panel detective
Read both panels at the same subgroup index. Their alarms answer different questions; neither establishes a root cause.
Neither signals
Location only
Dispersion only
Both signal
Conceptual mini-charts; actual saved plots follow.
| T² | GV | Interpretation | Next step |
|---|---|---|---|
| Within | Within | No alarm from either statistic | Continue monitoring; still check specifications. |
| Signal | Within | Joint location alarm (41) | Review mean shifts, decomposition and individual charts. |
| Within | Signal | Joint determinant alarm (46) | Check specimen spread, correlations and measurement repeatability. |
| Signal | Signal | Both alarms (51) | Investigate dispersion first, then assess location against the reference. |
T² control chart
GV control chart
Reveal full saved-project plot rendering
Show step-by-step Minitab setup — T²-Generalized Variance
Start with: T2_GV_Practice.csv. If you have never imported a CSV, follow the first-time setup guide first. Activate the correct worksheet. You should have 600 rows, four named numeric columns, and 60 groups of ten.
1–2. Create the stored matrix M1
Do this once per worksheet. Follow Step B: type 100, 80 and 80, 100 into C5:C6, then use Data → Copy → Columns to Matrix to store them as M1. Check it with Data → Display Data (two rows: 100, 80 and 80, 100) before you continue.
3. Open the chart and fill in its main dialog
Select Stat → Control Charts → Multivariate Charts → T²-Generalized Variance. Click in each field before entering its value. Use the names or numbers shown; do not enter both sets.
C3 C4Subgroup sizesC1Next click T²-GV Options; do not submit the main dialog yet.
Variables: C3 = YS_MPa, C4 = UTS_MPa. Subgroup sizes: C1 = Subgroup identifies the group of each row. You can alternatively enter the constant 10 when all groups are contiguous and equal-sized, but use C1 for the saved exercise. Never enter C2 or 60 here.
4. Enter historical parameters in the Options dialog
Click T²-GV Options → Parameters. Use the values below. These fields are different from the main dialog.
500 600Covariance matrix → MatrixM1Number of samples used to calculate covariance2Use Copy instead of M1 only if that is the actual name of the verified stored matrix. Leave stages and unrelated settings at defaults.
Important: the saved exercise uses historical count 2, even though this is a theoretical covariance matrix. This reproduces the project, not a defensible production baseline. The number is neither the number of variables nor the subgroup size. For a real estimated reference use the actual historical sample count required by Minitab.
5. Run the chart and check the output
- Confirm the Options dialog, then click OK in the main chart dialog.
- In the Navigator, select the new T²-Generalized Variance analysis. The output shows the plotted chart and any test results. The horizontal axis is subgroup number, not individual specimen number.
- Compare the displayed upper limit with 27.1452 (T²) and 11446.0181 (GV), allowing for rounding. There should be 60 plotted statistics in each panel. Expected signal locations: T²: 41 and 51; GV: 46 and 51.
- Hover over a plotted point in the graph to inspect its subgroup and statistic where supported. Inspect the test-results/decomposition table for the flagged points and variables. The table may display tiny p-values as 0.000; see the lesson's actual saved-output transcription. A signal is a reason to investigate, not proof of a defect.
Official Minitab historical parameter instructions for T²-Generalized Variance · If your chart does not match, troubleshoot here.
Mean signal only
Dispersion signal only
Both panels signal
Read the dispersion panel first. An unstable covariance structure undermines the interpretation of the mean chart. Investigate variability, verify measurements and then reassess joint location.
04 · Persistent shift
MEWMA: remember the past
\[\mathbf Z_i=\lambda(\bar{\mathbf x}_i-\boldsymbol\mu_0)+(1-\lambda)\mathbf Z_{i-1}\]
Start with a zero vector. The weight \(\lambda\) determines how much the newest subgroup contributes. Smaller weights retain more history.
\[\Sigma_{Z_i}=\frac{\lambda}{2-\lambda}(1-(1-\lambda)^{2i})\frac{S}{n}\]
\[M_i=\mathbf Z_i^T\Sigma_{Z_i}^{-1}\mathbf Z_i\]
These formulas assume independent equal-sized subgroups and fixed reference covariance. The weighted vector's covariance changes during startup. MEWMA limits are calibrated for run-length performance rather than borrowed from T².
Live MEWMA calculation on a joint shift
Illustrative independent subgroups of ten, reference covariance 100/80. Both variables shift in opposite directions by the amounts you choose from subgroup 11 to 25. This is a noise-free teaching simulation, not the saved dataset.
Dashed: current T². Solid: MEWMA statistic. Shaded: imposed shift. No alarm threshold is plotted because a different weight requires a calibrated limit.
MEWMA control chart
Reveal full saved-project plot rendering
Show step-by-step Minitab setup — Multivariate EWMA
Start with: MEWMA_Practice.csv. If you have never imported a CSV, follow the first-time setup guide first. Activate the correct worksheet. You should have 600 rows, four named numeric columns, and 60 groups of ten.
1–2. Create the stored matrix M1
The MEWMA worksheet needs its own M1, because matrices belong to one worksheet. Follow Step B: type 100, 80 and 80, 100 into C5:C6, then use Data → Copy → Columns to Matrix to store them as M1. Check it with Data → Display Data (two rows: 100, 80 and 80, 100) before you continue.
3. Open the chart and fill in its main dialog
Select Stat → Control Charts → Multivariate Charts → Multivariate EWMA. Click in each field before entering its value. Use the names or numbers shown; do not enter both sets.
C3 C4Subgroup sizesC1ARL200Weight0.20Next click MEWMA Options; do not submit the main dialog yet.
Variables: C3 = YS_MPa, C4 = UTS_MPa. Subgroup sizes: C1 = Subgroup identifies the group of each row. You can alternatively enter the constant 10 when all groups are contiguous and equal-sized, but use C1 for the saved exercise. Never enter C2 or 60 here.
ARL is the target average number of plotted subgroups before a false alarm under the reference model. Set 200 (documented default; the saved MEWMA command does not override ARL). Weight 0.20 gives 20% weight to the current vector.
4. Enter historical parameters in the Options dialog
Click MEWMA Options → Parameters. Use the values below. These fields are different from the main dialog.
500 600Covariance matrixM1Use Copy instead of M1 only if that is the actual name of the verified stored matrix. Leave stages and unrelated settings at defaults.
No historical sample-count entry is needed for this chart.
5. Run the chart and check the output
- Confirm the Options dialog, then click OK in the main chart dialog.
- In the Navigator, select the new Multivariate EWMA analysis. The output shows the plotted chart and any test results. The horizontal axis is subgroup number, not individual specimen number.
- Compare the displayed upper limit with 9.6476, allowing for rounding. There should be 60 plotted statistics . Expected signal locations: 45 through 60.
- Hover over a plotted point in the graph to inspect its subgroup and statistic where supported. Read the associated test-results output for the flagged subgroups. A signal is a reason to investigate, not proof of a defect.
Official Minitab historical parameter instructions for Multivariate EWMA · If your chart does not match, troubleshoot here.
The saved statistic is 9.2131 at subgroup 43 and 12.2859 at subgroup 45. The first crosses neither the saved UCL nor the test threshold; the latter does. A sustained signal is evidence of a persistent joint disturbance, not sixteen proven independent root causes.
Behind the chart: calculate the statistics yourself
Hotelling's T² — why the inverse matrix matters
Think of the matrix as a map of normal directions of movement. For positively correlated strengths, moving both upward is less unusual than moving one upward and the other downward by the same amount.
\[S^{-1}=\frac{1}{3600}\begin{bmatrix}100&-80\\-80&100\end{bmatrix}\]
The determinant is 3600. For Pipe B the deviation vector is \((15,-15)^T\). Multiplication yields:
\[T^2=\frac{100(15)^2-160(15)(-15)+100(-15)^2}{3600}=22.5\]
For Pipe A, both deviations are positive and the cross term subtracts rather than adds, yielding 2.5. The same two absolute deviations can produce a ninefold difference in squared distance.
Generalized Variance — from subgroup measurements to a control limit
Suppose the within-subgroup covariance is the reference matrix. Its determinant is:
\[100(100)-80^2=3600\]
If both standard deviations grow by 50% while correlation remains 0.8, the variances become 225 and covariance becomes 180. The determinant becomes 18225. Doubling both standard deviations would multiply the determinant by 16 for two variables.
For independent multivariate normal subgroups of size \(n\), with \(p\) variables and population covariance \(\Sigma\), the conventional unadjusted determinant has mean and variance:
\[\begin{aligned}E(|S_i|)&=b_1|\Sigma|\\ \operatorname{Var}(|S_i|)&=b_2|\Sigma|^2\end{aligned}\]
\[b_1=\frac{\prod_{j=1}^{p}(n-j)}{(n-1)^p}\]
\[b_2=\frac{\prod_{j=1}^{p}(n-j)}{(n-1)^{2p}}\left[\prod_{j=1}^{p}(n-j+2)-\prod_{j=1}^{p}(n-j)\right]\]
Moment-based limits for the raw determinant use \(b_1|\Sigma|\pm3\sqrt{b_2}|\Sigma|\), truncated at zero. A chart using the reference determinant as its center line can scale the relative standard deviation differently; see the specific Minitab calculation below. Always match the plotted statistic and the software's estimator to its limit formula.
Reproduce Minitab's Generalized Variance control limits
The preceding raw-determinant moments are useful for understanding the sampling distribution. Minitab's historical-covariance GV convention uses the reference determinant as its center line and scales the relative standard deviation by the bias factor:
\[\begin{aligned}\text{CL}&=|S|\\ \text{UCL}&=|S|\left(1+3\frac{\sqrt{b_2}}{b_1}\right)\\ \text{LCL}&=\max\left(0,\ |S|\left(1-3\frac{\sqrt{b_2}}{b_1}\right)\right)\end{aligned}\]
For two variables and 10 observations per subgroup, the constants are \(b_1=8/9\) and \(b_2=2736/6561\). With reference determinant 3600, these yield CL = 3600, UCL = 11,446.0181 and LCL = 0, exactly matching the saved Minitab output. The plotted points themselves are raw sample determinants, not divided by the bias factor. Minitab's GV methods and formulas.
MEWMA — three observations, step by step
Let the subgroup mean shift by \(+2\) MPa in YS and \(-2\) MPa in UTS. With weight 0.2, the first weighted vector is \((0.4,\ -0.4)\), the second is \((0.72,\ -0.72)\), and the third is \((0.976,\ -0.976)\).
| Subgroup | YS weighted deviation | UTS weighted deviation |
|---|---|---|
| 1 | 0.400 | −0.400 |
| 2 | 0.720 | −0.720 |
| 3 | 0.976 | −0.976 |
| 4 | 1.181 | −1.181 |
| 5 | 1.345 | −1.345 |
If subgroup 6 returns exactly to the historical mean, its deviation vector is zero, so the previous weighted vector is multiplied by 0.8. The memory decays instead of instantly resetting. This is unlike standard T², which uses the current subgroup alone.
Control limits are not interchangeable
For known population parameters and multivariate normal subgroup means, \(T^2\) has a chi-square distribution with \(p\) degrees of freedom. Estimated-parameter charts may require F or beta limits depending on Phase I or Phase II and the estimation method. MEWMA needs its own run-length-calibrated UCL.
Do not compare detection delays between charts unless their false-alarm behaviour is comparable. A faster alarm in a single dataset is not proof of universal superiority.
Which control chart should I use?
One variable
Shewhart for current means or spread; CUSUM and EWMA for persistent mean changes.
Several variables
T² for joint location; GV for dispersion; combined for both; MEWMA for persistent shifts.
Shewhart plots the current value; CUSUM accumulates standardized deviations beyond a reference allowance; EWMA weights the current and previous values. T² and MEWMA additionally account for covariance.
\[C_i^+=\max(0,C_{i-1}^++y_i-k)\]
Here \(y_i\) is a standardized observation and \(k\) is a reference allowance. Compare the statistic to a decision interval. The lower CUSUM accumulates negative deviations analogously.
\[E_i=\lambda x_i+(1-\lambda)E_{i-1}\]
EWMA uses observation \(x_i\) and smoothing weight \(\lambda\). For fair comparisons, calibrate charts to comparable in-control average run lengths.
Chart-selection lab
Choose an appropriate individuals or subgroup chart for immediate changes.
New to Minitab? Start here before creating any chart
This lab uses the desktop Minitab Statistical Software interface. Menu wording and screen layout can vary by release. These are illustrated controls, not screenshots; the menu paths below were checked against Minitab's official help. Use an installed or licensed instance with multivariate charts available.
Meet the three parts of your workspace
Analyses appear here after running them.
Charts, test results and messages.
C1, C2, C3… contain your data. Select the relevant worksheet tab before running an analysis.
A project can contain several worksheets and analyses. A CSV contains data only; a saved Minitab project preserves the analysis and its worksheet objects.
Step A — download and import the first worksheet
- Download T2_GV_Practice.csv to a folder you can find. This file is used for T², GV and combined charts. The separate MEWMA_Practice.csv is used only for MEWMA.
- Open Minitab, choose File → Open, browse to the downloaded CSV, select it, and click Open. If necessary change the file-type filter to show text/CSV files.
- If import options appear, select comma as the delimiter, and indicate that the first record contains column names. Preview the worksheet; verify four separate columns, not one long text column. Click OK/Open as appropriate.
- Check the shaded naming row underneath C1–C4. The headers must be Subgroup, Specimen, YS_MPa and UTS_MPa. The first numbered data row must contain numbers, not header text.
- Verify there are 600 measurement rows, subgroup IDs 1–60, and specimen numbers 1–10 repeating within each subgroup. In the Navigator, select the relevant worksheet; use worksheet tabs to switch. Do not sort one measurement column independently.
| Row | C1 Subgroup | C2 Specimen | C3 YS_MPa | C4 UTS_MPa |
|---|---|---|---|---|
| 1 | 1 | 1 | 502.4074 | 596.0916 |
| 2 | 1 | 2 | 506.8647 | 611.5408 |
| 10 | 1 | 10 | 508.1447 | 606.6218 |
| 11 | 2 | 1 | 510.2003 | 607.7191 |
| 600 | 60 | 10 | Check original CSV | Check original CSV |
Numbers may display fewer decimal places because of formatting; this does not mean the stored measurements were rounded. In an analysis dialog, click the destination field before selecting a worksheet column; type its name or number or use the column list to insert it. Do not choose the specimen identifier as a response variable.
Official CSV opening instructions · How Minitab dialog fields work
Step B — create the stored covariance matrix once per worksheet
Every chart below reads the historical covariance from a stored matrix called M1. Build it once on the T² and GV worksheet and reuse it for the first three charts. The MEWMA worksheet needs its own copy, because matrices belong to one worksheet.
B1. Enter the historical covariance values
Use two unused columns. In a fresh four-column worksheet, click the shaded name cell below C5 and type Cov_YS; name C6 Cov_UTS. Press Enter to confirm each name. Now enter the four numbers into the numbered data cells (not the name row). Do not add these values to the measurement columns.
| Worksheet row | C5 Cov_YS | C6 Cov_UTS |
|---|---|---|
| 1 | 100 | 80 |
| 2 | 80 | 100 |
| 3 onward | Leave empty | Leave empty |
B2. Turn the two columns into a stored matrix
- Choose Data → Copy → Columns to Matrix.
- Click the source field, enter
C5 C6in that order (or the actual column numbers). Set the destination to the current worksheet and typeM1in its matrix field. If M1 already exists, inspect it before overwriting, or choose a free matrix number. - Open Subset the Data. Choose to include specified rows, select the row-number option and type
1:2. Confirm the subset dialog, then the copy dialog. This excludes blank trailing cells. - Do not look for an extra visible worksheet column called M1; Minitab stores matrices as worksheet objects. Choose Data → Display Data, enter
M1and click OK. In the output verify two rows and two columns containing 100,80 and 80,100. You may optionally name the stored matrix Copy. If your original MPX already contains Copy, reuse that verified matrix.
C5 C6Current worksheet matrixM1Subset: include rows1:2Click OK in Subset the Data, then OK in Columns to Matrix. Confirm the resulting matrix with Display Data.
Reference covariance is symmetric and positive definite: diagonal entries 100 and determinant 3600. Official matrix-copy guide · Viewing stored matrices.
Now open the chart you want:
Download the original practice measurements and answer tables
Both measurement files match the original Minitab worksheet values row for row. The calculated-statistics tables independently reproduce all plotted values to the precision shown in the lesson.
T² and GV — original measurements
600 observations · T², GV and combined charts
Download T2_GV_Practice.csv (CSV, 14 KB)MEWMA — original measurements
600 observations · MEWMA chart
Download MEWMA_Practice.csv (CSV, 14 KB)Data dictionary
4 column definitions · Units and meaning
Download data-dictionary.csv (CSV, 1 KB)T² and GV — answer table
60 subgroup results · Verify your T² and GV calculations
Download T2_GV_calculated_statistics.csv (CSV, 6 KB)MEWMA — answer table
60 subgroup results · Verify your MEWMA calculations
Download MEWMA_calculated_statistics.csv (CSV, 4 KB)Minitab practice: reproduce the five panels
Illustrated menu, not a native screenshot. Select a chart to open its own step-by-step guide.
The saved project uses two synthetic steel-property datasets, 60 subgroups each, 10 specimens per subgroup. Historical means are 500 and 600 MPa; the reference covariance matrix is the 100/80 matrix above.
- Import the practice CSV. Select YS_MPa and UTS_MPa in that order.
- Enter 100, 80 in one empty column and 80, 100 in a second. Use
Data → Copy → Columns to Matrixto store M1. - Verify M1 using
Data → Display Data. Select Subgroup (C1) in the Subgroup sizes field; constant 10 is an equivalent alternative for these contiguous equal-size groups. - In chart options, enter means 500 600 and historical covariance M1 where supported. For the saved T² and combined chart, the historical sample-count field was set to 2. This reproduces the saved output only; it is not an appropriate baseline estimation count for the theoretical matrix. See the chart-specific expandable instructions.
- Repeat for the standalone T², GV and combined chart. Compare the output to the saved figures above.
- Open the MEWMA dataset and repeat with the Multivariate EWMA chart. Use ARL 200. Reproduce weight 0.20 first; then try 0.10 and 0.40 and record the first signal.
For a real baseline, use stable subgroups only, leave historical parameters blank initially, and store estimates in chart options. Use the actual number of historical subgroups if a count is requested. Never fabricate a sample count for population parameters.
Saved plot limits and values are reproduced above; precise reproduction requires matching the original options. The verified original worksheet CSVs are available in the Downloads section above. Each contains exactly 600 paired observations.
My Minitab output looks different — troubleshoot before continuing
| Symptom | Check and fix |
|---|---|
| CSV appears in one column | Reopen with comma delimiter and preview four columns. |
| C3-T or C4-T; variables unavailable | A strength column is text. Reimport numeric values with the correct decimal separator and header setting. |
| 600 points or unexpected group sizes | Use Subgroup (C1) or constant 10, not Specimen or constant 1. Verify the 60 groups have 10 consecutive paired rows. |
| M1 missing from the dialog | Activate the correct worksheet. Use Data → Display Data to check matrix storage; create M1 there or copy it using Data → Copy → Matrices to Matrices. |
| Matrix size or positive-definiteness error | Use only rows 1:2 of C5 C6. Verify 100,80 / 80,100. Do not include header text, empty cells or extra columns. |
| Different T² UCL | Check means 500 600, M1, historical count 2 for saved exercise, subgroup IDs and default stages. |
| Different GV UCL | Check historical covariance (not an overall covariance recalculated from all rows), group size and data file. |
| Different MEWMA UCL or signals | Use MEWMA_Practice.csv, ARL 200, weight .20, historical means and covariance; preserve chronology. |
| Cannot locate test results | Select the analysis in Navigator and inspect its output, not only the graph editor. Compare the saved results section. |
| Numbers differ only in final displayed decimals | Minitab rounds graph labels. Compare unrounded stored statistics or the answer tables before diagnosing an error. |
Save your work and export a chart
- Choose File → Save Project As (or the equivalent Save As command in your release). Choose a new name such as MSPC_student_practice.mpx. Save the project rather than only a CSV so the worksheet matrices and analyses are retained.
- To save a native chart image, select the graph in the output, right-click it and use Save Graph As or the available graph export command. Choose PNG and a descriptive filename. The exported graph is distinct from the recreated teaching SVG.
- To preserve the associated tables, select the analysis output and use the available save/export or copy output command. Keep test results with the graph.
Official project-saving instructions · Official graph and output export instructions
Reopen the saved project and verify the correct worksheets, matrices, charts and outputs are present. This is your final practical checkpoint.
Reproduce the saved results, one subgroup at a time
Subgroup 40 · Reference-window example
Subgroup 41 · Location signal
Subgroup 46 · Dispersion signal
Subgroup 51 · Both signals
Compare the ten-point clouds using the same axes. Moving the cloud's center and spreading the cloud apart are distinct disturbances.
Subgroup 41 — a mean shift in opposite directions
The actual subgroup averages are 510.0000 MPa and 590.0000 MPa. With subgroup size 10 and reference means 500 and 600, the deviations are +10 and −10. Inserting these into the covariance-adjusted distance gives:
\[T^2=10\frac{100(10)^2-160(10)(-10)+100(-10)^2}{3600}=100.\]
Compare 100 with 27.1452: investigate. The dispersion statistic is 3148.86, below 11446.02, so this particular signal is a location disturbance without a determinant signal.
Subgroup 46 — spread changes, not the mean
Calculate each sample variance and covariance from the ten paired rows (divide by nine). The entries below come from the original worksheet.
\[S_{46}=\begin{bmatrix}384.767&410.554\\410.554&561.262\end{bmatrix}\]
Its determinant is 47400.30 MPa⁴, versus UCL 11446.02. Yet its \(T^2\) is only 3.6050. A conventional location chart could miss this dispersion disturbance.
Subgroup 51 — both panels demand attention
Actual mean YS: 510.0000 MPa; actual mean UTS: 590.0000 MPa. \(T^2 = 99.9999\) and \(\text{GV} = 135264.98\). Check measurement integrity and spread first; then investigate the process shift.
Subgroup 45 — a memory chart crosses its threshold
The weighted deviation vector at 45 is (0.210616, -2.044738) MPa. Apply the startup covariance multiplier to the reference covariance of the subgroup mean, then compute the quadratic form. The result is 12.285905, exceeding 9.647594. The preceding point is 6.533482. The first signal is 45, not the first moment a change may have started.
Use the downloadable answer tables to check all 60 points, not just the alarms. These calculations match the saved graphs to four decimals.
Read the actual Minitab output: from alarm to evidence
Investigate location.
Investigate spread.
Investigate spread and location.
Investigate sustained drift.
These tables transcribe the saved Minitab project output groups, not hypothetical results or screenshots. The five graphs above are redrawn from saved graph data. Read the software output alongside each graph.
Matrix Copy — historical covariance input
| Variable | YS | UTS |
|---|---|---|
| YS | 100 | 80 |
| UTS | 80 | 100 |
This is the actual matrix stored in the project, not an estimate of the 60 observed subgroups. It represents the assumed reference population. It tells Minitab that each strength has a standard deviation of 10 MPa and their correlation is 0.8.
500 600Covariance matrixM1Use only the fields supported by the selected chart. GV does not need means.
Test Results for T² Chart of YS_MPa, UTS_MPa
| Test | Point | Variable | P-Value (full precision rounded) |
|---|---|---|---|
| Greater Than UCL | 41 | YS_MPa | 0.000000386847 |
| Greater Than UCL | 41 | UTS_MPa | 0.000000386847 |
| Greater Than UCL | 51 | YS_MPa | 0.000000386849 |
| Greater Than UCL | 51 | UTS_MPa | 0.000000386850 |
Minitab stores these tiny p-values even though its display may round them to 0.0000. Zero after rounding does not mean the probability is literally zero. Both variables are implicated at both points; this does not establish which process mechanism caused the disturbance.
Point 41
\(T^2 \approx 100\) versus UCL 27.15. \(\text{GV} \approx 3149\) versus UCL 11446. Investigate a joint location shift.
Point 51
\(T^2 \approx 100\) and \(\text{GV} \approx 135265\). Investigate dispersion first, then location. Both panels signal.
Test Results for Generalized Variance Chart of YS_MPa, UTS_MPa
TEST. One point beyond control limits.
Test Failed at points: 46, 51
Identical test results appear in the standalone GV and combined output. Point 46 is especially informative: its \(T^2\) is only about 3.61, while GV is about 47,400. The mean can remain near the target while individual specimens become much more inconsistent.
Test Results for MEWMA Chart of YS_MPa, UTS_MPa
TEST. One point beyond control limits.
Test Failed at points: 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60
At point 43 the statistic is about 9.21, below 9.65. At point 44 it drops to about 6.53. At point 45 it exceeds the limit at 12.29. A memory chart can fluctuate during a sustained shift; it need not rise monotonically.
Source: uploaded Hotelling_Generalized Variance_MEWMA_Minitab_Practice .mpx, saved output groups 3, 6, 10, 15 and 19. Repeated combined-chart tables are consolidated above. The original native Minitab graphical interface was not available for screenshot export.
Investigate, don't just alarm
Look for gauge problems, changes in grade or product mix, process settings, and operator or equipment changes. Decomposition helps identify variables that contribute to the signal conditional on the others; it does not prove causation.
Other applications: monitor chemical reactor temperature, pressure and concentration; mining recovery and feed grade; finance risk factors; or dimensional characteristics such as diameter and ovality. Avoid redundant variables that make the covariance matrix singular. Use representative data, independent observations, sufficient sample size and appropriate distribution assumptions.
Do it in softwareStatistics Implementation
Psst. Excel and Minitab do the heavy matrix lifting in here, and the sneakiest exam traps are hiding too.You found the secret level. Let the software crunch the matrices for you.Unlock the cheat codesHide the cheat codes
1. Excel Functions
| Function | Syntax | Purpose | When to use |
|---|---|---|---|
| AVERAGE | AVERAGE(range) | Mean | Reference center |
| VAR.S / VAR.P | VAR.S(range) | Variance | Sample / population |
| COVARIANCE.S / COVARIANCE.P | COVARIANCE.S(x,y) | Covariance | Paired sample / population |
| CORREL | CORREL(x,y) | Correlation | Relationship |
| MINVERSE / MMULT / TRANSPOSE | MINVERSE(matrix) | Matrix calculations | T² |
| MDETERM | MDETERM(matrix) | Determinant | GV |
| CHISQ.INV.RT | CHISQ.INV.RT(probability,deg_freedom) | Upper quantile | Known-parameter T² |
| F.INV.RT | F.INV.RT(probability,deg_freedom1,deg_freedom2) | Upper F quantile | Appropriate estimated-parameter formula |
2. Excel Use Cases
For paired samples in B2:B6 and C2:C6, use =VAR.S(B2:B6), =COVARIANCE.S(B2:B6,C2:C6) and =CORREL(B2:B6,C2:C6). Put the covariance matrix in F2:G3 and a row of mean deviations in I2:J2. Calculate an individual T² using =MMULT(MMULT(I2:J2,MINVERSE(F2:G3)),TRANSPOSE(I2:J2)). Multiply by subgroup size for subgroup means. Use =MDETERM(F2:G3) for generalized variance.
Build the first subgroup in Excel — exact cell layout
Open the T²/GV CSV so columns A:D are Subgroup, Specimen, YS_MPa and UTS_MPa, with headers in row 1. Rows 2:11 contain subgroup 1. Enter the following in unused cells.
| Cell | Enter exactly | Purpose |
|---|---|---|
| F2:G3 | 100,80 / 80,100 (one number per cell) | Historical covariance |
| I2 | =AVERAGE(C2:C11)-500 | YS mean deviation |
| J2 | =AVERAGE(D2:D11)-600 | UTS mean deviation |
| K2 | =10*MMULT(MMULT(I2:J2,MINVERSE(F2:G3)),TRANSPOSE(I2:J2)) | Subgroup T² |
| F5 | =VAR.S(C2:C11) | YS sample variance |
| G5 | =COVARIANCE.S(C2:C11,D2:D11) | Covariance |
| F6 | =G5 | Symmetric covariance |
| G6 | =VAR.S(D2:D11) | UTS sample variance |
| K3 | =MDETERM(F5:G6) | Subgroup GV |
Expected outputs: \(T^2 = 0.4978463\) and \(\text{GV} = 1484.0634029\). Compare with the answer-table CSV. For subgroup 2 use rows 12:21. Modern Excel returns the single-cell matrix product automatically; legacy versions may need Ctrl+Shift+Enter.
For MEWMA on the second CSV, use the same I2:J2 deviations for its first subgroup. Put 0.2 in L1 and 0 in M1:N1. In M2 enter =$L$1*I2+(1-$L$1)*M1; in N2 use =$L$1*J2+(1-$L$1)*N1.
Put subgroup number 1 in O2. In P2 enter =10*MMULT(MMULT(M2:N2,MINVERSE($F$2:$G$3)),TRANSPOSE(M2:N2))/($L$1/(2-$L$1)*(1-(1-$L$1)^(2*O2))). Expected first statistic: 0.8196323.
Populate I:J with subsequent subgroup mean deviations and O with their sequential numbers before filling M:P down. Do not compare against a fixed saved MEWMA limit after changing lambda.
3. Minitab Navigation
Stat → Control Charts → Multivariate Charts → T², Generalized Variance, T²-Generalized Variance, or Multivariate EWMA. For ordinary sample covariance, use Stat → Basic Statistics → Covariance. For within-subgroup baseline estimates, use chart-specific storage options.
4. Exam Tips
- The ASQ CSSBB and CQE bodies of knowledge do not name Hotelling’s \(T^2\), generalized variance or MEWMA charts. Treat this lesson as beyond-the-exam depth, and know the ideas the exams do test.
- Covariance and correlation: the diagonal of a covariance matrix holds variances, and correlation is covariance scaled to between \(-1\) and \(+1\).
- Control limits are not specification limits. A signal means “investigate”, never “reject the product”.
- Rational subgroups and Phase I versus Phase II: build limits from a stable baseline, then freeze them to monitor new data.
- Location versus dispersion: a means chart and a spread chart answer different questions, just like \(T^2\) and GV here.
Can you solve the case before opening Minitab?
Case A: the unusual combination
Historical means 500 and 600 MPa. Both standard deviations 10 MPa, correlation 0.8. A new individual pipe measures 510 and 590 MPa. Calculate its T² and compare with the illustrative limit 11.83.
Reveal worked solution
The standardized deviations are \(+1\) and \(-1\), so \(T^2 = 10\). This does not exceed 11.83, although the combination is more unusual than both measurements rising together.
Case B: the spread changes
Both standard deviations increase from 10 to 20 MPa with correlation unchanged at 0.8. By what factor does GV change?
Reveal worked solution
Each variance quadruples. The determinant grows sixteenfold, from 3600 to 57600. This is a dispersion question, not a mean-shift question.
Case C: the drift continues
A series of individually modest joint deviations persists. Which chart should you add and what parameter controls memory?
Reveal worked solution
MEWMA. Lambda controls the newest observation weight. A lower lambda generally emphasizes persistent changes, but limits must be recalibrated.
Eight mistakes that can ruin the analysis
Mixing product families
Build comparable baselines.
Misaligned rows
Keep each variable paired to the same specimen.
Using overall covariance blindly
Match the chart's within-subgroup estimator.
Re-estimating every day
Freeze a justified reference.
Ignoring dispersion
Read GV before interpreting location.
Inventing a historical sample count
Use the true estimation count.
Calling every alarm a defect
Check specifications separately.
Treating decomposition as causation
Confirm process evidence.
References
Source: supplied synthetic Minitab project, saved figures dated November 24, 2026. Chart coordinates and control limits are extracted from the saved QChartCompute records, not native screenshots. Original project contains graph definitions but no exported plot images. Full-size renderings retain the recorded numerical results.
Minitab control chart documentation · NIST Engineering Statistics Handbook
Your independent Minitab investigation
Allow 30–45 minutes after reading the lesson if you already know Minitab; beginners should allow additional time for importing data and creating matrices. Download both CSVs. Try this without looking at the answer tables first.
- Import T²/GV data, create the historical matrix, and generate standalone T², standalone GV and combined charts. Record the limits and signal indices.
- For each of subgroups 41, 46 and 51, calculate both subgroup averages and the covariance determinant. Decide whether location, dispersion or both require investigation.
- Import the MEWMA dataset, create its own M1 and run the chart at weight 0.20. Record the first signal and the following five statistics.
- Change weight to 0.10 and 0.40 in Minitab. Record the corresponding limits and first signals. Explain why a single observed detection delay cannot prove one design is generally superior.
- Write a three-sentence response to a production supervisor: what changed statistically, what cannot yet be concluded, and what physical evidence you would inspect next.
Check your investigation
| Chart | UCL | Signal |
|---|---|---|
| T² | 27.1452 | 41 and 51 |
| GV | 11446.0181 | 46 and 51 |
| Combined | Same as standalone | 41: location; 46: dispersion; 51: both |
| MEWMA at 0.20 | 9.6476 | 45–60 |
MEWMA subgroups 45–50: 12.2859, 26.4353, 30.1773, 54.1370, 56.3070, 79.0883. For alternate weights use your own recalibrated Minitab outputs rather than the saved UCL. Independent numerical checkpoints (not Minitab control limits):
| Weight | Subgroup 1 | Subgroup 45 | Subgroup 50 | Subgroup 60 |
|---|---|---|---|---|
| 0.10 | 0.8196 | 10.7641 | 75.8192 | 110.2092 |
| 0.20 | 0.8196 | 12.2859 | 79.0883 | 63.7238 |
| 0.40 | 0.8196 | 10.6875 | 58.1590 | 28.0367 |
These values use the startup-adjusted covariance and the original MEWMA worksheet. They are statistic checkpoints only; obtain each weight-specific UCL from Minitab. Check the answer-table CSV for the exact group calculations.
Suggested supervisor response: the joint strength mean changed at 41, dispersion changed at 46, and both signaled at 51. These results do not establish a material defect or its root cause. Verify test repeatability, product mix, rolling conditions and individual strength trends before taking action.
Knowledge check
Check your understanding
Comprehension quiz
Pick the strongest answer, then submit. Explanations appear after you submit.
One process. Three complementary ways to detect change.
Current mean vector · 41, 51
T²/GV datasetCovariance determinant · 46, 51
T²/GV datasetWeighted mean vector · 45–60
Separate MEWMA datasetStart with a trustworthy baseline. Choose a chart that answers the actual process question. Interpret statistical signals in context and confirm causes before changing the process.