Finance, Risk Analytics, Data Science, Machine Learning.
explained by the first principal component. Finally, we calculate the portfolio risk as the square root of the result, scaled by a factor (2.33) representing the 99th percentile value. The meaning behind this 99th percentile will be explained in more detail towards the end. And now we code!