Principal_Components
Principal_Components
• we have
···
– At the i step, ith principal component: linear combination a′i X that max-
imizes V ar(a′i X) subject to a′i ai = 1 and Cov(a′i X, a′k X) = 0, for k < i.
1
Let Σ be the covariance matrix associated with the random vector X′ = [X1 , · · · , Xp ].
Let Σ have the eigenvalue-eigenvector pairs (λ1 , e1 ), · · · , (λp , ep ) where λ1 ≥ · · · λp ≥
0. Then the ith principal component is given by
∑
p ∑
p
σ11 + · · · + σpp = V ar(Xi ) = λ1 + · · · + λp = V ar(Yi )
i=1 i=1
are the correlation coefficients between the components Yi and the variables Xk . Here
(λ1 , e1 ), · · · , (λp , ep ) are the eigenvalue eigenvector pairs for Σ.
Suppose the random variables X1 ,X2 and X3 have the covariance matrix
1 −2 0
−2 5 0
0 0 2
2
3 Principal Components Obtained from Standardized Variables
• Principal components may also be obtained for the standardized variables: Z = (V1/2 )−1 (X − µ)
•
σ11 0 ··· 0
0 σ22 ··· 0
Σ= . .. .. ..
.. . . .
0 0 ··· σpp
•
σ2 ρσ 2 ··· ρσ 2
ρσ 2 σ2 · · · ρσ 2
Σ= . .. .. ..
.. . . .
ρσ 2 ρσ 2 ··· σ2
3
– First sample principal component: linear combination a′1 xj the sample variance
of a′1 xj subject to a′1 a1 = 1.
– Second sample principal component: linear combination a′2 xj the sample vari-
ance of a′2 xj subject to a′2 a2 = 1 and zero sample covariance for the paris (a′1 xj , a′2 xj )
– ith sample principal component: linear combination a′i xj the sample variance of
a′i xj subject to a′i ai = 1 and zero sample covariance for the paris (a′i xj , a′k xj ), k <
i
• If S = {sik } is the p × p sample covariance matrix with eigenvalue eigenvector paris
(λ̂1 , ê1 ), · · · , (λ̂p , êp ), the i-th sample principal component is given by
4
The weekly rates of return for five stocks (JP Morgan, Citibank, Wells Fargo, Royal Dutch
Shell, and ExxonMobil) listed on the New York Stock Exchange were determined for the period
January 2004 through December 2005. The weekly rates of return are defined as (current Friday
closing price-previous Friday closing price)/(previous Friday closing price) adjusted for stock
splits and dividends. The data are listed in the following table:
week JP Morgan Citibank Wells Fargo Royal Dutch Shell Exxon Mobil
1 0.01303 -0.00784 -0.00319 -0.04477 0.00522
2 0.00849 0.01669 -0.00621 0.01196 0.01349
···
103 -0.01279 -0.01437 -0.01874 -0.00498 -0.01637
Find the sample principal components for these data and try to interpret them.