Statistical Process Control 8 of 11
On this page

Statistical Process Control

2.7 Multivariate Control Charts

Chapter 7 of 10 20 min read

A multivariate control chart shows how variables jointly influence the process. They are used when there is a correlation in the variables under study.

A disadvantage of this type of graph refers to greater difficulty in interpreting it, since the out-of-control points do not specifically reveal which variable or variables, or a combination of them, cause the problem.

So, to analyze multivariate data, a procedure that can be used is to check the correlation between them and then work only with those variables that are correlated. With this, we can plot the values ​​of Hotelling’s T² statistic and the generalized variance for these variables on a control chart. This procedure is defined below.

Next we will discuss the construction of multivariate control charts.

To construct these graphs, we will consider two cases: one case in which we have individual observations (there are no replicas) and another case in which we have replicas for each observation.

2.7.1 Multivariate control charts for individual observations

Next, we will present the construction of multivariate control charts for individual observations, that is, for observations that do not have replicas.

To introduce and illustrate this concept, we will consider data arranged in a general way as in Table 2.7.1.

Variables
Sample $ X_1 $ $ X_2 $ $ \cdots $ $ X_p $
1 1 2 3 4
2 1 2 3 4
3 1 2 3 4
$ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $
m $ X_{1m} $ $ X_{2m} $ $ \cdots $ $ X_{pm} $
Average $ \overline{X}_1 $ $ \overline{X}_2 $ $ \cdots $ $ \overline{X}_p $
Sample standard deviation $ s_1 $ $ s_2 $ $ \cdots $ $ s_p $

Table 2.7.1: Data entry

Hotelling’s T² control chart

To calculate the Hotelling T² statistic, we must follow the steps below.

  1. Calculate the average for each variable

$$\overline{X}_1, \overline{X}_2, \ldots, \overline{X}_p$$

  1. Calculate sample variances and covariances

$$S_1^2, \ldots, S_ik, \ldots, S_p^2$$

  1. Calculate the T² statistic for each sample

$$T^2 = (X_i - \overline{X})^{\prime} S^{-1}(X_i - \overline{X})$$

in which

  • p is the number of variables
  • m is the number of samples
  • S is the sample covariance matrix
  • $ S ^ {-1} $ is the inverse sample covariance matrix

Thus, the control limits are given by

$$LIC = \dfrac{(m-1)^2}{m}B_{\left(\frac{\alpha}{2};~\frac{p}{2};~\frac{(m-p-1)}{2}\right)}$$

$$LSC = \dfrac{(m-1)^2}{m}B_{\left(1-\frac{\alpha}{2};~\frac{p}{2};~\frac{(m-p-1)}{2}\right)}$$

in which

$$B_{\left(\frac{\alpha}{2};~\frac{p}{2};~\frac{(m-p-1)}{2}\right)} \qquad \hbox{e} \qquad B_{\left(1-\frac{\alpha}{2};~\frac{p}{2};~\frac{(m-p-1)}{2}\right)}$$

indicate the quantiles corresponding to the Beta distribution.

The center line of the control chart is defined using the median (i.e., the 50% quantile) of the corresponding Beta distribution, indicated by

$$LC = B_{\left(0,50;~\frac{p}{2};~\frac{(m-p-1)}{2}\right)}$$

Control chart for generalized variance

The procedure used to construct the control charts for generalized variance is to standardize the data using the mean vector and the sample covariance matrix. Standardization is done as follows $$Z_{ij} = \dfrac{ X_{ij} - \overline{X}_i}{S_i}$$

This way, we will have a matrix as shown in the following table

Variables
Sample $ Z_1 $ $ Z_2 $ $ \cdots $ $ Z_p $ Sample standard deviation
1 $ Z_{11} $ $ Z_{21} $ $ \cdots $ $ Z_{p1} $ $ s_1 $
2 $ Z_{12} $ $ Z_{22} $ $ \cdots $ $ Z_{p2} $ $ s_2 $
3 $ Z_{13} $ $ Z_{23} $ $ \cdots $ $ Z_{p3} $ $ s_3 $
$ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $
m $ Z_{1m} $ $ Z_{2m} $ $ \cdots $ $ Z_{pm} $ $ s_m $

Table 2.7.2: Matrix for standardization

With the normalized data we can construct a control chart using the same procedure used to construct the usual standard deviation control chart. $ S $.

Therefore, the control limits are given by

  • Upper control limit:

$$LSC = B_4 \ast \overline{S}$$

  • Central Line:

$$LC = \overline{S}$$

  • Lower control limit:

$$LIC = B_3 \ast \overline{S}$$

Example 7.1.1:

We have a sand mold where iron pieces are molded. In this case, our variables of interest are compatibility, the RCV1 coefficient and plasticity. The data is presented in the following table.

Race Ask Prod Qty Scrap Quantity Compactability RCV1 Plasticity
E188 M20700300 6288 182 36,5 22,026 28,87
E189 M20900200 655 128 36,571 21,12 29,924
E190 M20701400 1290 33 36,167 21,182 29,368
E191 M20600400 3176 316 36,5 22,134 29,822
E192 M20900900 8052 129 37,4 21,93 28,774
E193 M20900900 4436 49 37,333 21,507 28,812
E194 M20701201 6424 245 37,167 23,132 29
E195 M20700300 6000 79 38 19,653 30,885
E196 M20900900 7986 183 38 19,653 30,885
E197 M20701500 9024 108 36,5 20,993 30,568
E198 M20700600 1680 41 38,25 20,733 28,84
E199 M20701301 4248 48 37,643 19,513 28,818
E200 M20900200 1190 32 37,667 20,613 29,035
E201 M20404400 2400 8 36,833 22,423 26,685
E202 M20701500 4752 126 37,333 20,29 28,527
E203 M20900900 3072 43 37,167 21,083 26,24
E204 M20701500 564 19 38 20,363 29,843
E205 M20701201 1192 28 37,667 21,147 29,273
E206 M20900200 1275 25 37,667 21,147 29,273
E207 M20600400 2056 537 36 22,89 27,753
E208 M20700300 7816 85 39 20,24 29,57
E209 M20900200 1040 44 36,333 19,9 27,89
E210 M20900900 1968 16 38 19,547 27,84
E211 M20701201 5016 52 36,333 19,9 27,633
E212 M20600400 1656 524 37,667 20,937 27,84

Table 2.7.3: Sand Variables without replicas.

To build multivariate control charts we first need to know which variables are correlated, so we can only work with those variables that jointly influence the process. To obtain the correlation between the variables we can use the Correlation Matrix tool provided by Software Action.

In this example we will consider that the 3 variables are correlated to show the calculations in detail.

Careful!

Correlation must always be analyzed in the multivariate case so that the results are not masked.

Below we present the steps for constructing multivariate control charts (T² and Generalized Variance).

The means of the Compactability, RCV1 and Plasticity variables are, respectively, $37,267$ ; $20,962$ and $28,878$. The covariance matrix ($S$) and the inverse matrix ($ S ^ {-1} $) are given by

$$S = \begin{bmatrix} 0,5810 \qquad -0,3629 \qquad 0,2243 \cr -0,3629 \qquad 1,0728 \qquad -0,2576 \cr 0,2243 \qquad -0,2576 \qquad 1,3649 \end{bmatrix} \qquad \hbox{e} \qquad S^{-1} = \begin{bmatrix} 2,2533 \qquad 0,7053 \qquad 0,2371 \cr 0,7053 \qquad 1,1971 \qquad 0,1101 \cr -0,2371 \qquad 0,1101 \qquad 0,7924 \end{bmatrix}$$

Calculation of control limits for T² of Hotelling

The calculation of T² for the first run (E188) is given by

$$T^2 = (X_i - \overline{X})S^{-1}(X_i - \overline{X})$$

$$ = [-0,767 \quad 1,063 \quad -0,0087] \ast \begin{bmatrix} 2,2533 \quad 0,7053 \quad -0,2371 \cr 0,7053 \quad 1,1971 \quad 0,1101 \cr -0,2371 \quad 0,1101 \quad 0,7924 \end{bmatrix} \ast \begin{bmatrix} -0,767 \cr 1,063 \cr -0,0087 \end{bmatrix} = 1,5259$$

For the other samples (runs E189 to E212) the procedure is analogous.

The T² values ​​for all samples are shown in the table below.

Race T²
E188 152,595
E189 221,678
E190 291,648
E191 299,512
E192 133,373
E193 0,4124
E194 542,531
E195 382,223
E196 382,223
E197 418,464
E198 193,979
E199 209,762
E200 0,28603
E201 473,986
E202 0,64975
E203 534,417
E204 129,344
E205 0,56833
E206 0,56833
E207 447,276
E208 532,076
E209 528,861
E210 368,312
E211 568,977
E212 140,279

Table 2.7.4: Calculation of T² values

The control limits with a confidence level of 3σ = 99.73% are given by

$$LIC = \dfrac{(m-1)^2}{m}B_{\left(\frac{\alpha}{2};~\frac{p}{2};~\frac{(m-p-1)}{2}\right)}~=~\dfrac{(25-1)^2}{25}B_{\left(0,00135;~\frac{3}{2};~\frac{(25-3-1)}{2}\right)}~=~0,03183$$

$$LC = \dfrac{(25-1)^2}{25}B_{\left(0,50;~\frac{3}{2};~\frac{(25-3-1)}{2}\right)}~=~2,402$$

$$LSC = \dfrac{(m-1)^2}{m}B_{\left(1-\frac{\alpha}{2};~\frac{p}{2};~\frac{(m-p-1)}{2}\right)}~=~\dfrac{(25-1)^2}{25}B_{\left(0,99865;~\frac{3}{2};~\frac{(25-3-1)}{2}\right)}~=~11,918$$

being

  • $m$ = number of samples = 25
  • $p$ = number of correlated variables = 3

Calculation of control limits for generalized variance

Let us now construct the control limits for the generalized variance. First we calculate the mean and variance, then we standardize each variable. So we have

For Compactability (X1)

$$\overline{X}_1 = \dfrac{36,5 + 36,571 + \ldots + 36,333 + 37,667}{25} = 37,267$$

$$S_1^2 = \dfrac{(36,5 - 37,267)^2 + \ldots + (37,667 - 37,267)^2}{24} = 0,581$$

Standardization:

$$\dfrac{(36,5 - 37,267)}{\sqrt{0,581}} = -1,00746$$

For RCV1 (X2)

$$\overline{X}_2 = \dfrac{22,026 + 21,12 + \ldots + 19,9 + 20,937}{25} = 20,962$$

$$S_2^2 = \dfrac{(22,026 - 20,962)^2 + \ldots + (20,937 - 20,962)^2}{24} = 1,072$$

Standardization:

$$\dfrac{(22,026 - 20,962)}{\sqrt{1,072}} = 1,027$$

For Plasticity (X3)

$$\overline{X}_3=\dfrac{28,87+29,924+\ldots+27,633+27,84}{25}=28,878$$

$$S_3^2=\dfrac{(28,87-28,878)^2+\ldots+(27,84-28,878)^2}{24}=1,364$$

Standardization:

$$\dfrac{(28,87-28,878)}{\sqrt{1,364}}=-0,00746$$

The standardized variables for all samples are given in Table 2.7.5.

Compactability RCV1 Plasticity Standard Deviations
-100,746 1,027 -0,00746 101,728
-0,91431 0,15231 0,89471 0,90934
-144,433 0,21217 0,4188 102,127
-100,746 113,127 0,8074 115,273
0,17328 0,93432 -0,08964 0,53179
0,08538 0,52594 -0,05711 0,30396
-0,1324 209,478 0,10381 122,339
0,96044 -1,264 171,728 154,967
0,96044 -1,264 171,728 154,967
-100,746 0,0297 144,594 123,157
128,842 -0,22132 -0,03314 0,82272
0,49208 -139,916 -0,05197 0,97363
0,52356 -0,33717 0,13377 0,43101
-0,57058 141,028 -187,772 165,546
0,08538 -0,64901 -0,30106 0,36736
-0,1324 0,11659 -225,862 13,054
0,96044 -0,57853 0,82538 0,85222
0,52356 0,17838 0,33748 0,17277
0,52356 0,17838 0,33748 0,17277
-166,342 186,115 -0,96356 186,598
227,236 -0,69728 0,5917 148,912
-122,655 -102,553 -0,8463 0,19023
0,96044 -136,634 -0,88909 122,898
-122,655 -102,553 -106,628 0,10626
0,52356 -0,02437 -0,88909 0,71222

Table 2.7.5: Standardized variables.

The last column of Table 2.7.5 is the standard deviation of the standardized variables in relation to X1, X2 and X3, that is,

$$S = \sqrt{\dfrac{\sum_{1}^{p}X_i^{2} - p \ast \overline{X}^2}{p-1}}$$

For the first line, the value 1.01728 is obtained by calculating S, given by

$$S = \sqrt{\dfrac{(2,06976) - 3 \ast (0,00403)^2}{2}} = 1,01728$$

We still need to calculate $ \overline{S}, $ given by

$$\overline{S} = \dfrac{\hbox{Soma dos desvios padrão amostrais}}{\hbox{número de amostras}} = \dfrac{\hbox{soma das }S_i}{m}$$

i.e.

$$\overline{S} = \dfrac{1,01728 + \ldots + 0,71222}{25} = \dfrac{22,8368}{25} = 0,913472$$

Thus, the central line of the control chart is given by the average of the standard deviations, that is, for this example it is the average of the last column of Table 7.1.3, thus obtaining the value 0.913472. Therefore, the generalized variance graph with individual observations follows the same reasoning as the graph $ S $ usual.

Applying the formulas and using the Appendix to obtain the values of B3 = 0 and B4 = 2.266 (for n = 4) we find the control limits, which are given by

$$LSC = B_4 \ast \overline{S} = 2,266 \ast 0,913472 = 2,0699$$

$$LC = \overline{S} = 0,913472$$

$$LIC = B_3 \ast \overline{S} = 0 \ast 0,913472 = 0$$

Below are the results obtained by Software Action for this example.

Figura 2.7.1.1

Figura 2.7.1.2

Figure 2.7.1: Hotelling’s T² and Generalized Variance graphs.

Observing Figure 2.7.1 we see that no point is outside the control limits and the variance remains stable throughout the observed period.

To understand how to perform this function of Software Action, you can refer to the user manual.

Example 7.1.2:

Table 2.7.6 presents data from the industrial area regarding the thickness of automotive gearboxes. Figure 2.7.2 illustrates the shape of the gear.

Figura 2.7.2

Figure 2.7.2: Detail of the gearshift gear.

Position1 Position2 Position3
98,208 98,209 21,996
98,209 98,220 22,002
98,206 98,204 21,999
98,206 98,206 21,998
98,204 98,214 21,998
98,209 98,203 21,983
98,202 98,212 21,981
98,196 98,221 21,980
98,215 98,201 21,986
98,194 98,227 21,993
98,200 98,210 21,981
98,206 98,207 21,983
98,212 98,200 22,004
98,211 98,200 22,009
98,212 98,199 22,008
98,191 98,166 22,008
98,206 98,205 22,009
98,192 98,207 21,982
98,203 98,202 21,993
98,195 98,206 21,990
98,207 98,204 21,999
98,188 98,199 21,989
98,219 98,222 21,997
98,196 98,205 21,998
98,220 98,227 22,001
98,193 98,213 21,985
98,194 98,217 21,988
98,200 98,200 21,983
98,199 98,199 21,980
98,199 98,197 21,985
98,199 98,198 21,984
98,196 98,206 21,982
98,203 98,207 21,984
98,201 98,206 21,986
98,197 98,161 21,989
98,192 98,205 21,984
98,208 98,172 22,011
98,175 98,195 21,983
98,176 98,196 21,983
98,172 98,195 21,983
98,197 98,201 21,999
98,195 98,211 21,993
98,196 98,206 21,993
98,201 98,219 21,989

Table 2.7.6: Data regarding gear thickness.

Firstly, let’s check whether the variables Position1, Position2 and Position3 are correlated. To obtain the correlation between them, we will use the Software Action Correlation Matrix tool. In this way, we have

Position1 Position2 Position3
Position1 1 0.2439 0.4712
Position2 0.2439 1 -0.1661
Position3 0.4712 -0.1661 1

Table 2.7.7: Correlation matrix

Position1 Position2 Position3
Position1 1 0.1106 0.0012
Position2 0.1106 1 0.2811
Position3 0.0012 0.2811 1

Table 2.7.8: P-Value Matrix

We can see that the positive correlation (0.471) between Position 1 and Position 3 is significant, proven by the p-value of 0.001, which is lower than the adopted significance level of 5%. Therefore, we can conclude that only the variables Position1 and Position3 jointly influence the process, so we will build the multivariate control charts considering only these two variables.

Below we present the steps for constructing multivariate control charts (Hotelling’s T² and Generalized Variance).

The means of the variables Position1 and Position3 are, respectively, 98.2 and 21.992.

The covariance matrix ($S$) and the inverse matrix ($ S ^ {-1} $) are given by

$$S = \begin{bmatrix} 0,000105 \qquad ~~~38,3226 \cr 38,3226 \qquad ~~~0,000086 \end{bmatrix} ~ \qquad \hbox{e} \qquad ~ S^{-1} = \begin{bmatrix}-0,00000006 \qquad \qquad ~~~0,0261 \qquad \cr \qquad 0,0261 \qquad ~~~-0,000000071 \end{bmatrix}$$

Calculation of control limits for T² of Hotelling

The calculation of T² for the first line of the data set, now considering only the correlated variables (Position1 and Position3), is as follows

$$T^2 = (X_i - \overline{X})S^{-1}(X_i - \overline{X})$$

$$ = [0,008 \qquad ~0,004] \ast \begin{bmatrix} -0,00000006 \qquad \qquad ~~~0,0261 \qquad \cr \qquad 0,0261 \qquad ~~~-0,000000071 \cr \end{bmatrix} \ast \begin{bmatrix} 0,008 \cr 0,004 \end{bmatrix} = 0,0000017$$

For the other lines, the procedure for calculating the T² statistic is analogous.

Therefore, the control limits with a confidence level of 3σ = 99.73% are given by

$$LIC = \dfrac{(m-1)^2}{m}B_{\left(\frac{\alpha}{2};~\frac{p}{2};~\frac{(m-p-1)}{2}\right)}~=~\dfrac{(44-1)^2}{44}B_{\left(0,00135;~\frac{2}{2};~\frac{(44-2-1)}{2}\right)}~=~0,0028$$

$$LC = \dfrac{(44-1)^2}{44}B_{\left(0,50;~\frac{2}{2};~\frac{(44-2-1)}{2}\right)}~=~1,3971$$

$$LSC = \dfrac{(m-1)^2}{m}B_{\left(1-\frac{\alpha}{2};~\frac{p}{2};~\frac{(m-p-1)}{2}\right)}~=~\dfrac{(44-1)^2}{44}B_{\left(0,99865;~\frac{2}{2};~\frac{(44-2-1)}{2}\right)}~=~11,578$$

being

  • $m$ = number of samples = 44
  • $p$ = number of correlated variables = 2

Calculation of control limits for generalized variance

Let us now construct the control limits for the generalized variance. First we calculate the mean and variance, then we standardize each variable. So we have

For Position1 (X1)

$$\overline{X}_1 = \dfrac{98,208 + 98,209 + \ldots + 98,196 + 98,201}{44} = 98,2$$

$$S_1^2 = \dfrac{(98,208 - 98,2)^2 + \ldots + (98,201 - 98,2)^2}{43} = 0,000105$$

Standardization for the first value of the Position1 variable:

$$\dfrac{(98,208 - 98,2)}{\sqrt{0,000105}} = 0,7843$$

For Position3 (X2)

$$\overline{X}_2 = \dfrac{21,996 + 22,002 + \ldots + 21,993 + 21,989}{44} = 21,992$$

$$S_2^2 = \dfrac{(21,996 - 21,992)^2 + \ldots + (21,989 - 21,992)^2}{43} = 0,0000861$$

Standardization for the first value of the Position3 variable:

$$\dfrac{(21,996 - 21,992)}{\sqrt{0,0000861}} = 0,431$$

The procedure for standardizing the other values of the Position1 and Position3 variables is analogous.

The standard deviation of the standardized variables in relation to X1 and X2 is given by

$$S = \sqrt{\dfrac{\sum_{1}^{p}X_i^{2} - p \ast \overline{X}^2}{p-1}}$$

Therefore, for the first line the value of S is obtained as follows

$$S = \sqrt{\dfrac{(0,8) - 2 \ast (0,608)^2}{1}} = 0,1564$$

For the other lines in the set, the calculation is similar.

We still need to calculate $ \overline{S}, $ given by

$$\overline{S} = \dfrac{\hbox{Soma dos desvios padrão amostrais}}{\hbox{número de amostras}} = \dfrac{\hbox{soma das }S_i}{m}$$

i.e.

$$\overline{S} = 0,5785$$

Thus the center line of the control chart is given by the average of the standard deviations. Therefore, the generalized variance graph with individual observations follows the same reasoning as the graph $ S $ usual.

Applying the formulas and using the Appendix to obtain the values of B3 = 0 and B4 = 2.568 (for n = 3) we find the control limits, which are given by

$$LSC = B_4 \ast \overline{S} = 2,568 \ast 0,5785 = 1,4856$$

$$LC = \overline{S} = 0,5785$$

$$LIC = B_3 \ast \overline{S} = 0 \ast 0,5785 = 0$$

Below are the results obtained by Software Action for this example.

Figura 2.7.3.1

Figura 2.7.3.2

Figure 2.7.3: Hotelling’s T² and Generalized Variance graphs.

We can note that the process did not remain stable throughout the period considered.

To understand how to perform this function of Software Action, you can refer to the user manual.

2.7.2 Multivariate control charts for observations with replicates

Below we present the construction of multivariate control charts for observations with replicates.

To introduce the concept of these graphs, we will consider the data input, in general, as shown in Table 2.7.9. We can now observe that this data has replicas.

Variables
Sample $ X_1 $ $ X_2 $ $ \cdots $ $ X_p $
1 $ X_{111} $ $ X_{211} $ $ \cdots $ $ X_{p11} $
1 $ X_{112} $ $ X_{212} $ $ \cdots $ $ X_{p12} $
$ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $
1 $ X_{11n} $ $ X_{21n} $ $ \cdots $ $ X_{p1n} $
2 $ X_{121} $ $ X_{221} $ $ \cdots $ $ X_{p21} $
2 $ X_{122} $ $ X_{222} $ $ \cdots $ $ X_{p22} $
$ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $
2 $ X_{12n} $ $ X_{22n} $ $ \cdots $ $ X_{p2n} $
3 $ X_{131} $ $ X_{231} $ $ \cdots $ $ X_{p31} $
3 $ X_{132} $ $ X_{232} $ $ \cdots $ $ X_{p32} $
$ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $
3 $ X_{13n} $ $ X_{23n} $ $ \cdots $ $ X_{p3n} $
m $ X_{1m1} $ $ X_{2m1} $ $ \cdots $ $ X_{pm1} $
m $ X_{1m2} $ $ X_{2m2} $ $ \cdots $ $ X_{pm2} $
$ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $ $ \vdots $
m $ X_{1mn} $ $ X_{2mn} $ $ \cdots $ $ X_{pmn} $

Table 2.7.9: Data entry.

$ refers to the kth observation in the jth sample of the ith variable.

Here $i = 1, …, p$ ; $j = 1, …, m$ and $k = 1, …, n$.

To calculate the Hotelling T² statistic, we must follow the steps below:

  • Calculate the mean within each sample for each variable

$$\overline{X}_{ij.} = \dfrac{1}{n} \sum_{k=1}^{n} X_{ijk} \qquad \hbox{para} \quad i = 1, \ldots, p$$

  • Calculate the vector of general averages by

$$\overline{X}_{…} = \dfrac{1}{m}\sum^{m}_{j=1}\overline{X}_{.j.}$$

  • Calculate the vector of sampling variances for each sample

$$S^2_{ij.} = \dfrac{1}{n - 1}\sum^{n}_{k=1}(X_{ijk} - \overline{X}_{ij.})^2 \qquad {para}~i = 1, \ldots, p$$

  • Calculate the p(p - 1)/2 sample covariances, denoted by $ S^2_{ilj}, $ for each sample

$$S^2_{ilj} = \dfrac{1}{n - 1}\sum^{n}_{k=1}(X_{ijk} - \overline{X}_{ij.})(X_{ljk} - \overline{X}_{lj.}) \qquad \hbox{para}~i \neq l = 1, \ldots, p$$

  • Construct the sample covariance matrix S as follows

$$S = \left(\begin{array}{cccc} S^2_{11} \qquad S^2_{12} \qquad \cdots \qquad S^2_{1p} \cr S^2_{21} \qquad S^2_{22} \qquad \cdots \qquad S^2_{2p} \cr \vdots \qquad ~~~ \vdots \qquad ~\cdots \qquad ~\vdots \cr S^2_{p1} \qquad S^2_{p2} \qquad \cdots \qquad S^2_{pp} \end{array} \right)$$

in which

$$S^2_{ii} = \dfrac{1}{m}\sum^{m}_{j=1}S^2_{iij}, \qquad \hbox{para}~i = 1, \ldots, p$$

$$S^2_{il} = \dfrac{1}{m}\sum^{m}_{j=1}S^2_{ilj}, \qquad \hbox{para}~i \neq l = 1, \ldots, p$$

  • Calculate the T² statistic as follows

$$T_j^2 = n(\overline{X}_{.j.} - \overline{X}_{…})S^{-1}(\overline{X}_{.j.} - \overline{X}_{…}), \hbox{para cada}~j = 1, …, m$$

Control Limits for the T² graph

We have the statistics $ T_j^2~\sim~\left(\dfrac{(mn - m)p}{mn - m - p + 1}\right)F_{(p,~mn - m - p + 1)}, $ for n > 1 (see Johnson (2002)).

Lower control limit (Montgomery (2001)):

$$LIC = \dfrac{p(m-1)(n-1)}{(mn - m - p + 1)}F_{\left(\alpha/2;~p;~mn-m-p+1\right)}$$

Central Line (Montgomery (2001)):

$$LC = \dfrac{p(m-1)(n-1)}{(mn - m - p +1)}F_{\left(0,50;~p;~mn-m-p+1\right)}$$

Upper limit of control (Montgomery (2001)):

$$LSC = \dfrac{p(m-1)(n-1)}{(mn - m - p + 1)}F_{\left(1-\alpha/2;~p;~mn-m-p+1\right)}$$

where n = size of each sample, m = number of samples and p = number of characteristics.

Control Limits for generalized variance

$\mid S \mid$ determinant of the sample covariance matrix, generalized variance (Johnson (2002)).

Lower control limit (Montgomery (2001)):

$$LIC = \dfrac{\mid S \mid}{b_1}(b_1 - 3\sqrt{b_2})$$

Central Line (Montgomery (2001)):

$$LC = \mid S \mid$$

Upper limit of control (Montgomery (2001)):

$$LSC = \dfrac{\mid S \mid}{b_1}(b_1 + 3\sqrt{b_2})$$

in which

$$b_1 = \dfrac{1}{(n-1)^p}\prod_{i=1}^p(n-i)$$

$$b_2 = \dfrac{1}{(n-1)^{2p}}\prod_{i=1}^p(n-i)\left[\prod_{j=1}^p(n-j+2) - \prod_{j=1}^p(n-j)\right]$$

being $p$ = number of variables and $n$ = number of observations in each group.

Example 7.2.1:

A chemist is interested in verifying the relationship between the number of hours that certain specimens are subjected to an oven and the percentage (%) of moisture contained in them. The oven was maintained at a constant temperature and we took size 5 samples for each day. The data is shown in Table 2.7.10.

Measurement Date CP Number of hours Humidity(%) Measurement Date CP Number of hours Humidity(%)
1/1/2001 1 1 7 1/6/2001 1 3 5,8
2 2 6,5 2 3 5,6
3 4 6 3 2 4
4 6 7 4 2 4
5 4 7 5 5 5,8
1/2/2001 1 2 7 1/7/2001 1 4 5,2
2 2 7 2 6 6,4
3 4 6,2 3 2 4,5
4 1 6 4 3 1,5
5 1 5,2 5 3 5,6
1/3/2001 1 5 7 1/8/2001 1 6 6
2 2 5,4 2 3 5,8
3 5 7 3 7 7
4 3 7 4 4 4,5
5 2 1,4 5 3 5,2
1/4/2001 1 4 6 1/9/2001 1 5 5,6
2 4 6,2 2 4 4,5
3 4 3,5 3 2 4,5
4 2 4,5 4 1 6
5 2 3 5 3 2
1/5/2001 1 3 4,2 1/10/2001 1 3 5,2
2 3 6,5 2 4 6
3 2 2,2 3 6 5,5
4 4 5,5 4 3 7
5 3 6 5 2 6,5

Table 2.7.10: Experiment data.

Firstly, we need to check whether the variables to be analyzed are correlated. To do this, we can use the Action Software Correlation Matrix tool.

In this example we will consider that there is a correlation between the variables Number of hours and Humidity just to work with them together and exemplify the calculations in detail.

Careful!

Correlation must always be analyzed in the multivariate case so that the results are not masked.

For the first sample (1/1/2001), we have:

$$S_{11}^2 = \dfrac{1}{4}[(1 - 3,4)^2 + (2 - 3,4)^2 + (4 - 3,4)^2 + (6 - 3,4)^2 + (4 - 3,4)^2] = 3,8$$

$$S_{22}^2 = \dfrac{1}{4}[(7 - 6,7)^2 + (6,5 - 6,7)^2 + (6 - 6,7)^2 + (7 - 6,7)^2 + (7 - 6,7)^2] = 0,2$$

$$S_{12} = \dfrac{1}{4}[(1 - 3,4)(7 - 6,7) + (2 - 3,4)(6,5 - 6,7) + (4 - 3,4)(6 - 6,7) + (6 - 3,4)(7 - 6,7)~+$$

$$+~(4 - 3,4)(7 - 6,7)] = 0,025$$

Calculation of control limits for T² of Hotelling

The calculation of the T² statistic for the first sample is given by

$$T^2 = n(\overline{X} - \overline{\overline{X}})S^{-1}(\overline{X} - \overline{\overline{X}})$$

$$= 5 \ast [0,12 \qquad 1,3] \ast \begin{bmatrix} ~0,5427404 \qquad ~-0,2021607 \cr -0,2022607 \qquad ~0,5752761 \cr \end{bmatrix} \ast \begin{bmatrix} 0,12 \cr 1,3 \cr \end{bmatrix} = $$

$$= 4,58479$$

In the following table we have the means and variances for the T² graph calculated for all samples.

Sample $ \overline{X}_1 $ $ \overline{X}_2 $ $ S_{1}^2 $ $ S_{2}^2 $ $ S_{12} $ $ T^2 $
1 3,4 6,7 3,8 0,2 0,025 4,58479
2 2 6,28 1,5 0,572 0,3 8,95074
3 3,4 5,56 2,3 5,888 2,52 0,0739
4 3,2 4,64 1,2 2,073 0,89 1,55585
5 3 4,88 0,5 2,977 0,825 0,69618
6 3 5,04 1,5 0,908 0,9 0,38176
7 3,6 4,64 2,3 3,553 1,495 2,43094
8 4,6 5,7 3,3 0,87 1,225 4,18667
9 3 4,52 2,5 2,427 -0,2 1,9421
10 3,6 6,04 2,3 0,533 -0,53 1,04202
sum 32,8 54 21,2 20,001 7,45 25,84495
average 3,28 5,4 2,12 2,0001 0,745 2,584495

Table 2.7.11: Means and Variances for the T² graph.

With this, we can construct the control limits of the T² graph, with a confidence level of 3σ = 99.73%, given below.

Lower control limit

$$LIC = \dfrac{p(m-1)(n-1)}{(mn - m - p + 1)}F_{\left(\alpha/2;~p;~mn-m-p+1\right)} = \dfrac{2(10 - 1)(5 - 1)}{(10 \ast 5 - 10 - 2 + 1)}F_{\left(0,00135;~2;~39\right)}$$

$$= 1,846154 \ast 0,0013509 = 0,0025$$

Central limit

$$LC = \dfrac{p(m-1)(n-1)}{(mn - m - p + 1)}F_{\left(0,50;~p;~mn-m-p+1\right)} = \dfrac{2(10 - 1)(5 - 1)}{(10 \ast 5 - 10 - 2 + 1)}F_{\left(0,50;~2;~39\right)}$$

$$= 1,846154 \ast 0,7056138 = 1,302672$$

Upper control limit

$$LSC = \dfrac{p(m-1)(n-1)}{(mn - m - p + 1)}F_{\left(1-\alpha/2;~p;~mn-m-p+1\right)} = \dfrac{2(10 - 1)(5 - 1)}{(10 \ast 5 - 10 - 2 + 1)}F_{\left(0,99865;~2;~39\right)}$$

$$= 1,846154 \ast 7,8650 = 14,520$$

Calculation of control limits for generalized variance

Let us now construct the control limits for the generalized variance, which are given by

$$LIC = \dfrac{\mid S \mid}{b_1}(b_1 - 3\sqrt{b_2}) = \dfrac{3,685}{0,75}(0,75 - 3\sqrt{0,84375}) = -9,85$$

As the value obtained for the LIC was negative, we took zero as the minimum value. Therefore, we assume LIC = 0.

$$LC = ~\mid S \mid ~= det\begin{bmatrix} 2,12 \qquad 0,745 \cr 0,745 \qquad 2,001 \cr \end{bmatrix} = 3,685$$

$$LSC = \dfrac{\mid S \mid}{b_1}(b_1 + 3\sqrt{b_2}) = \dfrac{3,685}{0,75}(0,75 + 3\sqrt{0,84375}) = 17,225$$

Below are the results obtained by Software Action for this example.

Figura2.7.4.1

Figura2.7.4.2

Figure 2.7.4: T² and generalized variance graphs.

We can see from the graphs that the process remained stable throughout the period.

To understand how to perform this function of Software Action, you can refer to the user manual.

↑