SlideShare a Scribd company logo
Multivariate analysis: principal
components analysis and factor
analysis
Kashcha Mariya
1
Contents
• Introduction
• Principal components analysis
• Application of principal components analysis
2
Introduction
Principal components analysis and factor
analysis are techniques for analyzing the
structure of data within a multivariate
framework. In this case the structure of the
relationship between the endogenous
variables only is investigated.
One difficulty is to determine which of the
variables to include in the structure and
therefore which variables to measure.
3
• Principal components analysis (PCA) is used
the volatility of a multivariate structure is
being analyzed.
• Factor analysis (FA) is used when the
correlation between the variables of a
multivariate structure is being analyzed.
• Both rely on analyzing the variance/covariance
matrix(C).
4
• Mean-variance analysis measures the total
collective variability of a group of variables.
PCA – identifies and ranks the linear
combinations and their contribution to that
total variability. Each linear combination is a
principal component.
• In applying PCA the total variability within
the data is measured by the sum of the
eigenvalues (which will be equal to the sum of
the elements on the leading diagonal of C,
known as its trace)
5
Purposes of using principal
components analysis
1. To reduce the dimensionality of the data
from one of many variables to one of a few
variables.
2. Interpretation of the data. Because PCA
identifies the linear combinations of
variables, and orders them according to their
contribution to the total variance of the
original data.
6
PCA involves three stages:
1. Find the eigenvectors and their respective
eigenvalues;
2. Construct three matrices Q, D and Q-1;
3. Identify combinations from the eigenvectors,
and rank these combinations in order of
highest to lowest according to eigenvalue.
7
Stage 1. Find the eigenvectors and
their respective eigenvalues
The eigenvectors give us the linearly
independent combination of variables, the
principal components, that contribute to the
total variance.
The eigenvalues give us proportion of total risk
accounted for by each principal component.
8
Matematically, the eigenvectors xi - each have
scalar λi, where the variance-covariance
matrix C is used to multiply the vector xi:
Cxi=λxi
Let’s consider example:
9
10
We have to normalize these so that the vectors have a
length equal to 1: dividing each component y the square
root of the sum of the squares of each component:
11
• Will be as many eigenvectors as there are
variables in the variance-covariance matrix.
Thus in a 2x2 matrix there will be two
eigenvectors, and in an nxn matrix there will
be n eigenvectors.
Find eigenvalues
Multiply eigenvector and matrix C:
12
Stage 2. Construct three matrices Q, D
and Q-1
• Matrix Q is constructed from the eigenvectors
by writing them as a columns of the matrix,
ranking them in the order of their respective
eigenvalues.
13
• Matrix D is a diagonal matrix, the diagonal
elements being the eigenvalues written in the
same order as the eigenvectors in Q:
14
CQ=QD / ∙ Q-1
CQ ∙ Q-1 =QDQ-1
CQ ∙ Q-1 =QDQ-1
C=QDQ-1
15
Stage 3. Identify combinations of
variables and rank these combinations
according to eigenvalue.
Consider the variance/covariance matrix from
two assets X and Y. The variance of this two-
asset portfolio can be written as:
16
17
First principal component
Second main component
(corresponds to the smaller eigenvalue)
Total variance equal sum of eigenvalues:
D=0,000271+0,000129=0,0004
First eigenvector contributes:
0,000271/0,0004=0,6775=67,75% of the total variance
18
Btc/USD UAH/USD FTSE 100 S&P 500 Au/USD Tsl
2014 424 10,99 6731 1834 1247 922
2015 220 23,45 6548 2058 1231 451
2016 420 26,22 5928 2017 1058 396
2017 1079 27,02 7189 2269 1231 503
2018 6639 26,54 7697 2695 1327 621
2019 4107 27,21 6734 2510 1284 878
2020 6316 27,62 7622 3235 1548 2000
Btc/USD UAH/USD FTSE 100 S&P 500 Au/USD Tsl
Btc/USD 1,00 0,47 0,79 0,91 0,77 0,60
UAH/USD 0,47 1,00 0,23 0,61 0,18 0,05
FTSE 100 0,79 0,23 1,00 0,76 0,82 0,53
S&P 500 0,91 0,61 0,76 1,00 0,86 0,75
Au/USD 0,77 0,18 0,82 0,86 1,00 0,88
Tsl 0,60 0,05 0,53 0,75 0,88 1,00
Btc/USD UAH/USD FTSE 100 S&P 500 Au/USD Tsl
Btc/USD 7102022,0 6940,5 1216482,3 1080861,7 277649,6 818117,0
UAH/USD 6940,5 30,5 741,4 1494,0 131,8 132,1
FTSE 100 1216482,3 741,4 337378,2 196293,4 65066,1 159462,0
S&P 500 1080861,7 1494,0 196293,4 198969,7 52011,7 172309,4
Au/USD 277649,6 131,8 65066,1 52011,7 18437,0 61663,7
Tsl 818117,0 132,1 159462,0 172309,4 61663,7 266008,2
19
20
21
22
Pc1=-0,92Btc-0,85FTSE-0,97S&P-0,94Au-0,80Tsl
Pc2=-0,87UAH
23
Laboratory work 7
• Repeat the research conducted in the lecture,
adding at your discretion one (or more)
indicators that correlate with the exchange
rate of the UAH (in relation to USD)
24
• StatQuest: Principal Component Analysis
(PCA), Step-by-Step
25

More Related Content

Similar to Lecture 8.pptx

5.0 -Chapter Introduction
5.0 -Chapter Introduction5.0 -Chapter Introduction
5.0 -Chapter IntroductionSabrina Baloi
 
A Mathematical Programming Approach for Selection of Variables in Cluster Ana...
A Mathematical Programming Approach for Selection of Variables in Cluster Ana...A Mathematical Programming Approach for Selection of Variables in Cluster Ana...
A Mathematical Programming Approach for Selection of Variables in Cluster Ana...IJRES Journal
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.pptTanyaWadhwani4
 
Multivariate Linear Regression.ppt
Multivariate Linear Regression.pptMultivariate Linear Regression.ppt
Multivariate Linear Regression.pptTanyaWadhwani4
 
Stats ca report_18180485
Stats ca report_18180485Stats ca report_18180485
Stats ca report_18180485sarthakkhare3
 
Dimensionality Reduction and feature extraction.pptx
Dimensionality Reduction and feature extraction.pptxDimensionality Reduction and feature extraction.pptx
Dimensionality Reduction and feature extraction.pptxSivam Chinna
 
Cmcchapter02 100613132406-phpapp02
Cmcchapter02 100613132406-phpapp02Cmcchapter02 100613132406-phpapp02
Cmcchapter02 100613132406-phpapp02Cleophas Rwemera
 
Study on Evaluation of Venture Capital Based onInteractive Projection Algorithm
	Study on Evaluation of Venture Capital Based onInteractive Projection Algorithm	Study on Evaluation of Venture Capital Based onInteractive Projection Algorithm
Study on Evaluation of Venture Capital Based onInteractive Projection Algorithminventionjournals
 
An Introduction to Factor analysis ppt
An Introduction to Factor analysis pptAn Introduction to Factor analysis ppt
An Introduction to Factor analysis pptMukesh Bisht
 
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Maninda Edirisooriya
 
Factor analysis ppt
Factor analysis pptFactor analysis ppt
Factor analysis pptMukesh Bisht
 
SURE Model_Panel data.pptx
SURE Model_Panel data.pptxSURE Model_Panel data.pptx
SURE Model_Panel data.pptxGeetaShreeprabha
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Factor anaysis scale dimensionality
Factor anaysis scale dimensionalityFactor anaysis scale dimensionality
Factor anaysis scale dimensionalityCarlo Magno
 

Similar to Lecture 8.pptx (20)

5.0 -Chapter Introduction
5.0 -Chapter Introduction5.0 -Chapter Introduction
5.0 -Chapter Introduction
 
A Mathematical Programming Approach for Selection of Variables in Cluster Ana...
A Mathematical Programming Approach for Selection of Variables in Cluster Ana...A Mathematical Programming Approach for Selection of Variables in Cluster Ana...
A Mathematical Programming Approach for Selection of Variables in Cluster Ana...
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
Class9_PCA_final.ppt
Class9_PCA_final.pptClass9_PCA_final.ppt
Class9_PCA_final.ppt
 
Malhotra18
Malhotra18Malhotra18
Malhotra18
 
Factor analysis
Factor analysisFactor analysis
Factor analysis
 
Multivariate Linear Regression.ppt
Multivariate Linear Regression.pptMultivariate Linear Regression.ppt
Multivariate Linear Regression.ppt
 
Stats ca report_18180485
Stats ca report_18180485Stats ca report_18180485
Stats ca report_18180485
 
Dimensionality Reduction and feature extraction.pptx
Dimensionality Reduction and feature extraction.pptxDimensionality Reduction and feature extraction.pptx
Dimensionality Reduction and feature extraction.pptx
 
Cmcchapter02 100613132406-phpapp02
Cmcchapter02 100613132406-phpapp02Cmcchapter02 100613132406-phpapp02
Cmcchapter02 100613132406-phpapp02
 
Study on Evaluation of Venture Capital Based onInteractive Projection Algorithm
	Study on Evaluation of Venture Capital Based onInteractive Projection Algorithm	Study on Evaluation of Venture Capital Based onInteractive Projection Algorithm
Study on Evaluation of Venture Capital Based onInteractive Projection Algorithm
 
AHP fundamentals
AHP fundamentalsAHP fundamentals
AHP fundamentals
 
An Introduction to Factor analysis ppt
An Introduction to Factor analysis pptAn Introduction to Factor analysis ppt
An Introduction to Factor analysis ppt
 
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
 
Factor analysis ppt
Factor analysis pptFactor analysis ppt
Factor analysis ppt
 
SURE Model_Panel data.pptx
SURE Model_Panel data.pptxSURE Model_Panel data.pptx
SURE Model_Panel data.pptx
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
S1 pn
S1 pnS1 pn
S1 pn
 
MModule 1 ppt.pptx
MModule 1 ppt.pptxMModule 1 ppt.pptx
MModule 1 ppt.pptx
 
Factor anaysis scale dimensionality
Factor anaysis scale dimensionalityFactor anaysis scale dimensionality
Factor anaysis scale dimensionality
 

More from Mariia Kashcha

More from Mariia Kashcha (7)

ПЕТема 3.pptx
ПЕТема 3.pptxПЕТема 3.pptx
ПЕТема 3.pptx
 
ПЕТема 2.pptx
ПЕТема 2.pptxПЕТема 2.pptx
ПЕТема 2.pptx
 
ПЕТема 1.pptx
ПЕТема 1.pptxПЕТема 1.pptx
ПЕТема 1.pptx
 
Lecture 6.pptx
Lecture 6.pptxLecture 6.pptx
Lecture 6.pptx
 
Lecture 4-5.pptx
Lecture 4-5.pptxLecture 4-5.pptx
Lecture 4-5.pptx
 
Lecture 2-3.pptx
Lecture 2-3.pptxLecture 2-3.pptx
Lecture 2-3.pptx
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfPo-Chuan Chen
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfTamralipta Mahavidyalaya
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringDenish Jangid
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxCapitolTechU
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfVivekanand Anglo Vedic Academy
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfjoachimlavalley1
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxbennyroshan06
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resourcesaileywriter
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportAvinash Rai
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...Nguyen Thanh Tu Collection
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxakshayaramakrishnan21
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleCeline George
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxRaedMohamed3
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
 

Recently uploaded (20)

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 

Lecture 8.pptx

  • 1. Multivariate analysis: principal components analysis and factor analysis Kashcha Mariya 1
  • 2. Contents • Introduction • Principal components analysis • Application of principal components analysis 2
  • 3. Introduction Principal components analysis and factor analysis are techniques for analyzing the structure of data within a multivariate framework. In this case the structure of the relationship between the endogenous variables only is investigated. One difficulty is to determine which of the variables to include in the structure and therefore which variables to measure. 3
  • 4. • Principal components analysis (PCA) is used the volatility of a multivariate structure is being analyzed. • Factor analysis (FA) is used when the correlation between the variables of a multivariate structure is being analyzed. • Both rely on analyzing the variance/covariance matrix(C). 4
  • 5. • Mean-variance analysis measures the total collective variability of a group of variables. PCA – identifies and ranks the linear combinations and their contribution to that total variability. Each linear combination is a principal component. • In applying PCA the total variability within the data is measured by the sum of the eigenvalues (which will be equal to the sum of the elements on the leading diagonal of C, known as its trace) 5
  • 6. Purposes of using principal components analysis 1. To reduce the dimensionality of the data from one of many variables to one of a few variables. 2. Interpretation of the data. Because PCA identifies the linear combinations of variables, and orders them according to their contribution to the total variance of the original data. 6
  • 7. PCA involves three stages: 1. Find the eigenvectors and their respective eigenvalues; 2. Construct three matrices Q, D and Q-1; 3. Identify combinations from the eigenvectors, and rank these combinations in order of highest to lowest according to eigenvalue. 7
  • 8. Stage 1. Find the eigenvectors and their respective eigenvalues The eigenvectors give us the linearly independent combination of variables, the principal components, that contribute to the total variance. The eigenvalues give us proportion of total risk accounted for by each principal component. 8
  • 9. Matematically, the eigenvectors xi - each have scalar λi, where the variance-covariance matrix C is used to multiply the vector xi: Cxi=λxi Let’s consider example: 9
  • 10. 10
  • 11. We have to normalize these so that the vectors have a length equal to 1: dividing each component y the square root of the sum of the squares of each component: 11
  • 12. • Will be as many eigenvectors as there are variables in the variance-covariance matrix. Thus in a 2x2 matrix there will be two eigenvectors, and in an nxn matrix there will be n eigenvectors. Find eigenvalues Multiply eigenvector and matrix C: 12
  • 13. Stage 2. Construct three matrices Q, D and Q-1 • Matrix Q is constructed from the eigenvectors by writing them as a columns of the matrix, ranking them in the order of their respective eigenvalues. 13
  • 14. • Matrix D is a diagonal matrix, the diagonal elements being the eigenvalues written in the same order as the eigenvectors in Q: 14
  • 15. CQ=QD / ∙ Q-1 CQ ∙ Q-1 =QDQ-1 CQ ∙ Q-1 =QDQ-1 C=QDQ-1 15
  • 16. Stage 3. Identify combinations of variables and rank these combinations according to eigenvalue. Consider the variance/covariance matrix from two assets X and Y. The variance of this two- asset portfolio can be written as: 16
  • 17. 17 First principal component Second main component (corresponds to the smaller eigenvalue) Total variance equal sum of eigenvalues: D=0,000271+0,000129=0,0004 First eigenvector contributes: 0,000271/0,0004=0,6775=67,75% of the total variance
  • 18. 18 Btc/USD UAH/USD FTSE 100 S&P 500 Au/USD Tsl 2014 424 10,99 6731 1834 1247 922 2015 220 23,45 6548 2058 1231 451 2016 420 26,22 5928 2017 1058 396 2017 1079 27,02 7189 2269 1231 503 2018 6639 26,54 7697 2695 1327 621 2019 4107 27,21 6734 2510 1284 878 2020 6316 27,62 7622 3235 1548 2000 Btc/USD UAH/USD FTSE 100 S&P 500 Au/USD Tsl Btc/USD 1,00 0,47 0,79 0,91 0,77 0,60 UAH/USD 0,47 1,00 0,23 0,61 0,18 0,05 FTSE 100 0,79 0,23 1,00 0,76 0,82 0,53 S&P 500 0,91 0,61 0,76 1,00 0,86 0,75 Au/USD 0,77 0,18 0,82 0,86 1,00 0,88 Tsl 0,60 0,05 0,53 0,75 0,88 1,00 Btc/USD UAH/USD FTSE 100 S&P 500 Au/USD Tsl Btc/USD 7102022,0 6940,5 1216482,3 1080861,7 277649,6 818117,0 UAH/USD 6940,5 30,5 741,4 1494,0 131,8 132,1 FTSE 100 1216482,3 741,4 337378,2 196293,4 65066,1 159462,0 S&P 500 1080861,7 1494,0 196293,4 198969,7 52011,7 172309,4 Au/USD 277649,6 131,8 65066,1 52011,7 18437,0 61663,7 Tsl 818117,0 132,1 159462,0 172309,4 61663,7 266008,2
  • 19. 19
  • 20. 20
  • 21. 21
  • 22. 22
  • 24. Laboratory work 7 • Repeat the research conducted in the lecture, adding at your discretion one (or more) indicators that correlate with the exchange rate of the UAH (in relation to USD) 24
  • 25. • StatQuest: Principal Component Analysis (PCA), Step-by-Step 25