Presentation is loading. Please wait.

Presentation is loading. Please wait.

Principal Components: A Mathematical Introduction Simon Mason International Research Institute for Climate Prediction The Earth Institute of Columbia University.

Similar presentations


Presentation on theme: "Principal Components: A Mathematical Introduction Simon Mason International Research Institute for Climate Prediction The Earth Institute of Columbia University."— Presentation transcript:

1 Principal Components: A Mathematical Introduction Simon Mason International Research Institute for Climate Prediction The Earth Institute of Columbia University L i n k i n g S c i e n c e t o S o c i e t y

2 L i n k i n g S c i e n c e t o S i g h t – S e e i n g ! What is the most beautiful city setting? The setting could be measured on a variety of metrics, such as height of surrounding mountains, length of coastline. But if more than one metric is used, then some combined measure will need to be devised.

3 L i n k i n g S c i e n c e t o S i g h t – S e e i n g ! The city scores can be represented by a matrix, X. For simplicity, the scores are considered on only two metrics, and for only three cities. The metrics are sea and mountains, and the cities are San Francisco, Hong Kong, and Cape Town:

4 The means and variances are: L i n k i n g S c i e n c e t o S i g h t – S e e i n g ! The variance is used to distinguish the cities’ attractiveness. The total variance is 5.

5 X can be expressed as an anomaly matrix or a standardized anomaly matrix: L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

6 In general, if and a + b + c = 0, and d + e + f = 0, then L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

7 In general, matrix multiplication gives: So, if a + b + c = 0, and d + e + f = 0, then: L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

8 If X contains data expressed as anomalies If X contains data expressed as standardized anomalies L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

9 Using the city data expressed in standardized anomalies: L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

10 The variance-covariance matrix for the city data is: Note that the covariances are greater than zero, implying that both metrics represent a common aspect of city attractiveness. L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

11 Because of the covariance (or correlation) between the two metrics, we could combine these two metrics into a single new metric that represents the variance that is common to both metrics. Specifically we want to define sets of weights so that the new variables are uncorrelated, and have maximized variance. Let the weights for the first principal component be a, and, for the second principal component, b. L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

12 In matrix notation data are post-multiplied by the weights, represented as U: This gives the principal components Z. The scores on the principal components are: L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

13 The principal components are defined as: Which simply states that they are calculated as the weighted sums of the original metrics. Note that the sums of the squared weights = 1. Also if the principal components are to be uncorrelated, the weights also need to be uncorrelated. L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

14 These two properties of the weights are useful: The diagonals are the sums of the squares of each column of X. A column of X contains the weights for one of the principal components, so the diagonal of X T X are 1. Because the weights are uncorrelated, the off-diagonals are 0. L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

15 So if we post-multiply by U T, we get: L i n k i n g S c i e n c e t o S i g h t – S e e i n g ! Allowing us to express X in terms of the principal component scores and loadings.

16 L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

17

18

19

20 Using the city data:

21 which gives us the variances for both principal components. (Note the total variance.) The eigenvectors can be obtained by solving: L i n k i n g S c i e n c e t o S i g h t – S e e i n g !

22

23

24

25

26

27 Therefore the singular vectors are simply rescaled eigenvalues.

28 L i n k i n g S c i e n c e t o S i g h t – S e e i n g ! Finally, the SVD is useful for demonstrating the equivalence between S- and T-mode analyses.

29 L i n k i n g S c i e n c e t o S i g h t – S e e i n g ! Therefore a T-mode principal components analysis will generate the same results as an S-mode analysis, except that the loadings and the scores are swapped., and the singular values will be scaled by a different value for n.


Download ppt "Principal Components: A Mathematical Introduction Simon Mason International Research Institute for Climate Prediction The Earth Institute of Columbia University."

Similar presentations


Ads by Google