Next Page Previous Page Home Tools & Aids Search Handbook
6. Process or Product Monitoring and Control
6.5. Tutorials
6.5.5. Principal Components

6.5.5.2.

Numerical Example

Calculation of principal components example A numerical example may clarify the mechanics of principal component analysis.
Sample data set Let us analyze the following 3-variate dataset with 10 observations. Each observation consists of 3 measurements on a wafer: thickness, horizontal displacement and vertical displacement.
[7  4  3; 4  1  8; 6  3  5; 8  6  1; 8  5  7; 7  2  9;
 5  3  3; 9  5  8; 7  4  5; 8  2  2]
Compute the correlation matrix First compute the correlation matrix
[1.00  .67  -.10; .67  1.00  -.29; -.10  -.29  1.00]
Solve for the roots of R Next solve for the roots of R, using software

lambda value proportion

1 1.769 .590
2 .927 .899
3 .304 1.000
Notice that
  • Each eigenvalue satisfies |R-lambda I| = 0.
  • The sum of the eigenvalues = 3 = p, which is equal to the trace of R (i.e., the sum of the main diagonal elements).
  • The determinant of R is the product of the eigenvalues.
  • The product is lambda 1 x lambda 2 x lambda 3 = .499.
Compute the first column of the V matrix Substituting the first eigenvalue of 1.769 and R in the appropriate equation we obtain
[-.769  .67  -.10; .67  -.769  -.29; -.10  -.29  -.769]*
[v(11)  v(21)  v(31)] = [0  0  0]
This is the matrix expression for 3 homogeneous equations with 3 unknowns and yields the first column of V: .64  .69  -.34  (again, a computerized solution is indispensable).
Compute the remaining columns of the V matrix Repeating this procedure for the other 2 eigenvalues yields the matrix V
V = [.64  .38  -.66; .69  .10  .72; -.34  .91  .20]
Notice that if you multiply V by its transpose, the result is an identity matrix, V'V=I.
Compute the L1/2 matrix Now form the matrix L1/2, which is a diagonal matrix whose elements are the square roots of the eigenvalues of R. Then obtain S, the factor structure, using S = V L1/2
[.64  .38  -.66; .69  .10  .72; -.34  .91  .20]*
[1.33  0  0; 0  .96  0; 0  0  .55] =
 [.85  .37  -.37; .91  .10  .40; -.45  .88  .11]
So, for example, .91 is the correlation between variable 2 and the first principal component.
Compute the communality Next compute the communality, using the first two eigenvalues only

S*S' =
 [.85  .37; .91  .09; -.45  .88]*[.85  .91  -.45; .37  .09  .88] =
 [.8662  .8140  -.0606; .8140  .8420  -.3321; -.0606  -.3321  .9876]

Diagonal elements report how much of the variability is explained Communality consists of the diagonal elements.

var  
1 .8662
2 .8420
3 .9876

This means that the first two principal components "explain" 86.62% of the first variable, 84.20 % of the second variable, and 98.76% of the third.

Compute the coefficient matrix The coefficient matrix, B, is formed using the reciprocals of the diagonals of L1/2

B = VL-1/2 = [.48  .40  -1.20; .52  .10  1.31; -.26  .95  .37]
Compute the principal factors Finally, we can compute the factor scores from ZB, where Z is X converted to standard score form. These columns are the principal factors.
F = ZB = [.41  -.69  .06; -2.11  .07  .63; -.46  -.32  .30;
 1.62  -1.00  .70; .70  1.09  .65; -.86  1.32  -.85;
 -.60  -1.31  .86; .94  1.72  -.04; .22  .03  .34; .15  -.91  -2.65]
Principal factors control chart These factors can be plotted against the indices, which could be times. If time is used, the resulting plot is an example of a principal factors control chart.
Home Tools & Aids Search Handbook Previous Page Next Page