Finance, Risk Analytics, Data Science, Machine Learning.
“df_calculation”. We use the factor loadings (components of the eigenvector) obtained from PCA (specifically, the first principal component, “PC1”) and store them in the “PC1” column of “df_calculation”. We only take PC1 in this particular example because we achieved the desired variance