Algorithm to calculate Financial Turbulence for any time period you wish
I created such an Algorithm based on Mark Kritzman, CFA and Yuanzhen Li, 2010. I have not made any changes in their formula based on Mahalanobis distance. Yet my choice of financial assets classes was different (I added Technological assets). Below you can find my choice:
In order to obtain a wide image of the global financial turbulence the following assets classes and their respective indexes were used:
The main data focus is on American financial assets due to the major influence that the American economy has on the other economies
I would dare to say that the code is quite self-explanatory (at least this was my goal whilst writing it) However, if you have any questions please do not hesitate to ask me. By the way, my linkedin is https://www.linkedin.com/in/hugo-gobato-souto-669b17161/