Principal Component Analysis

Dimension Reduction Techniques applied in R

N.F. Katzke
09-22-2025

Dimension Reduction techniques

This practical is divided into two parts.

First I show you how to fit PCA and factor analysis models in R.

Second, we do a practical application on currency data - fitting a linear regression using the components derived from the reduced dimension.

Class Video

DIY Section

Part I

Run a PCA on active manager returns in SA.

First update fmxdat to get latest active manager returns:

devtools::install_git("Nicktz/fmxdat")

Active_Managers <- fmxdat::ASISA
Local_Benchmarks <- fmxdat::Local_Indexes

Now - use the practical to do some analytics on which active managers provide useful differentiations. Also, calculate the sum of the first three principal components’ eigenvalues, on a rolling 60 month basis.

Part II

Create a story for a blended fund of funds strategy.

Example

Citation

For attribution, please cite this work as

Katzke (2025, Sept. 22). Financial Econometrics Course: Principal Component Analysis. Retrieved from https://www.fmx.nfkatzke.com/posts/2020-08-15-practical-4/

BibTeX citation

@misc{katzke2025principal,
  author = {Katzke, N.F.},
  title = {Financial Econometrics Course: Principal Component Analysis},
  url = {https://www.fmx.nfkatzke.com/posts/2020-08-15-practical-4/},
  year = {2025}
}