Calculating Volatility on Excel
In the earlier chapter, we introduced standard deviation and its role in assessing ‘Risk or Volatility’ for a stock. Before progressing further into this topic, we must understand how to find volatility data. It is not accessible readily so it is most beneficial to know how to calculate it personally.
In the previous chapter, we analysed Billy and Mike’s examples and outlined the steps for calculation.
In the previous chapter, we demonstrated the mechanics of how to calculate the standard deviation. I believe it is essential to understand what lies beneath a formula, as it can only help to expand your understanding. This chapter will teach us a much easier way to compute standard deviation or the volatility of a given stock using MS Excel. As always, Excel does all the hard work for us- all we need to do is press a button!
Let me outline the overall steps involved and then provide further details for each step:
Step 1: Obtain the historical closing prices dataset.
Step 2: Calculate the daily returns.
Step 3: Utilize the STDEV function.
Now, let’s delve into the first step:
Step 1: Acquire the historical closing prices by downloading the relevant dataset.
You can retrieve data from various sources – some of the reliable, free ones include the NSE India website and Yahoo Finance.
I will collect my data from the National Stock Exchange of India. NSE’s website is incredibly useful and provides a wealth of information, making it one of the finest stock exchange websites globally.
In this chapter, we will determine the volatility of Wipro. To retrieve the historical closing prices, you can visit the website http://www.nseindia.com/products/content/equities/equities/equities.htm and click on the ‘historical data’ section. From there, select the desired search option to access the necessary data.
Once you search, a series of fields will open up for you to fill in; the process is easy, simply enter the required information and click ‘Get Data’. Ensure that you are selecting data from the past year, starting with 22nd July 2014 and ending with 21st July 2015.
Once ‘get data’ has been clicked, NSE’s website will search for your desired information and present it to you.
Note that I have eliminated any superfluous data, keeping only the date and end of day pricing.
Step 2 – Calculate Daily Returns
Daily returns can be ascertained by subtracting the previous day’s closing price from the current one.
The return can be calculated using the formula (Ending Price / Beginning Price) – 1. However, for practicality and ease of calculation, this equation can be approximated to the natural logarithm of the ratio of the ending price to the beginning price, denoted as LN (Ending Price / Beginning Price).
This approximation is commonly referred to as “Log Returns.”
This is a snapshot of the calculation I have done to determine the daily log returns of WIPRO.
I have used the Excel function ‘LN’ to calculate the long returns.
Step 3 – Use the STDEV Function
After computing the daily returns, you can use an excel function ‘STDEV’ to calculate WIPRO’s daily Volatility.
Note: To use the STDEV function, follow these simple steps:
Once this is completed, Excel will quickly calculate the daily standard deviation for WIPRO. My response was 0.0147 giving a percentage of 1.47%.
The daily fluctuation rate of WIPRO is 1.47%.
We have determined WIPRO’s daily volatility, so what is its annual volatility?
It’s vital to remember that to establish the annual volatility, we must multiply daily volatility by the square root of time.
To convert annual volatility into its daily equivalent, simply divide the value by the square root of the time period.
We have determined the daily volatility of WIPRO and now we must calculate the annual volatility. Here, we will do the same.
From this data, we can see that WIPRO has a daily variance of 1.47% and an annual volatility of approximately 23%.
Let’s cross-reference these figures with what the National Stock Exchange (NSE) has posted on their website. The NSE only gives information about Futures and Options stocks, here is a preview of that data.
Our figures are similar to the ones calculated by NSE – Daily Volatility of Wipro is estimated at 1.34%, with an Annualized Volatility around 25.5%.
So why is there a slight discrepancy between our calculation and NSE’s? A possible explanation may be that we are using spot value while NSE is utilizing Futures pricing. However, I don’t find it necessary to delve into the cause of this divergence. What needs to be done here is finding out how to evaluate the volatility of a security based on its day-to-day returns.
Finally, to conclude this chapter, let’s work out one more calculation. Suppose WIPRO’s annual volatility is determined as 25.5%, how can we calculate its daily volatility?
To convert annual volatility to daily volatility, one just needs to divide the annual figure by the square root of time; consequently, in this case –
= 25.5% / SQRT (252)
= 1.60%
We understand volatility and the way to calculate it. Moving on, in the following chapter we’ll explore its practical application.
We are still working on understanding volatility, but our final goal is to comprehend Vega and what it implies. Let’s not forget this aim.
By signing up, you agree to receive transactional messages on WhatsApp. You may also receive a call from a BP Wealth representative to help you with the account opening process
Disclosures and Disclaimer: Investment in securities markets are subject to market risks; please read all the related documents carefully before investing. The securities quoted are exemplary and are not recommendatory. Past performance is not indicative of future results. Details provided in the above newsletter are for educational purposes and should not be construed as investment advice by BP Equities Pvt. Ltd. Investors should consult their investment advisor before making any investment decision. BP Equities Pvt Ltd – SEBI Regn No: INZ000176539 (BSE/NSE), IN-DP-CDSL-183-2002 (CDSL), INH000000974 (Research Analyst), CIN: U45200MH1994PTC081564. Please ensure you carefully read the Risk Disclosure Document as prescribed by SEBI | ICF
Attention Investors
Issued in the interest of Investors
Communications: When You use the Website or send emails or other data, information or communication to us, You agree and understand that You are communicating with Us through electronic records and You consent to receive communications via electronic records from Us periodically and as and when required. We may communicate with you by email or by such other mode of communication, electronic or otherwise.
Investor Alert:
BP Equities Pvt Ltd – SEBI Regn No: INZ000176539 (BSE/NSE), INZ000030431 (MCX/NCDEX), IN-DP-CDSL-183-2002 (CDSL),
INH000000974 (Research Analyst) CIN: U45200MH1994PTC081564
BP Comtrade Pvt Ltd – SEBI Regn No: INZ000030431 CIN: U45200MH1994PTC081564
For complaints, send email on investor@bpwealth.com