Volatility

The price of a security does not go up in a straight light. You may feel like you are on a rollercoaster. All your emotions are running wild the stock you bought is heading a different path to your expected path. Ah! this is the volatility I write about.

The prices swing up one day then down two days. Then you all reasoning is thrown out the window and you decide to close the positions that are causing you stress.

What is the measure volatility?

It is the standard deviation of the log returns on your portfolio, a stock price, an index or any financial instrument.

This is quite useful to understand the behavior and risk of an instrument. With this, you can calculate the expected return of a stock or portfolio.

Calculating volatility

View the code below to see sample calculations of a portfolio calculation in python. I have used data from yahoo finance. Please download the data if you wish to follow.

https://colab.research.google.com/drive/165INmtcDy6SBUH0QU2wHnF9WRq9OGFHN

Future writings

Next we will look at the VIX index and explain why it is a more important and accurate measure of volatility.

Also In future posts we will see how we can incorporate these measures into our AI algorithm.

Nasdaq

NYSE

You May Also Like…

Market Circuit Breakers

Market Circuit Breakers

What are the reasons behind the recent circuit-breakers in the US equity markets? The definition of such mechanisms by...

VIX Index

VIX Index

The index measures the market's expectation of future volatility. Based on options of the S&P 500® Index, the CBOE...

Risk

Risk

You have some spare money and are excited! You want to make this money work for you but you hear all the talk of a...

Subscribe

Join our mailing list to receive the latest articles and updates from our team.

You have Successfully Subscribed!