🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 16 (from laksa189)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

📄
INDEXABLE
CRAWLED
10 days ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.3 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://zerodha.com/varsity/chapter/volatility-calculation-historical/
Last Crawled2026-04-08 16:00:16 (10 days ago)
First Indexed2017-05-24 17:19:48 (8 years ago)
HTTP Status Code200
Meta TitleHow to Calculate Volatility of Stocks in Excel: 3 Steps
Meta DescriptionLearn how to calculate stock volatility using Excel. Download NSE data, calculate daily returns, use STDEV function, and convert to annual volatility.
Meta Canonicalnull
Boilerpipe Text
16.1 – Calculating Volatility on Excel In the previous chapter, we introduced the concept of standard deviation and how it can be used to evaluate ‘Risk or Volatility’ of a stock. Before we move any further on this topic I would like to discuss how one can calculate volatility. Volatility data is not easily available, hence its always good to know how to calculate the same yourself. Of course in the previous chapter we looked into this calculation (recall the Billy & Mike example), we outlined the steps as follows – Calculate the average Calculate the deviation – Subtract the average from the actual observation Square and add up all deviations – this is called variance Calculate the square root of variance – this is called standard deviation The purpose of doing this in the previous chapter was to show you the mechanics behind the standard deviation calculation. In my opinion it is important to know what really goes beyond a formula, it only enhances your insights. In this chapter however, we will figure out an easier way to calculate standard deviation or the volatility of a given stock using MS Excel. MS Excel uses the exact same steps we outlined above, just that it happens at a click of a button. I’ll give you the border steps involved first and then elaborate on each step – Download the historical data of closing prices Calculate the daily returns Use the STDEV function So let us get to work straight away. Step 1 – Download the historical closing prices You can do this from any data source that you have. Some of the free and reliable data sources are NSE India website and Yahoo Finance. I will take the data from NSE India for now. At this point I must tell you that NSE’s website is quite resourceful, and in terms of information provided, I guess NSE’s website is one of the best stock exchange websites in the world. Anyway, in this chapter let us calculate Wipro’s volatility. To download the historical closing prices, visit – http://www.nseindia.com/products/content/equities/equities/equities.htm and click on historical data and select the search option. Here is a snapshot where I have highlighted the search option – Once you hit search, a set of fields open up, filling them up is quite self explanatory – just fill in the required details and hit ‘Get Data’. Do make sure you get the data for the last 1 year. The dates that I have selected here is from 22 nd July 2014 to 21 st July 2015. Once you hit ‘get data’, NSE’s website will query your request and fetch you the required data. At this point you should see the following screen – Once you get this, click on ‘Download file in CSV format’ (highlighted in the green box), and that’s it. You now have the required data on Excel. Of course along with the closing prices, you have tons of other information as well. I usually like to delete all the other unwanted data and stick to just the date and closing price. This makes the sheet look clutter free and crisp. Here is a snapshot of how my excel sheet looks at this stage – Do note, I have deleted all the unnecessary information. I have retained just the date and closing prices. Step 2 – Calculate Daily Returns We know that the daily returns can be calculated as – Return = (Ending Price / Beginning Price) – 1 However for all practical purposes and ease of calculation, this equation can be approximated to: Return = LN (Ending Price / Beginning Price) , where LN denotes Logarithm to Base ‘e’, note this is also called ‘Log Returns’. Here is a snap shot showing you how I’ve calculated the daily log returns of WIPRO – I have used the Excel function ‘LN’ to calculate the long returns. Step 3 – Use the STDEV Function Once the daily returns are calculated, you can use an excel function called ‘STDEV’ to calculate the standard deviation of daily returns, which if you realize is the daily Volatility of WIPRO. Note – In order to use the STDEV function all you need to do is this – Take the cursor an empty cell Press ‘=’ Follow the = sign by the function syntax i.e STDEV and open a bracket, hence the empty cell would look like =STEDEV( After the open bracket, select all the daily return data points and close the bracket Press enter Here is the snapshot which shows the same – Once this is done, Excel will instantly calculate the daily standard deviation aka volatility of WIPRO for you. I get the answer as 0.0147 which when converted to a percentage reads as 1.47%. This means the daily volatility of WIPRO is 1.47% ! The value we have calculated is WIPRO’s daily volatility, but what about its annual volatility? Now here is a very important convention you will have to remember – in order to convert the daily volatility to annual volatility just multiply the daily volatility number with the square root of time. Likewise to convert the annual volatility to daily volatility, divide the annual volatility by square root of time. So in this case we have calculated the daily volatility, and we now need WIPRO’s annual volatility. We will calculate the same here – Daily Volatility = 1.47% Time = 252 Annual Volatility = 1.47% * SQRT (252) = 23.33% In fact I have calculated the same on excel, have a look at the image below – So with this, we know WIPRO’s daily volatility is 1.47% and its annual volatility is about 23%. Lets double-check these numbers with what the NSE has published on their website. NSE publishes these numbers only for F&O stocks and not other stocks. Here is the snapshot of the same – Our calculation is pretty much close to what NSE has calculated – as per NSE’s calculation Wipro’s daily volatility is about 1.34% and Annualized Volatility is about 25.5%. So why is there a slight difference between our calculation and NSE’s? – One possible reason could be that we are using spot price while NSE is using Futures price. However, I really don’t want to get into investigating why this slight difference exists. The agenda here is to know how to calculate the volatility of the security given its daily returns. Before we wrap up this chapter, let us just do one more calculation. Assume we directly get the annual volatility of WIPRO as 25.5%, how do we figure out its daily volatility? Like I mentioned earlier, to convert annual volatility to daily volatility you simply have to divide the annual volatility by the square root of time, hence in this particular case – = 25.5% / SQRT (252) = 1.60% So far we have understood what volatility is and how to calculate the same. In the next chapter, we will understand the practical application of volatility. Do remember we are still in the process of understanding volatility; however the final objective is to understand the options greek Vega and that really means. So please do not lose sight of our end objective. Please click here to download the excel sheet. Key takeaways from this chapter Standard Deviation represents volatility, which in turn represents risk We can use NSE website to get the daily closing prices of securities Daily return can be calculated as log returns Log function in excel is LN Daily return formula = LN (Today’s Value / Yesterday’s Value) expressed as a percentage Excel function to calculate volatility is STDEV Standard Deviation of daily return is equivalent of daily volatility To convert daily volatility to annual volatility multiply the daily volatility by the square root of time Likewise to convert annual volatility to daily volatility, divide the annual volatility by the square root of time
Markdown
[![](https://zerodha.com/varsity/wp-content/themes/varsity2/images/logo.png)](https://zerodha.com/varsity) [![](https://zerodha.com/varsity/wp-content/themes/varsity2/images/logo-small.png)](https://zerodha.com/varsity) [☰](https://zerodha.com/varsity/chapter/volatility-calculation-historical/) - [Modules](https://zerodha.com/varsity/modules/) - [Videos](https://zerodha.com/varsity/video-modules/) - [Newsletter](https://zerodhavarsity.substack.com/) - [Junior](https://zerodha.com/varsity/chapter/episode-1-ideas-by-the-lake/) - [Events](https://zerodha.com/varsity/events/) - [Live](https://varsitylive.zerodha.com/home) [**Module 5. Options Theory for Professional Trading**](https://zerodha.com/varsity/module/option-theory/) 1. 1 [Call Option Basics](https://zerodha.com/varsity/chapter/call-option-basics/) 2. 2 [Basic Option Jargons](https://zerodha.com/varsity/chapter/basic-option-jargons/) 3. 3 [Buying a Call Option](https://zerodha.com/varsity/chapter/buying-a-call-option/) 4. 4 [Selling/Writing a Call Option](https://zerodha.com/varsity/chapter/sellingwriting-a-call-option/) 5. 5 [The Put Option Buying](https://zerodha.com/varsity/chapter/the-put-option-buying/) 6. 6 [The Put Option selling](https://zerodha.com/varsity/chapter/the-put-option-selling/) 7. 7 [Summarizing Call & Put Options](https://zerodha.com/varsity/chapter/summarizing-call-put-options/) 8. 8 [Moneyness of an Option Contract](https://zerodha.com/varsity/chapter/moneyness-of-an-option-contract/) 9. 9 [The Option Greeks (Delta) Part 1](https://zerodha.com/varsity/chapter/the-option-greeks-delta-part-1/) 10. 10 [Delta (Part 2)](https://zerodha.com/varsity/chapter/delta-part-2/) 11. 11 [Delta (Part 3)](https://zerodha.com/varsity/chapter/delta-part-3/) 12. 12 [Gamma (Part 1)](https://zerodha.com/varsity/chapter/gamma-part-1/) 13. 13 [Gamma (Part 2)](https://zerodha.com/varsity/chapter/gamma-part-2/) 14. 14 [Theta](https://zerodha.com/varsity/chapter/theta/) 15. 15 [Volatility Basics](https://zerodha.com/varsity/chapter/understanding-volatility-part-1/) 16. 16 [Volatility Calculation (Historical)](https://zerodha.com/varsity/chapter/volatility-calculation-historical/) 17. 17 [Volatility & Normal Distribution](https://zerodha.com/varsity/chapter/volatility-normal-distribution/) 18. 18 [Volatility Applications](https://zerodha.com/varsity/chapter/volatility-applications/) 19. 19 [Vega](https://zerodha.com/varsity/chapter/vega/) 20. 20 [Greek Interactions](https://zerodha.com/varsity/chapter/greek-interactions/) 21. 21 [Greek Calculator](https://zerodha.com/varsity/chapter/greek-calculator/) 22. 22 [Re-introducing Call & Put Options](https://zerodha.com/varsity/chapter/re-introducing-call-put-options/) 23. 23 [Case studies – wrapping it all up\!](https://zerodha.com/varsity/chapter/case-studies-wrapping-it-all-up/) 24. 24 [Quick note on Physical Settlement](https://zerodha.com/varsity/chapter/quick-note-on-physical-settlement-2/) 25. 25 [Options M2M and P\&L calculation](https://zerodha.com/varsity/chapter/options-m2m-and-pl/) # [16\. Volatility Calculation (Historical)](https://zerodha.com/varsity/chapter/volatility-calculation-historical/) [← Previous](https://zerodha.com/varsity/chapter/understanding-volatility-part-1/) [Chapters](https://zerodha.com/varsity/module/option-theory/) [Next →](https://zerodha.com/varsity/chapter/volatility-normal-distribution/) ## ![M5-Ch16-Cartoon](http://zerodha.com/varsity/wp-content/uploads/2015/07/M5-Ch16-Cartoon.png) ## 16\.1 – Calculating Volatility on Excel In the previous chapter, we introduced the concept of standard deviation and how it can be used to evaluate ‘Risk or Volatility’ of a stock. Before we move any further on this topic I would like to discuss how one can calculate volatility. Volatility data is not easily available, hence its always good to know how to calculate the same yourself. Of course in the previous chapter we looked into this calculation (recall the Billy & Mike example), we outlined the steps as follows – 1. Calculate the average 2. Calculate the deviation – Subtract the average from the actual observation 3. Square and add up all deviations – this is called variance 4. Calculate the square root of variance – this is called standard deviation The purpose of doing this in the previous chapter was to show you the mechanics behind the standard deviation calculation. In my opinion it is important to know what really goes beyond a formula, it only enhances your insights. In this chapter however, we will figure out an easier way to calculate standard deviation or the volatility of a given stock using MS Excel. MS Excel uses the exact same steps we outlined above, just that it happens at a click of a button. I’ll give you the border steps involved first and then elaborate on each step – 1. Download the historical data of closing prices 2. Calculate the daily returns 3. Use the STDEV function So let us get to work straight away. **Step 1** – Download the historical closing prices You can do this from any data source that you have. Some of the free and reliable data sources are NSE India website and Yahoo Finance. I will take the data from NSE India for now. At this point I must tell you that NSE’s website is quite resourceful, and in terms of information provided, I guess NSE’s website is one of the best stock exchange websites in the world. Anyway, in this chapter let us calculate Wipro’s volatility. To download the historical closing prices, visit – <http://www.nseindia.com/products/content/equities/equities/equities.htm> and click on historical data and select the search option. Here is a snapshot where I have highlighted the search option – [![Image 1\_Search](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-1_Search.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-1_Search.png) Once you hit search, a set of fields open up, filling them up is quite self explanatory – just fill in the required details and hit ‘Get Data’. Do make sure you get the data for the last 1 year. The dates that I have selected here is from 22nd July 2014 to 21st July 2015. Once you hit ‘get data’, NSE’s website will query your request and fetch you the required data. At this point you should see the following screen – [![Image 2\_Download CSV](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-2_Download-CSV.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-2_Download-CSV.png) Once you get this, click on ‘Download file in CSV format’ (highlighted in the green box), and that’s it. You now have the required data on Excel. Of course along with the closing prices, you have tons of other information as well. I usually like to delete all the other unwanted data and stick to just the date and closing price. This makes the sheet look clutter free and crisp. Here is a snapshot of how my excel sheet looks at this stage – [![Image 3\_Excel](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-3_Excel.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-3_Excel.png) Do note, I have deleted all the unnecessary information. I have retained just the date and closing prices. **Step 2** – Calculate Daily Returns We know that the daily returns can be calculated as – Return = (Ending Price / Beginning Price) – 1 However for all practical purposes and ease of calculation, this equation can be approximated to: **Return = LN (Ending Price / Beginning Price)**, where LN denotes Logarithm to Base ‘e’, note this is also called ‘Log Returns’. Here is a snap shot showing you how I’ve calculated the daily log returns of WIPRO – [![Image 4\_LN returns](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-4_LN-returns.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-4_LN-returns.png) I have used the Excel function ‘LN’ to calculate the long returns. **Step 3** – Use the STDEV Function Once the daily returns are calculated, you can use an excel function called ‘STDEV’ to calculate the standard deviation of daily returns, which if you realize is the daily Volatility of WIPRO. Note – In order to use the STDEV function all you need to do is this – 1. Take the cursor an empty cell 2. Press ‘=’ 3. Follow the = sign by the function syntax i.e STDEV and open a bracket, hence the empty cell would look like =STEDEV( 4. After the open bracket, select all the daily return data points and close the bracket 5. Press enter Here is the snapshot which shows the same – [![Image 5\_STDEV](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-5_STDEV.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-5_STDEV.png) Once this is done, Excel will instantly calculate the daily standard deviation aka volatility of WIPRO for you. I get the answer as 0.0147 which when converted to a percentage reads as 1.47%. This means the daily volatility of WIPRO is 1.47% \! The value we have calculated is WIPRO’s daily volatility, but what about its annual volatility? Now here is a very important convention you will have to remember – in order to convert the daily volatility to annual volatility just multiply the daily volatility number with the square root of time. Likewise to convert the annual volatility to daily volatility, divide the annual volatility by square root of time. So in this case we have calculated the daily volatility, and we now need WIPRO’s annual volatility. We will calculate the same here – - Daily Volatility = 1.47% - Time = 252 - Annual Volatility = 1.47% \* SQRT (252) - \= 23.33% In fact I have calculated the same on excel, have a look at the image below – [![](https://zerodha.com/varsity/wp-content/uploads/2015/07/Screenshot_22.png)](https://zerodha.com/varsity/wp-content/uploads/2015/07/Screenshot_22.png) So with this, we know WIPRO’s daily volatility is 1.47% and its annual volatility is about 23%. Lets double-check these numbers with what the NSE has published on their website. NSE publishes these numbers only for F\&O stocks and not other stocks. Here is the snapshot of the same – [![Image 6\_NSE](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-6_NSE.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-6_NSE.png) Our calculation is pretty much close to what NSE has calculated – as per NSE’s calculation Wipro’s daily volatility is about 1.34% and Annualized Volatility is about 25.5%. So why is there a slight difference between our calculation and NSE’s? – One possible reason could be that we are using spot price while NSE is using Futures price. However, I really don’t want to get into investigating why this slight difference exists. The agenda here is to know how to calculate the volatility of the security given its daily returns. Before we wrap up this chapter, let us just do one more calculation. Assume we directly get the annual volatility of WIPRO as 25.5%, how do we figure out its daily volatility? Like I mentioned earlier, to convert annual volatility to daily volatility you simply have to divide the annual volatility by the square root of time, hence in this particular case – \= 25.5% / SQRT (252) \= 1.60% So far we have understood what volatility is and how to calculate the same. In the next chapter, we will understand the practical application of volatility. Do remember we are still in the process of understanding volatility; however the final objective is to understand the options greek Vega and that really means. So please do not lose sight of our end objective. Please [**click here**](http://zerodha.com/varsity/wp-content/uploads/2015/07/Wipro.xlsx) to download the excel sheet. *** ### Key takeaways from this chapter 1. Standard Deviation represents volatility, which in turn represents risk 2. We can use NSE website to get the daily closing prices of securities 3. Daily return can be calculated as log returns 4. Log function in excel is LN 5. Daily return formula = LN (Today’s Value / Yesterday’s Value) expressed as a percentage 6. Excel function to calculate volatility is STDEV 7. Standard Deviation of daily return is equivalent of daily volatility 8. To convert daily volatility to annual volatility multiply the daily volatility by the square root of time 9. Likewise to convert annual volatility to daily volatility, divide the annual volatility by the square root of time [← Previous](https://zerodha.com/varsity/chapter/understanding-volatility-part-1/) [Chapters](https://zerodha.com/varsity/module/option-theory/) [Next →](https://zerodha.com/varsity/chapter/volatility-normal-distribution/) *** [954](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comments) [comments](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comments) 1. ![](https://secure.gravatar.com/avatar/d5fd119eb644d57544f40e463c6179b2a6b4fcf5de072965e505ea1dbdceb294?s=32&d=identicon&r=g) Pradeep Mutalik says: [December 12, 2025 at 10:34 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-581052) Hi Kartik on NSE website I\\’m unable sight Historical data for Nifty 50, thats to calculate daily returns and SD . [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-581052) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 12, 2025 at 1:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-581073) Ah, they must have changed the file location. I\\’d suggest you contact them. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-581073) - ![](https://secure.gravatar.com/avatar/d873d33f676fdd8c431e1cf981a5bfcfbf33a1de3b94b2ae83177605f1707a0c?s=32&d=identicon&r=g) Priya says: [February 10, 2026 at 7:23 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-584504) Hi Karthik I am unable to download the excel files from the click here option in the above mentioned topic [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-584504) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 10, 2026 at 10:29 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-584531) Can you try from another browser? Usually that works. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-584531) - ![](https://secure.gravatar.com/avatar/79845497f0b4d6a5202326481020b43c43a18f587afcffb8f782d77bb00f669c?s=32&d=identicon&r=g) pavankumar says: [February 26, 2026 at 6:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-585458) https://www.nseindia.com/report-detail/eq\_security [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-585458) 2. ![](https://secure.gravatar.com/avatar/d423a4cb0863489fd33e3c329eec24f8ab794de20a5d9e52e399d86951bcbe84?s=32&d=identicon&r=g) Ishav says: [October 21, 2025 at 9:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-577584) https://stoxbox.in/mentorbox/marketopedia-old/options-trading/calculate-volatility-on-excel I have found this. As you can see all the data is same as Varsity. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-577584) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 22, 2025 at 9:32 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-577643) As they say, imitation is the best form of flattery 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-577643) 3. ![](https://secure.gravatar.com/avatar/ccaeb1adb436c40687cb10f9c20091186ff4d932dbb627548836c80e16c37f9d?s=32&d=identicon&r=g) Sandeep says: [August 14, 2025 at 10:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572312) Hi Sir, I tried to calculate the Annual volatility of Wipro dtd from 14th Aug\\’24 to 14th Aug\\’25 i.e of last year. The result calculated as below: Daily Volatility = 4.66% Yearly Volatility = 74.01% (Daily X SQRT(252) The same I checked in NSE website Daily Volatility = 1.68% Yearly Volatility = 32.10% Why there is so much difference? or am I making any error while calculating? Please help sir. I am not able to paste the screenshot of NSE website. https://www.nseindia.com/get-quotes/equity?symbol=WIPRO I just paste the data from NSE website. 52 Week High (23-Jan-2025) 324.60 52 Week Low (07-Apr-2025) 228.00 Upper Band 265.81 Lower Band 217.48 Price Band (%) No Band Daily Volatility 1.68 Annualised Volatility 32.10 Tick Size 0.01 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572312) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 15, 2025 at 5:02 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572331) There could be some difference, primarily due to the fact in the way volatility is computed – in our procedure we give equal weights to all data points to figure variance from trading perspective, but in NSE\\’s method variance is computed largely from margins perspective. I think they give more weightage to the recent data points. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572331) - ![](https://secure.gravatar.com/avatar/ccaeb1adb436c40687cb10f9c20091186ff4d932dbb627548836c80e16c37f9d?s=32&d=identicon&r=g) Sandeep says: [August 15, 2025 at 2:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572374) Thanks Sir for replying \! But what I should do here, Shall I go with our calculation for range? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572374) - ![](https://secure.gravatar.com/avatar/ccaeb1adb436c40687cb10f9c20091186ff4d932dbb627548836c80e16c37f9d?s=32&d=identicon&r=g) Sandeep says: [August 15, 2025 at 9:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572411) One more question Where to find the Nifty Daily and Yearly Std Dev ? As I can see the Stock\\’s Std dev but same is not available for Nifty in NSE Website. Or Am I missing anything ? Please guide. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572411) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 18, 2025 at 10:19 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572614) Sandeep, I think its still there on NSE website, maybe they changed the location. Alternatively you can use AI tools to figure this now 🙂 - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 18, 2025 at 10:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572610) Yes please, you can do that 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-572610) 4. ![](https://secure.gravatar.com/avatar/da535dbcb669286f7c8da6d106dd901b351a8f3321f4cd5db6914c5c0f460c26?s=32&d=identicon&r=g) gautam pinjani says: [June 19, 2025 at 11:48 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-564986) sir i checked on nse website and they had given volatility estimates for non fno stocks as well. example gtl infra. could you please comment on it\\’s reliability. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-564986) 5. ![](https://secure.gravatar.com/avatar/69c4f62cca60297521f8643c47b6273b45a061e4c243aaeef6659504ee617d5d?s=32&d=identicon&r=g) Shagun Hudda says: [May 8, 2025 at 12:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-561759) Hello Sir, Could you tell me the reasoning behind why do you take one year time period for volatility calculation? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-561759) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 8, 2025 at 10:00 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-561776) To get a sense of the yearly volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-561776) 6. ![](https://secure.gravatar.com/avatar/575942a53fb685de2207280ca81e6834fbe14160f69b37eef86b89e5e28d8d5d?s=32&d=identicon&r=g) Souvik Banerjee says: [May 6, 2025 at 3:11 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-561631) \+Hello Karthick, I like to thank you for your effort to educate us with such an approach which is so easy to understand. I just have a small doubt which is more related to the calculation. Just one doubt with respect to the below snippet Daily Volatility = 1.47% Time = 252 Annual Volatility = 1.47% \* SQRT (252) = 23.33% How we came to a conclusion of 252 days since from my opinion it should be 243 days [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-561631) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 7, 2025 at 12:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-561702) Thanks Souvik, the idea is to take the total number of trading days. 252 is the usual number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-561702) 7. ![](https://secure.gravatar.com/avatar/b2c84d6f6a0dfb1f5fd5a7ae4716b942072be290edc81483bb9837ece3195422?s=32&d=identicon&r=g) bhushan akerkar says: [March 28, 2025 at 4:00 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-558765) for the daily volatility calculations of Wipro stock, we are taking the previous close and the current close into consideration. Would it not be accurate and reflective of the daily volatility if we took (days close – days open)/days open as a measure of the daily volatility.Would the results be different ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-558765) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 30, 2025 at 9:01 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-558862) Here, volatility is measured by the returns and on the price movement. So if the idea is to calculate volatility of price returns, then the current formula makes sense. However, if you want to calculate the volatility of price movements, then yes, what you suggested makes sense. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-558862) - ![](https://secure.gravatar.com/avatar/b2c84d6f6a0dfb1f5fd5a7ae4716b942072be290edc81483bb9837ece3195422?s=32&d=identicon&r=g) bhushan akerkar says: [April 4, 2025 at 2:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-559189) You have given a snap shot of Wipro details from the NSE website and have shown that the annual volatility matches the one which we have calculated from daily volatility. But how is annual volatility calculated from first principles (not from daily volatility) Will if be the Stdev of (close of the last day of the year – open of the first day of the year)/( open of the first day of the year) for the past several years ? Approx how many years should be taken ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-559189) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 7, 2025 at 12:52 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-559434) You can take last 1 year daily data Bhushan. That will work. Taking the last day or the tear and first day of the year will still give you just 1 day;s of data and not yearly. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-559434) 8. ![](https://secure.gravatar.com/avatar/b3fbf1dcf20d28cad611f8243b8e68ca765b3ae7a10a4698502fd75de11d5ad0?s=32&d=identicon&r=g) Aditya Ratra says: [February 4, 2025 at 6:58 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-555035) No Sir, I haven\\’t made any such changes. I Calculated it purely based on what I read in this chapter & copied the data from the NSE site. Kindly Enlighten me more? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-555035) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 5, 2025 at 9:24 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-555070) You can check this Aditya – https://youtu.be/MX-6rdHDPbE?si=qbculG4XBhKvSm8P [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-555070) 9. ![](https://secure.gravatar.com/avatar/b3fbf1dcf20d28cad611f8243b8e68ca765b3ae7a10a4698502fd75de11d5ad0?s=32&d=identicon&r=g) Aditya Ratra says: [February 3, 2025 at 8:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554954) Hello Sir, I have a Doubt. Kindly Help. If I check Daily and Annualized Volatility of Dabur as of now: https://www.nseindia.com/get-quotes/equity?symbol=WIPRO Daily Volatility 1.74 Annualised Volatility 33.24 & the calculated Volatility of Dabur comes out to be Daily Volatility 4.756509385 Annual Volatility 75.0564521 https://1drv.ms/x/c/a6df9bade8b2fec2/EVIKWYZsD\_FPsfHl99rrsL8BwEpEs1HIm5iOjkWrIGGbJQ?e=jVk9iu Why is there a Mis Match? I have Shared Links of both. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554954) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 4, 2025 at 12:05 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-555013) Aditya, have you made sure the data is cleaned for bonus, splits, and other corporate actions? Usually that is one common mismatch area. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-555013) 10. ![](https://secure.gravatar.com/avatar/c599096525901620d56a1f475cf6aa829d57a52e2f972ca3be94970c6ee0f9f6?s=32&d=identicon&r=g) Pranav says: [January 29, 2025 at 2:21 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554585) I think this is the valid link for NSE historical data now: https://www.nseindia.com/reports-indices-historical-index-data [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554585) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 30, 2025 at 10:15 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554639) Ah you found it, thanks for sharing it here 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554639) 11. ![](https://secure.gravatar.com/avatar/c599096525901620d56a1f475cf6aa829d57a52e2f972ca3be94970c6ee0f9f6?s=32&d=identicon&r=g) Pranav says: [January 29, 2025 at 1:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554580) Hi Karthik, The link to historical data is not valid anymore… http://www.nseindia.com/products/content/equities/equities/equities.htm This leads to a stle page and it needs to be updated. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554580) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 30, 2025 at 10:15 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554638) They keep changing the site, need to look for where its hiding now 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-554638) 12. ![](https://secure.gravatar.com/avatar/4133cf4ba97b3bf2a5f8084b5d2a12c8d03d28956e5eba16e00368f42ef0957d?s=32&d=identicon&r=g) Rahul says: [January 8, 2025 at 11:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-553065) Hello Karthik. Thank you again for so wonderful explanations. Can you please check the wipro excel? You have used sqrt(365) well as here you have used sqrt(252) to convert daily SD to annual SD. Hence here Wipro\\’s annual SD is 23.33% well as in Excel Wipro\\’s annual SD is 28.04%. Which time should we use 252 or 365? Thank you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-553065) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 9, 2025 at 6:24 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-553084) Ah, sorry about the confusion Rahul. Please consider 252, the actual number of trading days. Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-553084) 13. ![](https://secure.gravatar.com/avatar/8d7fd5dc632a9ff9ec5b6a5b8dd8063c516759541180f663ff17a60c0df774a9?s=32&d=identicon&r=g) Hiren shah says: [December 20, 2024 at 4:52 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-551490) While calculating daily returns, do we have to separately calculate like B3/B2,B4/B3,B5/B4 …. till all 252 ratios or is there any simpler method to do that? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-551490) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 21, 2024 at 4:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-551513) If you are doing it on excel, it is one click calculation right? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-551513) 14. ![](https://secure.gravatar.com/avatar/8d7fd5dc632a9ff9ec5b6a5b8dd8063c516759541180f663ff17a60c0df774a9?s=32&d=identicon&r=g) Hiren shah says: [December 3, 2024 at 5:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-550198) in excel sheet ,it is written in bracket that =STEDEV(C3:C245).STEDEV means standard deviation & C 245 MEANS NO. OF WORKING DAYS IN A YEAR OR SOMETHING ELSE?If 245 denotes no.of days than formula c3:C remains confusing.Is it C3:C2 OR???? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-550198) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 4, 2024 at 10:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-550239) C3 to C245 indicates the range within which the cells are selected to calculate the standard deviation. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-550239) 15. ![](https://secure.gravatar.com/avatar/8d7fd5dc632a9ff9ec5b6a5b8dd8063c516759541180f663ff17a60c0df774a9?s=32&d=identicon&r=g) Hiren shah says: [December 2, 2024 at 4:53 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-550160) Daily volatility =STEDEV(C3:C245) in the snapshot above the blue arrow in chapter 16 is confusing. Can u help me with this? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-550160) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 3, 2024 at 12:30 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-550180) What exactly is confusing Hiren? Do let me know. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-550180) 16. ![](https://secure.gravatar.com/avatar/cd1f5c4e5bea2d1ed43100c6b7d840b984fb8eebef17a56d00d516c4d36586ec?s=32&d=identicon&r=g) Prashanth K R says: [November 12, 2024 at 8:08 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-537472) Hi Karthik Sir, Actually I could\\’nt get the concept of sq. root of time? Like how you have arrived with the number of 252? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-537472) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 13, 2024 at 11:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-537526) There is a mathematical derivation for this. I dont know the math part, but end useable result is square root of time 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-537526) 17. ![](https://secure.gravatar.com/avatar/8b2c3b53a72f073ef0c7383a7a4fb3b439cfced6a31812f7d33f0d53a9eeceab?s=32&d=identicon&r=g) Well wisher says: [October 1, 2024 at 9:48 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-534468) A small correction. At the the end of step 2 it is written “ long returns” which I think should be “ log returns “. That’s all Thanks You have done a Great job sir [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-534468) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 2, 2024 at 12:03 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-534492) Ah, thanks for pointing that. Let me check 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-534492) 18. ![](https://secure.gravatar.com/avatar/159d107b2d64795e7b21d6d0862f27406825f0abfae4e580f961850009801919?s=32&d=identicon&r=g) Vitthal says: [September 16, 2024 at 11:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533464) Sir in time you have taken the value as 252. How you have taken this value? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533464) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 17, 2024 at 11:32 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533514) 252 = Number of trading days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533514) 19. ![](https://secure.gravatar.com/avatar/159d107b2d64795e7b21d6d0862f27406825f0abfae4e580f961850009801919?s=32&d=identicon&r=g) Vitthal says: [September 15, 2024 at 12:27 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533362) Sir i am having three questions regarding this chapter Q.1 – The data you have taken is the spot data or futures data Q.2 – For the daily returns why you have not taken the formula – Daily Return (%) = ((Today closing price – Yesterday closing price) \* 100) / Yesterday closing price Q.3 – In the screenshot above you have used LN(P3/P2) and the values in the first two cells are 558.75 and 570.9 respectively. And with this formula the value is coming 0.009. So how should i use this formula correctly to match with the excel value? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533362) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 15, 2024 at 1:59 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533372) 1\) Spot 2) Its the same thing, try it on a data set 🙂 3) Convert this to %. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533372) 20. ![](https://secure.gravatar.com/avatar/159d107b2d64795e7b21d6d0862f27406825f0abfae4e580f961850009801919?s=32&d=identicon&r=g) Vitthal says: [September 15, 2024 at 12:19 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533361) Sir i am having three questions regarding this chapter [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533361) 21. ![](https://secure.gravatar.com/avatar/329fdb8b715dbbbb6f53fbf8ba0572bcd3bc4ad1cb1ded880c421ea4ba0172da?s=32&d=identicon&r=g) Dixit says: [September 13, 2024 at 10:38 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533220) If \\”Daily Return = Y;day’s price/Today’s price -1\\”, then in the excel screenshot you have put ln(b3/b2), where I assume b3 is today\\’s price and b2 was y\\’day\\’s price. It is confusing, can you please clear it up? Thank you [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533220) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 14, 2024 at 10:23 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533291) Sorry, I made a typo. Daily Return = Today\\’s price/Y\\’day retrun, this will give you return, but then you will have to subtract 1 to express this in %. Daily Return = (Today\\’s price/Y\\’day retrun) – 1. Here don\\’t have to subtract 1 as its already baked in the formula. But both are essentially the same. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533291) 22. ![](https://secure.gravatar.com/avatar/329fdb8b715dbbbb6f53fbf8ba0572bcd3bc4ad1cb1ded880c421ea4ba0172da?s=32&d=identicon&r=g) Dixit says: [September 12, 2024 at 11:54 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533195) Hi Karthik, If I need to to calculate the daily average, I should add up the daily returns and divide by the number of days, right? eg: for a year with 252 days (sum of daily avg of 252 days)/252, in this should I divide by 252 or 251 as the first day\\’s daily return would be 0. Thank you:) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533195) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 13, 2024 at 5:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533214) Daily Return = Y;day\\’s price/Today\\’s price -1 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533214) 23. ![](https://secure.gravatar.com/avatar/4a90ea2b259c64d623871696a89ecee24014958a98b560b85cbaf20d9b9fec2f?s=32&d=identicon&r=g) Srinivas says: [September 9, 2024 at 11:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-532981) Hi, We are taking closing rice of previous day as opening price for the next day? It may differ everyday. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-532981) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 10, 2024 at 7:53 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533010) Yes, the close price and opening price need not be the same. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-533010) 24. ![](https://secure.gravatar.com/avatar/df28916e1ecff264ffb9cc2748e3d6c0266812ced3b6ce1c3ff71653cc21bd95?s=32&d=identicon&r=g) Rahul says: [July 19, 2024 at 11:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-527405) Hello karthik, Can you please explain the difference in vol. calculation by using spot, forward and future prices? please it will help to understand better. Thanks\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-527405) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 20, 2024 at 10:12 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-527432) The technique is the same and does not differ, Rahul. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-527432) 25. ![](https://secure.gravatar.com/avatar/1aa61dcb2a3d8867a7c08b57effc14689213afbdc38629960d0d19d05effc237?s=32&d=identicon&r=g) Novak says: [June 27, 2024 at 1:42 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525768) Why 252 as time? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525768) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 28, 2024 at 9:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525814) Thats the number of trading days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525814) 26. ![](https://secure.gravatar.com/avatar/69fda6a99824953f63cc29e2e06729dfef8deccfdec9f5a0ac52d0c3c4957dcf?s=32&d=identicon&r=g) Navneet says: [June 23, 2024 at 10:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525446) HI Karthik, thanks for explaining things in such a layman language. I have a question on Nifty daily returns graphical representation in attached excel file. What does it represents? How I can interpret this info of these two numbers on chart. Bin array of 0.10% and o.26% is getting maximum frequency of 89 and 88 respectively. Or How I can relate back aforementioned info to nifty spot? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525446) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 24, 2024 at 10:15 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525512) Sorry, I\\’m unable to see the graph. Bin array is basically the size of the bin, a distribution of return range. For example all returns from 0.5% to 1%, will be contained within the 1% bin. Not sure if that helps 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525512) 27. ![](https://secure.gravatar.com/avatar/aa8cb39952a9d9090daee0b26763b4b8e16e25d70ed5299e7af2acfb7d27477f?s=32&d=identicon&r=g) suriya says: [June 21, 2024 at 1:08 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525169) hi karthik Iam unable to compute SD on the excel sheet.I tried for Nifty, either the log function retuens a null value or the SD returns a divide by zero error. Can you help? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525169) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 22, 2024 at 11:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525212) Ah, it must be a syntax error Suriya. Please double check each step, thats the only way to fix it 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-525212) 28. ![](https://secure.gravatar.com/avatar/aaa161f86e28bda53d363e2c2c205c98801fd3ba17d0a472e371d317110409d8?s=32&d=identicon&r=g) Naman Singh says: [June 13, 2024 at 1:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-524232) How did you get the LN output in percentage? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-524232) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 14, 2024 at 10:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-524270) YOu can use excel. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-524270) 29. ![](https://secure.gravatar.com/avatar/85d20569f8691856385d0fdf234f9ee9ba068d8dfaa6b1eabc3bb9a740fb923e?s=32&d=identicon&r=g) Priyanka says: [May 16, 2024 at 8:54 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-521722) hi sir, loved every module so far on options trading. Time is the number of the trading days? please specify because i\\’m new to this topic. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-521722) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 17, 2024 at 11:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-521852) Thanks, Priyanka. Yes, time refers to the number of days till expiry. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-521852) 30. ![](https://secure.gravatar.com/avatar/573efb36ba9d71fef6edcf1a1d7c2bd3318c390d4bfdf610cd7c4b9ce78f79e4?s=32&d=identicon&r=g) KB says: [May 5, 2024 at 2:15 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-520889) If we have more than 1 year (say 3 years) of daily returns , how can we calculate the annualized volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-520889) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 6, 2024 at 11:09 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-520966) Yes you can, but I\\’d suggest you take 1 year data, thats good enough. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-520966) 31. ![](https://secure.gravatar.com/avatar/2659169727dfba26d37ea0840ed8a48a7cd58903c8d342bb5052680a6ad717d3?s=32&d=identicon&r=g) Shishir Kumar Das says: [April 15, 2024 at 6:05 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-519890) CAN SOMEONE PLEASE SHARE DIRECT LINK OF NSE SITE PAGE WHERE ANNUAL & DAILY VOLATILITY OF EQUITIES AND CURRENCY BE FOUND ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-519890) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 16, 2024 at 11:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-519925) They keep changing the page, best if to look for it under historical data section on the website. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-519925) 32. ![](https://secure.gravatar.com/avatar/fd2249c28efd91aae50394b1e472b031b2e787530da83c051b6d648668928079?s=32&d=identicon&r=g) DB says: [April 13, 2024 at 3:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-519766) Hi Karthik, thank you for this blog. If I want to find the volatility 10 days from today, will it be (Daily volatility) x (10)^0.5. Have I got it right. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-519766) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 14, 2024 at 3:06 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-519796) Daily vol \* Sqrt(10) – this should work. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-519796) 33. ![](https://secure.gravatar.com/avatar/908b8fb26fce5ea6e5ac37dfa07f15298528eae99d86171d23b26f10c7fddc22?s=32&d=identicon&r=g) Ram says: [March 24, 2024 at 6:06 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-518833) Hi Karthick, Just I have doubt using Historical Stock price as a variable will be comes under Monte Carlo Distribution? if you clarify that It would be great for my academics. Thank you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-518833) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 25, 2024 at 10:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-518873) What variable are you talking about, Ram? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-518873) 34. ![](https://secure.gravatar.com/avatar/464cb066bda6b324d00ff88c7e17a2e01a8f20543b67d4eb450aa5e829b0e3d8?s=32&d=identicon&r=g) Abhinav says: [January 29, 2024 at 8:16 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-515584) 252 ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-515584) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 29, 2024 at 10:47 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-515610) 252 = number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-515610) 35. ![](https://secure.gravatar.com/avatar/be669a42d90ff5adf650a3829539c4641703d3b90ed3a8a85b3b85e0173057c3?s=32&d=identicon&r=g) Gaurav J Shirgaonkar says: [January 15, 2024 at 1:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-515038) Thank you so much for all your efforts Karthik. Also, I can see you have responded on almost every comment which is very appreciating. My question here is that I tried the same steps which you have mentioned for Wipro stock just for trial. However the date range is from 15th Jan 2023 to 15th Jan 2024 (One year). My figures are not matching with the NSE website. I am getting 1.26% as daily volatility and 19.68% as annual volatility. On the website daily volatility is shown as 1.45% and annual volatility is 27.70%. Can you please help? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-515038) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 16, 2024 at 6:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-515076) Thanks Gaurav. Yes, the difference exists becuase NSE looks at the \\’recency\\’ of data and gives weight age to recent price movements. Their interest in calculating volatility if from margin collection perspective. Where as in our method, we are paying attention to the variance from average returns i.e. volatility. Hence the difference. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-515076) 36. ![](https://secure.gravatar.com/avatar/4f77c296ee1554d4df646dc6bdc47ad4e52604f977e2899d6f2fe6c6fd5ffc1c?s=32&d=identicon&r=g) ABHIJIT says: [December 30, 2023 at 12:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-514189) MY QUESTION IS WHEN CALCULATING ANNUAL VOLATILATY, WE NEEED TO MULTIPLY SQUARE ROOT OF TIME WITH DAILY VOLATILATY. HERE THE TIME VALUE HAS BEEN CONSIDERED AS 252. FROM WHERE THIS TIME VALUE 252 CAME? PLEASE CLARIFY [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-514189) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 30, 2023 at 6:08 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-514203) Becuase volatility and time are proportional by the factor of time. Time in case of trading is 252 days after adjusting for weekends. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-514203) 37. ![](https://secure.gravatar.com/avatar/1554777584db977d021773d6671c4ed0a5849bc1117c73fcbf90fb95669f0b8f?s=32&d=identicon&r=g) Anush S says: [December 8, 2023 at 5:45 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-512973) Hi Sir, Can you explain what is the format of time we need to include in the formula ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-512973) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 9, 2023 at 12:51 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-513020) Volatility = Sqrt of time. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-513020) 38. ![](https://secure.gravatar.com/avatar/54a4dc538a8cb16714f8e317656b003cef4fec8932f874ec2eacb579930f30e0?s=32&d=identicon&r=g) Ahmad says: [October 29, 2023 at 12:58 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-510788) hello sir I tried To apply =STEDEV(C3:C248) this formula in exel but I am getting error it says formula contain Unrecognized text and Exel file is also no downloading I clicked multiple time to download it but nothing happened [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-510788) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 29, 2023 at 8:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-510797) Not sure about the error, you will have to debug this by following the cues on excel itself. About downloading, I\\’d request you try and download from another browser. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-510797) 39. ![](https://secure.gravatar.com/avatar/4ac0efba8b506ae1b4e433e0327d10b6ab53fb544fd774df6378e12cd28afb8f?s=32&d=identicon&r=g) Rishu says: [August 7, 2023 at 1:16 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-495838) How to download historical data now? The Nse site has changed too much. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-495838) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 8, 2023 at 9:28 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-496091) Rishu, only the links have changed, but both exchanges still provide the end-of-day historical data on their sites. Do check once. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-496091) 40. ![](https://secure.gravatar.com/avatar/75a85beb597ad9bf6189c25dbac7f9caecb80ba0c13cb3848f9be1af1d18f8c2?s=32&d=identicon&r=g) Sathish says: [August 4, 2023 at 11:45 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-495054) I saw your video where you said that you can forecast volatility by comparing historical volatility and implied volatility. Currently NIFTY daily historical volatility is 0.72. ATM IV is 8.7 from Sensibull. So should the comparison be between 8.7% and 0.72% ? I\\’m not sure whether this comparison is right, since ATM IV is always significantly high compared to Daily historical average or is the implied volatility figure I assumed wrong? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-495054) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 5, 2023 at 7:23 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-495124) That wont be right Sathish. The comparison works as a quick and dirty method. In this case, you are better off considering the ATM IV. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-495124) 41. ![](https://secure.gravatar.com/avatar/1bcebb72daee0235704fe0855b6e7316569cff48dfe6fefabd0abff22519f40d?s=32&d=identicon&r=g) pavan says: [June 23, 2023 at 9:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-469910) As volatility is nothing but standard deviation,so to get range we should subtract and add from mean of daily returns .but we r not doing here y so?please answer me [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-469910) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 23, 2023 at 10:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-469932) We are, do check the subsequent chapters. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-469932) 42. ![](https://secure.gravatar.com/avatar/70bd9996a723e3a0d29e6c97a44527e6de9f25d59f44fd101912d39e0bacf983?s=32&d=identicon&r=g) ABHAY SHAH says: [June 3, 2023 at 8:22 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-466947) The above calculation was very productive. I have one query. in the calculation of Annual Volatility, time is taken as 252 , it should have been 242. Correct me if I am wrong; I have taken 242 as time because these many are the total number of days. Totally baffled because of this 252 vs 242. Thank you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-466947) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 4, 2023 at 9:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-467036) Ah, it should be 252 right? 252 = total number of trading days? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-467036) 43. ![](https://secure.gravatar.com/avatar/c2f51e987aab3e50deaf82bcfe781eb619f0f27c43ab4fb43d6fdf1a8a65bfb0?s=32&d=identicon&r=g) Sandeep says: [May 26, 2023 at 5:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-465762) Dear Karthik sir In case of Weekly expiry series, from which day Theta starts playing out more? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-465762) 44. ![](https://secure.gravatar.com/avatar/dcefc20ac59373e0e7c67b35372e6e3346e6ad437d80e3c8fb5b920a79dc6531?s=32&d=identicon&r=g) Varun says: [May 22, 2023 at 8:32 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-464538) Hello Karthik, Nice mathematical approach, able to follow it very well. However, I did not understand what is the meaning of “Return” when you are defining daily returns. Secondly, how is Daily Average calculated ?? Third, how is Daily Return different from Daily Average to Daily Range?? Can you add or explain this as well. Thanks Varun [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-464538) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 22, 2023 at 10:48 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-464635) Daily return is the % change in stock prices, Varun. I\\’ve shared the example of calculating the daily return in the chapter itself. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-464635) 45. ![](https://secure.gravatar.com/avatar/c2f51e987aab3e50deaf82bcfe781eb619f0f27c43ab4fb43d6fdf1a8a65bfb0?s=32&d=identicon&r=g) Sandeep says: [May 21, 2023 at 8:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-463879) Dear Karthik sir How can we use the concept of volatility smile while trading? Kindly explain with an example. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-463879) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 21, 2023 at 12:04 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-464007) Yes, I\\’ve explained Volatility smile in the subsequent chapters. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-464007) 46. ![](https://secure.gravatar.com/avatar/d2178ac5c8edb2406400baedc047c585bc182dcdd7ffe4142bde8eb018803940?s=32&d=identicon&r=g) Anirban Basak says: [May 19, 2023 at 1:11 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462899) Sir, (i)To calculate the daily/annual volatility, you have suggested to calculate in with a look back period of 1 year. Sametime, you have suggested to get the data of daily spot close prices of instrument (stock EQ/index) from NSE website. Now, we have an option in zerodha terminal called \\”Table view\\” where similarly we are given with a populated excel sheet of instrument (stock EQ/index). Can we use this data from zerodha in \\”Table view\\” to calculate the annual/daily volatility of stock/index? (ii)Alternatively, can you please share the link of NSE website from where we can also get the historical data of index spot prices as well as any stock EQ historical data? (The link you have shared in material no loner exists) (iii)Also, after calculating the annual/daily volatility of a particular stock EQ/ index, request you to kindly share the link from where I can crosscheck my daily/annual volatility findings. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462899) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 20, 2023 at 1:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-463319) 1\) Yes, idea is to get the data from a good source 2) Goto NSE India \> Market data \> Script or Index of your choice. For example, this one – https://www.nseindia.com/get-quotes/equity?symbol=ADANIPORTS 3) This, I\\’m not sure from where you can. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-463319) 47. ![](https://secure.gravatar.com/avatar/c2f51e987aab3e50deaf82bcfe781eb619f0f27c43ab4fb43d6fdf1a8a65bfb0?s=32&d=identicon&r=g) Sandeep says: [May 18, 2023 at 11:15 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462673) Dear Karthik sir, Does a gap up/gap down increase volatility of that particular stock/index? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462673) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 18, 2023 at 2:16 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462722) Yeah, it does add to volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462722) 48. ![](https://secure.gravatar.com/avatar/90d6847fc8251f9a65cf826b12cea950be756ebb4494f3bfe3e5d2f1e0e926ea?s=32&d=identicon&r=g) Chander says: [May 17, 2023 at 9:51 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462590) Sir, Will you pl tell how to get the volatility data for a stock from the NSE web site referred here? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462590) 49. ![](https://secure.gravatar.com/avatar/6ec4cf55cea6464b22cbcd19460a4368af03fb7023daa1b77f7b902f9ea59304?s=32&d=identicon&r=g) Sandeep says: [May 15, 2023 at 1:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462119) Dear Karthik sir, Do candlestick patterns, indicators work in VIX chart too so that we can predict the VIX? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462119) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 16, 2023 at 7:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462271) Ah no, I\\’d suggest you dont use CS patterns on ViX 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-462271) 50. ![](https://secure.gravatar.com/avatar/538507bf338a59d659b18c464faecd07fbf52829f5e2ac1553542e253a465143?s=32&d=identicon&r=g) DeepaK says: [May 4, 2023 at 12:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-460971) Hi Kartik, While calculating annual volatility by the square root of time from were did you get the time value = 252 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-460971) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 5, 2023 at 9:59 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-460998) 252 is the number of trading days in a year, Deepak. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-460998) 51. ![](https://secure.gravatar.com/avatar/731bb31963296a06a3c0dca16b6fdad92351c95ce0820ef82525f8b8838bf3f7?s=32&d=identicon&r=g) Dr Nikhil Choudhary says: [April 30, 2023 at 7:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-460589) how did you come up with 252 as time … may look silly . no of entries in excel are 245 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-460589) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 1, 2023 at 9:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-460611) 252 is the number of trading days in a year, Nikhil. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-460611) 52. ![](https://secure.gravatar.com/avatar/33d815e2f25d5c8a875c6da6a1c5606288529893431f48cd53a2f7ef3112ef9a?s=32&d=identicon&r=g) Badri says: [April 24, 2023 at 7:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-459514) Hi, As you said to download the file to calculate the daily return from NSE, i think NSE the website got makeover and currently it is redirecting to error page. However, i tried to figure out the url, not sure that is correct or not, pasting it below https://www.nseindia.com/get-quotes/derivatives?symbol=NIFTY\&identifier=OPTIDXNIFTY27-04-2023CE17700.00 Question 1: Can you please confirm whether that is the url Question 2: to calculate the Mean and SD, do we need to have 1 year data or 3 months past data is sufficient enough. Because, i see that NSE is allowing to retrieve past 3months data only, if not we are getting duplicate records. Can you please through some light on this [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-459514) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 25, 2023 at 11:08 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-459675) 1\) You\\’d want the historical data of stocks I guess. Look for a stock symbol, in the stock page, look for historical data (its there in one of the tabs) 2) Both are ok and is dependent on how you intend to trade in the market [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-459675) 53. ![](https://secure.gravatar.com/avatar/75a85beb597ad9bf6189c25dbac7f9caecb80ba0c13cb3848f9be1af1d18f8c2?s=32&d=identicon&r=g) Sathish says: [March 17, 2023 at 6:22 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-453175) NIFTY daily volatility comes to around -0.01% according to my calculation. This is taken from 1 year data. Is there anywhere I can cross check this information, as NSE only gives this information for deliverable securities? Or if you can, please let me know whether this is right. Thank You. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-453175) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 18, 2023 at 9:39 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-453303) NSE or maybe Sensibull you can check to validate the data? Btw, most places they calculate the volatility keeping margins in perspective. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-453303) 54. ![](https://secure.gravatar.com/avatar/7dcf2313f1a4656af377b41b752508141d7ef5f26a66c07f94ac7b9f5e64dfa0?s=32&d=identicon&r=g) Ankit says: [March 17, 2023 at 4:55 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-453156) hi karthik, can you tell me when converting the daily volatility to annual, why are we multiplying or diving the returns with the square root of (365)?? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-453156) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 18, 2023 at 9:36 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-453299) You need to multiply or divide by time to scale up/down the volatility. There is a mathematical derivation for this, you can look it up online if you interested in the math part. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-453299) 55. ![](https://secure.gravatar.com/avatar/8e89182299b9c8e2fbd03f2cab925cd1aca7a75b432c49789a7971e74b8e3c98?s=32&d=identicon&r=g) Ramandeep says: [March 10, 2023 at 10:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-452336) To get the daily volatility, do 1 year of historic data will always require? What if we use 6 months of data? Will it conclude the daily volatility range? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-452336) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 11, 2023 at 12:43 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-452406) You can use 6 months also, you will get the daily vol of 6 month. I generally prefer 1-year data. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-452406) 56. ![](https://secure.gravatar.com/avatar/9061195db9b7688508ec357a8736d0b43a4649ecdbf10cc32c8292559bbe1c47?s=32&d=identicon&r=g) karan says: [March 5, 2023 at 12:51 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-452023) how can we look for volatility on NSE official website now to double check and for nifty from where to get the historical data [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-452023) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 6, 2023 at 8:22 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-452051) You can check the option chain on NSE. I\\’d even suggest you check out Sensibull for this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-452051) 57. ![](https://secure.gravatar.com/avatar/e5319ab46f008f847dd1d00ff6e5caf5cee7f2d12f05821b8f877d0f8bb4bd5d?s=32&d=identicon&r=g) Rohan Poojary says: [March 3, 2023 at 3:07 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-451869) Sr. the Average/Mean that we have to consider is of DAILY RETURN right ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-451869) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 4, 2023 at 9:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-451983) Yes, that right Rohan. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-451983) 58. ![](https://secure.gravatar.com/avatar/a5b161bf233155a29e9bb767ccd59e6d8368e7aa4f031caad98993de0fb06b7e?s=32&d=identicon&r=g) logi says: [February 28, 2023 at 9:48 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-451556) Excel link at the end of section is not working [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-451556) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 1, 2023 at 11:00 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-451581) Please try using another browser. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-451581) 59. ![](https://secure.gravatar.com/avatar/5342e7c06d262bad6bceba4508f95ef4aafbf3d28ea7d2a645f22b3ab882dced?s=32&d=identicon&r=g) Aditya says: [January 31, 2023 at 8:03 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-447137) while converting daily volatility to annual volatility you have used factor of square root of time where time is 252 My question is what exactly is 252 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-447137) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 1, 2023 at 11:22 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-447222) 252 = the number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-447222) 60. ![](https://secure.gravatar.com/avatar/f9c93e16c1760b401260b9f474298c6fa1689aae652bf6455b8dfbbd85ef111c?s=32&d=identicon&r=g) Saurabh Singh says: [January 12, 2023 at 11:24 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-443406) No issue, I downloaded from another site [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-443406) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 13, 2023 at 9:39 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-443599) Cool. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-443599) 61. ![](https://secure.gravatar.com/avatar/f9c93e16c1760b401260b9f474298c6fa1689aae652bf6455b8dfbbd85ef111c?s=32&d=identicon&r=g) Saurabh Singh says: [January 11, 2023 at 4:24 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-443268) Hello sir, that link to open excel sheet is not working… [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-443268) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 12, 2023 at 9:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-443391) Can you try downloading this from another browser? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-443391) 62. ![](https://secure.gravatar.com/avatar/53947992309be8091347f8c403bc992410dea23926968e3e877823e3fee8aa93?s=32&d=identicon&r=g) Parikshit Singh says: [January 3, 2023 at 12:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-441901) What is this time constant you\\’ve used here \\”252\\”. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-441901) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 4, 2023 at 9:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-442062) Its the number of days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-442062) 63. ![](https://secure.gravatar.com/avatar/21c2faa7fb85c44d22cec9f0e75bbc567aada0e0502c6617edf3a0fdd6eb28c5?s=32&d=identicon&r=g) Jignesh Dalal says: [December 30, 2022 at 10:28 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-441162) Possible typo below: \\”I have used the Excel function ‘LN’ to calculate the long returns.\\” Should be \\”.. log returns.\\” [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-441162) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 31, 2022 at 11:11 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-441362) That\\’s what I meant. Will fix the typo 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-441362) 64. ![](https://secure.gravatar.com/avatar/c0058fdac67f28c6b7b4e75d99f1626992b6c1957851317ca920b917ba38107c?s=32&d=identicon&r=g) Sudheer Kumar says: [December 26, 2022 at 9:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-440601) Hi Karthik, In your explanation your above you have shown the closing price of ten days for calculating the Volatility. And in the excel sheet given in your article has the data for almost an year (245 days). Could you please help me understand what is the right number of days to consider for calculating the volatility? Regards, Sudheer [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-440601) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 27, 2022 at 7:16 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-440621) Sudheer, so these are conversions based on yearly and daily calculations. So if you have calculated yearly vol, then you can scale it down to 10 days or whichever time frame you\\’d need. Likewise, with daily vol…you can scale it up to 3 months, 6 months or whatever time scale you\\’d want. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-440621) 65. ![](https://secure.gravatar.com/avatar/d282feecf90d0e9c1ae95c84daefa46c141773ba5d79f2dc96c5c23184474c21?s=32&d=identicon&r=g) Amal says: [December 20, 2022 at 5:45 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-439654) Hi karthink, if we are trading a credit speared on on a particular stock and that stock daily volatility is \[ 2.5 \]. and Nifty daily volatility is \[1.08\], so if i have created same credit speared on nifty with same MAX RISK and i have received 1000 rupees as primum so should i compare this with a stock which has 2.5 daily volatility and if that stock is fetching me 1000\*2.5\[2500\] as primum then only i should consider trading on that particular stock ? or should i consider stock beta ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-439654) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 21, 2022 at 9:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-439687) The risk profiles of both stock and Nifty are completely different, Amal. So are the returns. Comparing Nifty, a basket of 50 stocks may not make sense with a single stock. I\\’d suggest you go with your risk appetite and how much you are willing to risk on the trade 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-439687) 66. ![](https://secure.gravatar.com/avatar/91bd9cef793d860834937320271efa832d3c8efc925d5d9caf31bdc778b3beb2?s=32&d=identicon&r=g) Krishna Shah says: [December 11, 2022 at 1:05 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-438759) hii kartik sir, the excel file which is there in Volatility Basics is not downloadable. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-438759) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 11, 2022 at 9:56 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-438786) Let me check, meanwhile can you try from another browser? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-438786) 67. ![](https://secure.gravatar.com/avatar/4eadb04ed92d4dc717bbaa8172b766a0b86a5bcfaf356d0c6a7b0c7cdf4a9b04?s=32&d=identicon&r=g) Sunil says: [December 10, 2022 at 7:55 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-438750) Hi, i just want to know that you mentioned as you calculated average of 0.04% and mentioned from previous chapters we can see the calculations, but previous chapter you dicussed about the daily volatility and annual volatility to find from wipro stock but never mentioned the average %. so please explain if i missed somewhere [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-438750) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 11, 2022 at 9:49 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-438782) I\\’m guessing its in an earlier chapter, and I must have generally said \\’ previous\\’ chapter. Can you kindly check once? Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-438782) 68. ![](https://secure.gravatar.com/avatar/9fe56ec7fe36505ea3c92ac7e0af27e299e2261562486dd8006b530b9fc9f1f5?s=32&d=identicon&r=g) Aditya says: [November 19, 2022 at 11:52 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-435519) Why you have taken 252 days as time period for annualized return ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-435519) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 19, 2022 at 1:08 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-435534) Number of trading days in a year = 252 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-435534) 69. ![](https://secure.gravatar.com/avatar/905b70fe0856e0531612a9012b3b527d5824e0ee8aefa99a73e1142f79fc03b8?s=32&d=identicon&r=g) Rahul says: [November 17, 2022 at 3:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-435189) Hi Karthik,bI just have one doubt in whole calculation part the daily volatility in case of the nse screenshot shows 1.34 while when we do according to the formula that is daily volatility=annual volatility/√time period (that is 252) why do we get the daily volatility as 1.60? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-435189) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 18, 2022 at 10:02 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-435343) There is a slight difference in calculation, and this is because NSE gives more important to recent trading days to calculate margins. In our case, we give equal importance to all data points. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-435343) 70. ![](https://secure.gravatar.com/avatar/a7edf7dfe64f0a4693a0e7c9b8827735aa89cde496a8c895887d2ee5b3c14b32?s=32&d=identicon&r=g) kd patel says: [November 5, 2022 at 12:06 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432692) If we use in excel =STDEV(-1.67,1.33,-0.67,2.33,-2.67,1.33) answer is 1.96 around while in previous chapter it was 1.79 in billy and mike’s data [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432692) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 6, 2022 at 8:53 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432897) Are the data sets the same? Can you check if its STDEV and not any variations to the SD function? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432897) 71. ![](https://secure.gravatar.com/avatar/a7edf7dfe64f0a4693a0e7c9b8827735aa89cde496a8c895887d2ee5b3c14b32?s=32&d=identicon&r=g) Kd patel says: [November 3, 2022 at 10:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432191) Kartik sir tell me when you check [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432191) 72. ![](https://secure.gravatar.com/avatar/535c9908b53ac235659553b1e18dc1658c24909fca27f1e8586c407a761a2353?s=32&d=identicon&r=g) pankaj prajapati says: [November 2, 2022 at 5:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432068) dear sir how time here is 252 can you help me with this [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432068) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 3, 2022 at 11:19 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432213) 252 = Number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-432213) 73. ![](https://secure.gravatar.com/avatar/a7edf7dfe64f0a4693a0e7c9b8827735aa89cde496a8c895887d2ee5b3c14b32?s=32&d=identicon&r=g) Kd patel says: [November 1, 2022 at 12:28 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-431869) If we use in excel =STDEV(-1.67,1.33,-0.67,2.33,-2.67,1.33) answer is 1.96 around while in previous chapter it was 1.79 in billy and mike\\’s data [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-431869) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 2, 2022 at 9:18 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-431985) Hmm, need to double-check this once. Let me do that today. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-431985) 74. ![](https://secure.gravatar.com/avatar/a7edf7dfe64f0a4693a0e7c9b8827735aa89cde496a8c895887d2ee5b3c14b32?s=32&d=identicon&r=g) kd patel says: [October 31, 2022 at 4:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-431647) hi kartik sir while using STDEV function in excel i got different answer other than using manually calculation first find variance and then its sqrt i took example of last chapter billy and mike \\’s put all 6 value and then use STDEV fun in excel and answer is different pls help me [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-431647) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 1, 2022 at 9:43 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-431838) Most likely, you\\’d missed some step. Its unlikely to get two different numbers. Can you please recheck again? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-431838) 75. ![](https://secure.gravatar.com/avatar/56df0ab03d2379ca1221b3e92968a5d74ba6fb3742b96d0aa796ae98b19336b8?s=32&d=identicon&r=g) Gauri S Sinha says: [October 20, 2022 at 1:23 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-429271) Hi Karthik Thanks a lot for putting together your thoughts on this complex stuff in such a simple way. I have one question on Volatility, when you used daily closing price for one year as in example for July 2014 to July 2015..the volatility calculated is daily volatility for that period? if we take 10 day\\’s closing price and calculate volatility, then is that a daily volatility for that 10-day period? and can it be used to calculate annualized volatility by multiplying SQRT(252)? If we take 5 year closing price and calculate volatility, then is that an annual volatility for that 5-year period? or something else…. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-429271) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 21, 2022 at 9:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-429496) Yes, if you calculate the daily volatility, then you will have to scale it accordingly by multiplying it with Sqrt of time. If you calculate for 10 days, then divide by sqrt of 10 to get the 1 day vol and then multiply with Sqrt of 252 for yearly volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-429496) 76. ![](https://secure.gravatar.com/avatar/18baa6a38c7db124c3b11c1e2c3436da96c8c5fa48fff31cf84e94bc283f0b74?s=32&d=identicon&r=g) jayasree says: [October 13, 2022 at 8:04 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-427626) Hi! Thanks for the crystal clear explanation. But the historical data which I tried to download shows different closing prices for WIPRO(22-jul-2014 to 21-july-2015). More over when I tried to download the excel it is not getting downloaded. Please provide the proper link so that I can calculate and understand the concept better. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-427626) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 14, 2022 at 10:18 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-427745) Maybe it is not cleaned up. Maybe try downloading from BSE website? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-427745) 77. ![](https://secure.gravatar.com/avatar/636c37a11589964d85f9d958633a5f9b621e03871aa3572f19b7e82e50a3d8aa?s=32&d=identicon&r=g) Vishal Prasad says: [October 10, 2022 at 12:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-426780) Hey, please help me with this. Suppose I calculated the standard deviation(1SD) of nifty for the last six months and its 0.0109. Hence the daily volatility is 1.09%. Now volatility for the next three months(63 trading sessions) comes out to be 8.65%(1.09\*√63). Now how do I calculate the range for the next three months. So the upper range would be avg+ 8.65% or spot +8.65%. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-426780) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 11, 2022 at 10:08 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-427022) Spot plus 8.65%. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-427022) 78. ![](https://secure.gravatar.com/avatar/876599f0e2bcbbe52b9c5b69b1708643cc2f39de91e0fdf32761dfe5744e0ff0?s=32&d=identicon&r=g) Megha Runthala says: [September 19, 2022 at 5:13 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-422081) Sir, why did we use the LOG (LN) FUNCTION to calculate Daily return? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-422081) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 20, 2022 at 11:09 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-422123) I have explained this in the chapter and comments, request you to look at it once. Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-422123) 79. ![](https://secure.gravatar.com/avatar/c91758dbcbbc116577d6f2c2d1a8d090779e0155106c0ff5824ce76980bf3f78?s=32&d=identicon&r=g) Pradeep says: [August 27, 2022 at 9:39 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-416599) Hi Karthik, I think the reason why we are seeing a difference between what shown on NSE website and your calculation is because I think NSE is taking SQRT of 365 instead of 252. When I take 365, it comes very very close to NSE number. Not sure if this is so, but just wanted to point it out. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-416599) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 28, 2022 at 9:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-416747) Yes, this could be one of the reasons. This is called the time count convention. We are using actual by actual, so in that case, we consider 24 trading days (ignore weekends) and 252 total trading days. Or you can use 30 monthly days and 365 days in a year, which NSE seems to be using. Either way you need to be consistent with what you use, cant use 24 and 365. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-416747) 80. ![](https://secure.gravatar.com/avatar/b3df1bbbcf18d93ef37bf767bcc12ce562a1c57cbaa6f7d6401f33a14e1472f1?s=32&d=identicon&r=g) CM Gupta says: [August 27, 2022 at 8:31 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-416588) NSE द्वारा ★ निफ्टी फ्यूचर में भी डेली और ऐनुअलाइज्ड वोलाटिलिटी दी जाती है और ★ India VIX भी दिया जाता है और दोनों का प्रयोग डेली, वीकली, ऐनुअल रेंज संभावित रेंज निकलने में होता है तो ★ india VIX और निफ्टी फ्यूचर की ऐनुअलाइज्ड वोलाटिलिटी में अंतर क्या होता है, ★ दोनों की वैल्यू में अंतर होने से एक ही चीज की रेंज अलग अलग मिलती है ऐसा क्यों? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-416588) 81. ![](https://secure.gravatar.com/avatar/80dc1f73cb7702a093d9d0ce4c5d63a5a656bc2bddf8f8abb07da019c746f300?s=32&d=identicon&r=g) Mahesh Venkat says: [August 21, 2022 at 8:08 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415353) Dear Karthik, I am unable to figure out why LN is used It is mentioned Long Returns which i am unable to figure out. Can you please explain if time permits? Also can we just work this out without Natural Log . [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415353) 82. ![](https://secure.gravatar.com/avatar/80dc1f73cb7702a093d9d0ce4c5d63a5a656bc2bddf8f8abb07da019c746f300?s=32&d=identicon&r=g) Mahesh Venkat says: [August 21, 2022 at 6:48 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415336) Dear Karthik, Can you please clarify on that LN function used. It has been mentioned a s Long returns which is confusing for me. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415336) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 22, 2022 at 10:16 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415505) Please see the earlier comments. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415505) 83. ![](https://secure.gravatar.com/avatar/80dc1f73cb7702a093d9d0ce4c5d63a5a656bc2bddf8f8abb07da019c746f300?s=32&d=identicon&r=g) Mahesh Venkat says: [August 21, 2022 at 3:43 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415295) Dear Karthik, I am unable to figure out why LN is used It is mentioned Long Returns which i am unable to figure out. Can you please explain if time permits? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415295) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 22, 2022 at 10:04 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415499) I\\’m copy pasting an earlier reply for a similar query – Here is the exact calculation for determining the price range 1\. calculate daily log returns 2. calculate mean & SD of log returns series 3. 68% confidence interval is current price \* exp (mean\*time +/- SD\* sqrt(time)) 4. 95% confidence interval is current price \* exp (mean\*time +/- 2\*SD\*sqrt(time)) The process involves computationally intensive tasks such as calculating log returns, calculating exponential of a value etc. Under the following circumstances, the above calculations can be approximated with more simpler calculations 1\. Short periods of time: When time is small, (mean \* time) is so small that it hardly makes any difference to the final value i.e. mean \* time \<\< SD \* sqrt(time) 2. When daily percentage movement 20%, recalculate with accurate method, otherwise you can process with approximation. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-415499) 84. ![](https://secure.gravatar.com/avatar/ebce426ee6b83414b9fecd98e5683ada6c3ed9882bbf5f9a52fc0876dafca3d1?s=32&d=identicon&r=g) malhar patel says: [August 19, 2022 at 1:55 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-414641) unable to download excel sheet. 🙁 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-414641) 85. ![](https://secure.gravatar.com/avatar/32be8b067b204558a2f71f706c6bb063b5363273f1df3bff6a321f482bed52e8?s=32&d=identicon&r=g) Franklin Loyola says: [July 22, 2022 at 4:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404829) Sir, In question asked on July 20,2022, I didn\\’t get the clarity,sir.As all the closing prices of an year(22nd July 2014 to 21st July 2015) has already been taken up for daily return calculation,why again seperately we need to calculate annual volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404829) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 23, 2022 at 9:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-405180) Daily return is on a per-day basis, you need to find the yearly from this right? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-405180) 86. ![](https://secure.gravatar.com/avatar/32be8b067b204558a2f71f706c6bb063b5363273f1df3bff6a321f482bed52e8?s=32&d=identicon&r=g) Franklin Loyola says: [July 21, 2022 at 5:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404111) Sir, In the Image given just above step 3,the return of 22nd and 23rd July is not shown and also in the very next image only 23rd July daily return is shown,why is it so,sir? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404111) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 22, 2022 at 11:29 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404653) For return calculation, you need two reference prices. If you want to start from the 22nd, then there is no data on for 21st, right? Hence you cannot proceed. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404653) 87. ![](https://secure.gravatar.com/avatar/32be8b067b204558a2f71f706c6bb063b5363273f1df3bff6a321f482bed52e8?s=32&d=identicon&r=g) Franklin Loyola says: [July 21, 2022 at 4:12 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404076) Sir, Instead of using the formula for calculating return ,why this formula Return = (Ending Price / Beginning Price) – 1, is used, can\\’t we calculate return just by subtracting ending price-beginning price. Sir,Please tell where I went wrong [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404076) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 22, 2022 at 11:26 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404648) That will give you the absolute change in price, you divide the absolute change by y\\’day\\’s close you get the return. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-404648) 88. ![](https://secure.gravatar.com/avatar/32be8b067b204558a2f71f706c6bb063b5363273f1df3bff6a321f482bed52e8?s=32&d=identicon&r=g) Franklin Loyola says: [July 20, 2022 at 11:56 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-403311) Sir, dates that have selected in the calculation to calculate the daily return is from 22nd July 2014 to 21st July 2015, that\\’s a total year.As it has involved daily closing prices of an year,can\\’t it be considered as annual volitility.why is it required to multiply the answer with sqrt.255. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-403311) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 21, 2022 at 10:31 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-403886) Because the number of trading days in a year is 252, not 365. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-403886) 89. ![](https://secure.gravatar.com/avatar/32be8b067b204558a2f71f706c6bb063b5363273f1df3bff6a321f482bed52e8?s=32&d=identicon&r=g) Franklin Loyola says: [July 19, 2022 at 9:15 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-402953) Thanks for clearing doubt,sir [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-402953) 90. ![](https://secure.gravatar.com/avatar/32be8b067b204558a2f71f706c6bb063b5363273f1df3bff6a321f482bed52e8?s=32&d=identicon&r=g) Franklin Loyola says: [July 18, 2022 at 8:58 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-402415) Sir, First of all thanks for the work you put in to make all these study materials and also in answering the queries. Sir,few doubts 1.Daily return formula = LN (Today’s Value / Yesterday’s Value) expressed as a percentage. As it is used to calculate the daily return,why yesterday\\’s value is used here. Also,in step 2 of Calculating Daily Returns Return = (Ending Price / Beginning Price) – 1 Here in formula,it is beginning price,is the open price of the day being meant here as beginning price,I ask this because in pic of the excel sheet just below this formula,it\\’s shown LN(B3/B2),B2 and B3 are closing prices, aren\\’t they? 2.in the step 3,\\”After the open bracket, select all the daily return data points and close the bracket\\”. What all are the daily return data points mentioned here,which all values are said to be involved in daily return data points. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-402415) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 19, 2022 at 11:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-402644) 1\) Return is calculated based on a reference value. For daily return the reference value is y\\’day\\’s closing price 2) Ending price = today\\’s close and beginning price\\’s is y\\’day closing price 3) Just y\\’day and today\\’s close. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-402644) 91. ![](https://secure.gravatar.com/avatar/e149a5573728a2140d2af13a30ac298e0693ec7b372b6005f29bbf44237fbdee?s=32&d=identicon&r=g) Harsha says: [July 11, 2022 at 7:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-399776) Hi sir, How can we find intraday volatility? Is there any method to find intraday volatility? Is ARCH a good method to find intraday volatility? Thank you sir. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-399776) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 12, 2022 at 11:59 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-400070) Yeah, the ARCH and GARCH models are good but quite computationally intense. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-400070) 92. ![](https://secure.gravatar.com/avatar/c2f51e987aab3e50deaf82bcfe781eb619f0f27c43ab4fb43d6fdf1a8a65bfb0?s=32&d=identicon&r=g) Sandeep says: [July 5, 2022 at 6:43 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-396356) Dear Karthik sir, The chapter says the formula to calculate Log returns in Excel is LN(Today’s price / Yesterday’s price). But what is the formula to calculate the % returns ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-396356) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 5, 2022 at 12:27 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-396474) Normal return = (Today price/Y\\’day price )-1 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-396474) 93. ![](https://secure.gravatar.com/avatar/c2f51e987aab3e50deaf82bcfe781eb619f0f27c43ab4fb43d6fdf1a8a65bfb0?s=32&d=identicon&r=g) Sandeep says: [July 2, 2022 at 12:51 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-394765) Dear Karthik sir, The chapter says the formula to calculate Log returns in Excel is LN(Today\\’s price / Yesterday\\’s price). Similarly what is the formula to calculate the % returns ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-394765) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 3, 2022 at 7:04 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-395185) Yup, that is correct. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-395185) 94. ![](https://secure.gravatar.com/avatar/d40a9946cfd50b5897ce9b032bb63cec62b14cac3e5e9d5dd960abb662601211?s=32&d=identicon&r=g) Rajiv K says: [June 5, 2022 at 7:48 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-378958) Hi ..thanks for such detailed chapters on Option..I dont think such resource exist anywhere else in web…for Free of Cost.. Now for my query ..Can you pls share me exact link where I can Snapshot for Future option ( like you shared for Wipro in NSE website)..Tried searching could not found.. Thanks in advance…. Rajiv [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-378958) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 6, 2022 at 11:09 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-379442) Rajiv, NSE has changed the site. Goto the home page and click on derivatives section. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-379442) 95. ![](https://secure.gravatar.com/avatar/e960444d136b220c34c01d48a4c2dcf1046f53f5ebd816fc572de682b4fb6fbd?s=32&d=identicon&r=g) Hardik Sonagra says: [June 5, 2022 at 5:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-378956) Now a days, I am going through one of varsity module 5. Each topic was very well explained in each chapter by you. currently I am stuck at calculation of annual volatility. I could not find \\”Annualised Volatility\\” value calculated by NSE at the link provided in chapter. I can see \\”security wise delivery position\\” and \\”Value at Risk in %\\” over there. I had calculated annualized volatility of a stock according to method taught by you in this module. How can I cross check whether it is correct or not? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-378956) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 6, 2022 at 11:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-379435) Hardik, I think NSE has changed the location of file. Maybe check the bhav copy file once? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-379435) 96. ![](https://secure.gravatar.com/avatar/02000b5971ba518de536f7c99f17ff84aadbba04d156b06e24239faacc609276?s=32&d=identicon&r=g) Pallavi says: [June 5, 2022 at 9:34 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-378914) If there is a person like you to teach and support ,I WILL become a very very successful trader and then I will declare that I have two gurus. 1)Mr.Eckhart tolle, my spiritual guru and 2) Mr. Karthik Rangappa my trading guru. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-378914) 97. ![](https://secure.gravatar.com/avatar/f88049c166b89c393dc98d97c9f1506723c0e8a23867d4201f57c69d15b6276c?s=32&d=identicon&r=g) Amit says: [June 1, 2022 at 11:05 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-376628) For calculating annual volatility from daily volatility why time is taken as 252 , while it should be 1 year ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-376628) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 2, 2022 at 9:12 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-377175) 252 is the number of trading days in the year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-377175) 98. ![](https://secure.gravatar.com/avatar/200bf2a32e59122ddf28f3d751d786b030849976d8524b5abcd30d24adf3649c?s=32&d=identicon&r=g) Bhaskar says: [May 24, 2022 at 10:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-372873) Hi Kulsum, Thank you for your reply, sorry for replying late. Yes, the link is working, seems there was an issue with my Opera browser. tried a different browser and its working. Thank you for looking into this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-372873) 99. ![](https://secure.gravatar.com/avatar/200bf2a32e59122ddf28f3d751d786b030849976d8524b5abcd30d24adf3649c?s=32&d=identicon&r=g) Bhaskar says: [May 20, 2022 at 6:53 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-370589) Sir , I have an account with Zerodha , my client code is mentioned above, can you please check whether the download excel link is working or not. Not able to download the excel sheet. Thank you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-370589) - ![](https://secure.gravatar.com/avatar/e87260d0a666f635b4c342864103b90d9439c3bba8a1d1cecc7c14f0dc4437aa?s=32&d=identicon&r=g) Kulsum Khan says: [May 20, 2022 at 12:15 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-370656) Hi Bhaskar, we have added the link again, could you please check now? There seems to be no issue with downloading the excel. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-370656) 100. ![](https://secure.gravatar.com/avatar/5d6d7a661cb86cf337f43aa4b451556e24068643c7ff6aa51b0c23b1cf793707?s=32&d=identicon&r=g) yakshdeep says: [May 18, 2022 at 11:38 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-369566) sir how to calculate volatility for 1 hour or smaller time frames??? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-369566) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 19, 2022 at 10:04 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-370062) That will be tough, the closest thing is to consider 1-day volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-370062) 101. ![](https://secure.gravatar.com/avatar/6c97cd660ca42e133ba54ae4ec0928606b5d88e70f24b5d563decac2be4ef1e3?s=32&d=identicon&r=g) Nipul says: [May 16, 2022 at 12:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-368237) Hello sir, how do we calculate daily average return of index or stocks? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-368237) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 16, 2022 at 9:55 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-368423) I\\’ve explained that in the chapter itself, Nipul. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-368423) 102. ![](https://secure.gravatar.com/avatar/495322ecbae2e41f002fe3a05c64fa70dbcbe997b7ff3b2a28296ee835ce84af?s=32&d=identicon&r=g) Avnish says: [May 8, 2022 at 9:55 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-365950) Hi Karthik, Very good efforts to explain concepts in a simple form that that can be understood by most people. Reference to above calculations, when we calculate daily volatility by using Annual Volatility, the number 1.60% does not match the daily volatility number (1.34%) of NSE. Assume NSE is using different data to calculate the annual volatility versus daily volatility, like Annual Volatility could be calculated by calculating the standard deviation % of annual data of the stock as well, using closing prices for each of the past years. What are your thoughts on the same? Also, for intra day volatility can\\’t we use the same logic as we used for daily volatility calculations but instead applying it on the respective frequency\\’s data e.g. when calculating minute level volatility, one can use minute data points. However, the question is how much data is enough to calculate volatility? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-365950) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 9, 2022 at 9:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-366240) Avinash, I think NSE uses a slightly different approach, wherein they calculate the volatility keeping margins in perspective. So they kind of give more importance to the recent data points compared to the technique taught here, wherein there is equal weightages to all the data points. Hence the difference. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-366240) 103. ![](https://secure.gravatar.com/avatar/16fafddfe52dea01442df4c1fe5328324ea475690f960f3afd601b668f5abfab?s=32&d=identicon&r=g) pavan says: [April 30, 2022 at 12:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-361320) Sir, I have tried to download your excel sheet but its not downloading to refer. I have under stood how to calculate standard deviation as u mentioned, but mean u have not mentioned but its imp in next chpter for normal distribution. So daily avg/ mean =sum(daily return) / no of rows for above sheet wipro= Sum/243=0.012 I got this value. is this correct value? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-361320) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 1, 2022 at 5:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-362072) No of trading days = 252 days, not 243. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-362072) 104. ![](https://secure.gravatar.com/avatar/de57f37c6e5ec775de1482e97b06b14561dee16f9d353c3f38875508b6507674?s=32&d=identicon&r=g) Paras says: [April 21, 2022 at 9:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-357477) Another related query as while explaining you have always taken a year\\’s data and calculated log returns and then converted it into the time frame as an when required,ex-15dys,30 days.However can we not directly find the log returns of only 30 dys and calculate the Standard Deviation?? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-357477) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 22, 2022 at 10:32 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-357808) If you take monthly time series (12 data points per year), you will directly get 30 days\\’ data. The same goes for taking weekly data. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-357808) 105. ![](https://secure.gravatar.com/avatar/de57f37c6e5ec775de1482e97b06b14561dee16f9d353c3f38875508b6507674?s=32&d=identicon&r=g) Paras says: [April 19, 2022 at 8:54 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-356052) Hi there\! A small query regarding time,do we always have to consider 252 days as number of trading days or it may change? Thanks in advance!\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-356052) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 19, 2022 at 10:26 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-356099) 252 is the average number of trading days in a year. Plus or minus 3-4 days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-356099) 106. ![](https://secure.gravatar.com/avatar/2c9ce52cb22f5faf4d2ce2ecf34dd830f1b5d3bdee2381ee180eeab61b12c045?s=32&d=identicon&r=g) GOPAL LAHOTI says: [April 11, 2022 at 10:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-352270) Sir, Suppose I calculated daily and annual volatility from period 11-04-2021 to 10-04-2022 then when my daily and annual volatility data expires ? In a nutshell, When I come to know I have to start calculating such volatility for next period ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-352270) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 12, 2022 at 9:37 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-352380) It kind of stays good for at least 1 week, you can recalculate again after a week. Technically, you can calculate the next day also 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-352380) 107. ![](https://secure.gravatar.com/avatar/79a26e0d4a17510026ee1ebbaa0e9c37b7876ae4425fe54c2824cf0c758ea7ec?s=32&d=identicon&r=g) Abhishek Suresh says: [April 11, 2022 at 4:54 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-352126) Can someone please tell me how to get the data for Bank Nifty and Nifty 50 to calculate daily returns, SD. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-352126) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 11, 2022 at 9:20 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-352241) Its what you can find in the chapter right? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-352241) 108. ![](https://secure.gravatar.com/avatar/2e21bcd34cff4e0111d645be77e93f73e9cb7f39ec7991286e887d7068c4025b?s=32&d=identicon&r=g) Shubham says: [April 8, 2022 at 9:35 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-351730) Hi Karthik sir, How you Calculated Annual Volatility I didn\\’t understand SQRT(254) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-351730) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 9, 2022 at 8:26 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-351759) Annual volatility = Daily volatility \* Sqrt (time). Time = Number of trading days which is 252. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-351759) 109. ![](https://secure.gravatar.com/avatar/bd557ece1a3e08ad5b5ac48c10148281a71e8172bf791bdde9defd8b8519ff0f?s=32&d=identicon&r=g) Sandeep says: [April 8, 2022 at 9:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-351729) Dear Karthik sir, Can we download the historical closing values of Nifty and Bank Nifty, i am unable to locate. Please share the link. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-351729) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 9, 2022 at 8:25 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-351758) It should be available on NSE site. Look for it under \\’market data\\’. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-351758) 110. ![](https://secure.gravatar.com/avatar/1f3bdbd77da7358201bb4b3296cfea2a9a25a91e143616b96a02d6c466961e3e?s=32&d=identicon&r=g) Ankith says: [April 3, 2022 at 9:52 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-350156) one doubt regarding the calculation of annual volatility. should we take square root of 365 days for calculating annual volatility or 245 days ( as actually there is only 245 trading days after sundays , saturdays and holiday ) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-350156) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 4, 2022 at 6:55 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-350399) YOu can consider 252 days, which is the actual number of trading days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-350399) 111. ![](https://secure.gravatar.com/avatar/27893028a24c81965ffb043db4351571a3a9d9229a2838536dedef0e8d4dcee4?s=32&d=identicon&r=g) RAJIV ASHAR says: [March 20, 2022 at 3:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-345404) I am new to option world but I am serious in making study. I am not good in mathematics. My question is now a days nseindia publish VAR and extreme loss rate and not volatility. Can you explain what it is how it is useful https://www1.nseindia.com/live\_market/dynaContent/live\_watch/get\_quote/GetQuote.jsp?symbol=SUNPHARMA\&illiquid=0\&smeFlag=0\&itpFlag=0 In previous chapter you explained standard deviation and explained method of calculation. But in this chapter you have calculated by calculating LOG METHOD what is difference [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-345404) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 21, 2022 at 11:11 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-345578) Rajiv, VAR, and extreme loss are for calculating margins. For volatility, you can calculate using the same technique that we discussed in the chapter. Log method is just another technique to calculate the returns. You can stick to the regular method. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-345578) 112. ![](https://secure.gravatar.com/avatar/636633ec41f9b11e03adae19e6d6041888390c7ca6ad48eebb7a896c1b57f659?s=32&d=identicon&r=g) Dhananjay says: [March 2, 2022 at 9:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339667) Sure! Thanks a lot\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339667) 113. ![](https://secure.gravatar.com/avatar/636633ec41f9b11e03adae19e6d6041888390c7ca6ad48eebb7a896c1b57f659?s=32&d=identicon&r=g) Dhananjay says: [March 2, 2022 at 6:48 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339610) I don\\’t know why but link you provided for downloading excel sheet of Wipro is not working. It just redirect but doesn\\’t download anything [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339610) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 2, 2022 at 9:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339651) Can you try another browser, please? Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339651) 114. ![](https://secure.gravatar.com/avatar/636633ec41f9b11e03adae19e6d6041888390c7ca6ad48eebb7a896c1b57f659?s=32&d=identicon&r=g) Dhananjay says: [March 2, 2022 at 6:28 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339601) Here is quick question- We have calculated the volatility for underlying by using its past 1 year data and then we proceed to calculate the range for it for next some days as per our interest. So how much past data I should use when I have to calculate range let say for next one week (Assuming I am thinking about trading weekly contracts). Should I go with same classic past 1 year data or should I give more weightage to recent data. Or should I go for more than past 1 year data? Please clarify [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339601) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 2, 2022 at 9:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339650) You can consider both actually to develop a wider perspective. Start with 1-year data and then maybe 3 months as well. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-339650) 115. ![](https://secure.gravatar.com/avatar/c92b7843a29cc7107b59b0c06196fa33e93e681d819d9c4ae3e81871517bae46?s=32&d=identicon&r=g) Muthu Suriya says: [February 13, 2022 at 6:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-334667) Karthik Sir, in the downloaded excel sheet i am getting 28.04% instead of 23.3% dont no why\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-334667) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 14, 2022 at 9:50 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-334840) Ah, not sure myself Muthu. Need to check. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-334840) 116. ![](https://secure.gravatar.com/avatar/f32584ee8799a5aec566f74a1ee263191a717f8f2ca28b492ce4ec50b4d1a3c2?s=32&d=identicon&r=g) harshit agrawal says: [February 7, 2022 at 1:28 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-332789) from where we get historical data of nifty 50 or bank nifty [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-332789) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 7, 2022 at 11:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-332925) YOu can check NSE site for this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-332925) 117. ![](https://secure.gravatar.com/avatar/1b2ee755837011dbbf50193cf662bacb263b926c0e04b2baaf4af8f31448d3fd?s=32&d=identicon&r=g) Sudhindra Gururaj says: [January 30, 2022 at 7:13 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-330654) Hi. Why are you using log returns and not a simple – current close price / previous day close price? Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-330654) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 31, 2022 at 10:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-330789) Have explained that in the chapter/comments, request you to please check the same. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-330789) 118. ![](https://secure.gravatar.com/avatar/969a34d3facf3e8cd9ec956e9445a757910834516f972dfec8a6581f8d2499a0?s=32&d=identicon&r=g) Ujjwal says: [January 22, 2022 at 12:53 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-328381) Hi kartik, I just want to confirm about the global market situation that impact the nifty prices in India? Kindly explain sir or My link you share. People are earning only on the basis of global market. How much is it true sir Would obliged and thankful for your response sir,✨☺️ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-328381) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 22, 2022 at 11:11 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-328460) Ujjwal, that cant be true. You need to have a view on both global and local markets. Trading on the basis of global cues alone cannot be an edge. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-328460) 119. ![](https://secure.gravatar.com/avatar/fedbf019b0d14545b51385a0312eead3532e03e20d58c89ad2c387da14a9226f?s=32&d=identicon&r=g) Anand Patel says: [January 12, 2022 at 7:52 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-325925) why time is taken as 252 while calculating annual volatility ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-325925) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 12, 2022 at 10:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-325959) 252 is roughly the number of trading days in the calendar. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-325959) 120. ![](https://secure.gravatar.com/avatar/2de1144bb1c2deb6b7905aa21e6b5e4b3cfe8e819220da8693f5068cb679ce3e?s=32&d=identicon&r=g) Kshitij says: [January 10, 2022 at 2:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-325425) Can anyone tell me from where I can double-check my volatility calculations on NSE website? The information provided there now is different from what is there in the screenshot in the article. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-325425) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 10, 2022 at 8:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-325495) Dont think NSE publishes volatility information anymore. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-325495) 121. ![](https://secure.gravatar.com/avatar/02b97ef0203773e9f2e35aa8addce7d0871ee38b691e2373c1c0824b94dc3086?s=32&d=identicon&r=g) Manoj says: [January 4, 2022 at 10:11 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-323905) while calculating annual volitility time is taken as 252. how we got this ? It it the count of rows of daily data for one year we downloaded that is equivalent to 252? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-323905) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 5, 2022 at 6:50 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-323951) Thats right, Manoj. 252 is the number of trading days in a calendar year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-323951) 122. ![](https://secure.gravatar.com/avatar/7775799feb98c4f44ed4b2d91e0df65b1e5036d64d8ae335f9028bf7d8330c75?s=32&d=identicon&r=g) Sri says: [January 1, 2022 at 6:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-322471) Good article. I cross-checked with NSE figures. I think they are using 365 days, not 252 days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-322471) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 1, 2022 at 7:09 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-322497) Must be. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-322497) 123. ![](https://secure.gravatar.com/avatar/acaece798a4511879f8237f08af48eddd6b8e9e3f0ff48d522ec45b3dd2dfc70?s=32&d=identicon&r=g) Vishnu Kant Jha says: [December 24, 2021 at 12:37 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-319030) Hi, While calculating weekly volatility, from Friday end of Day to Thursday expiry, What should be the value in sqrt time, no. of trading sessions remaining i.e. 4. Right? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-319030) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 24, 2021 at 8:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-319190) Thats right. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-319190) 124. ![](https://secure.gravatar.com/avatar/acaece798a4511879f8237f08af48eddd6b8e9e3f0ff48d522ec45b3dd2dfc70?s=32&d=identicon&r=g) Vishnu Kant Jha says: [December 17, 2021 at 9:15 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-316427) I calculated the avg daily return of Nifty 50 index for the past 11 years(2010-2021). It comes out to be -0.04. Does the negative sign requires to be dealt in a different way or should I follow the same procedure because the Avg Annual return is coming out be -10%. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-316427) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 18, 2021 at 9:31 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-316650) Hmm, I\\’m not sure if the number is right. Markets have trended up quite well since then. Maybe you should double-check? 0.04% is ok, but I\\’m not convinced about the +ve sign. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-316650) 125. ![](https://secure.gravatar.com/avatar/f7dfc6cc46026812a4a150c2307e1ce72fe652c6257ad8f3fbc2addf3d7e3dc9?s=32&d=identicon&r=g) Narendra Athota says: [December 16, 2021 at 7:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-316065) STDDEV function is no more supported in the latest version of the excel sheet. When it\\’s calculated for the TCS using STDDEV.S function from 17-Dec-2021 through 16-Dec-2021, abnormal difference around 5% between what NSE is showing for the Annualized Volatality vs the calculation using Excel. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-316065) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 16, 2021 at 8:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-316092) Ah is it? I\\’m still using the old version. Can you check if there is stdev.p, if yes, can you use that and check? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-316092) 126. ![](https://secure.gravatar.com/avatar/6c1be4b961e7c8b2aecabc2f82a52f360b0554eaee0fd80197ae5c4f240285f4?s=32&d=identicon&r=g) Aditya says: [December 12, 2021 at 2:00 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-314447) shouldnt monthly factor be root 21 , as 21 working days in a month ( by logic that 21\*12=252 ) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-314447) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 13, 2021 at 10:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-314775) Yup, you can consider the actual number of months assuming you are considering the yearly number of days as 252. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-314775) 127. ![](https://secure.gravatar.com/avatar/6c1be4b961e7c8b2aecabc2f82a52f360b0554eaee0fd80197ae5c4f240285f4?s=32&d=identicon&r=g) Aditya says: [December 9, 2021 at 10:05 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-312970) thank you sir , followup will be : how to convert month wise average to \> week wise average \> day wise average \> annualized average and how to convert month wise volatility to \> week wise volatility \> day wise volatility \> annualized volatility yes sir i will look to it i use shorter time frame than 91-21 thank you so much sir hoping for a positive reply [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-312970) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 10, 2021 at 1:07 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-313546) Best is to first convert to daily and then scale the daily to whichever time frame. If monthly is 7%, the to convert monthly to daily, you have to divide by sqrt of time…so in this case it will be 7%/Sqrt(30). This will give you daily. Now from daily, you can convert to any timeframe for example if you want 45 days, then daily vol \* Sqrt(45). [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-313546) 128. ![](https://secure.gravatar.com/avatar/6c1be4b961e7c8b2aecabc2f82a52f360b0554eaee0fd80197ae5c4f240285f4?s=32&d=identicon&r=g) Aditya says: [December 8, 2021 at 7:39 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-312736) Hey Karthik , I hope you are still active here on the forum answering doubts – I have data from 1991 april to 2021 november ( monthwise) and i have found the standard deviation of 30 years and 8 months . 1\)the volatility / std dev i have found : is it called month wise historical standard deviation/volatility ? 2) can i convert this to weekly or annual or daily standard deviation of this historical month based volatility ? I have also found the mean ( month based historical ) for the same 3\) is it called month wise historical average ? 4) can i convert this to weekly or annual or daily averages of this historical month based average ? 4 questions above hoping for a positive answer thank you [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-312736) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 8, 2021 at 10:23 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-312806) Aditya, yes, I\\’m active across the entire portal. 1\) Yes, that correct 2) Yes you can 3) Yes 4) Yes YOu can convert any time frame to any time frame you\\’d wish, there is no problem with that. By the way, I don\\’t think taking 30 years SD is helpful, market dynamics have changed completely over these years. SD is best across the last few years. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-312806) 129. ![](https://secure.gravatar.com/avatar/0206b0138d140b121194ab5b5555fd044322b7436051dc70679d700a54096514?s=32&d=identicon&r=g) Rakesh says: [November 30, 2021 at 12:16 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-309384) Sir time 252 how? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-309384) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 30, 2021 at 1:49 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-309416) 252 is the number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-309416) 130. ![](https://secure.gravatar.com/avatar/4136b90b0ca893773f3c5468e7f5c9af7cbc1923338570c5a17e34414256ffe5?s=32&d=identicon&r=g) Monali Gursale says: [November 16, 2021 at 9:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-303443) Hello Sir, I could get the historical closing price for 1 year for all the stocks but how to get the data for Nifty and Bank Nifty. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-303443) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 17, 2021 at 9:38 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-303660) Monali, I\\’d suggest you get in touch with an authorised data vendor for this. Make sure you get the continuous futures data. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-303660) 131. ![](https://secure.gravatar.com/avatar/0fbc6cc3144952667fee48a3d88b7fc124e0e33ffefebf6beb25ae229e238e70?s=32&d=identicon&r=g) choi says: [November 10, 2021 at 9:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-300897) Can not download excel sheet, can you please share on my email ID [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-300897) 132. ![](https://secure.gravatar.com/avatar/99394647e1478a5b5a0ed570894e01016299d8c59156a7998744b247d34b0f47?s=32&d=identicon&r=g) Devansh Gupta says: [November 8, 2021 at 4:12 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-299658) Hi Karthik! My question is regarding the calculation of annual volatility. You have mentioned that in order to convert the daily volatility to annual volatility just multiply the daily volatility number with the square root of time. But I did not understand how you got the 252 figure in the example of Wipro. There are 365 days in a year so should it not be the square root of 365? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-299658) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 8, 2021 at 9:33 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-299681) 252 is the approximate number of trading days in a year, Devansh. 365 is the total number of calendar days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-299681) 133. ![](https://secure.gravatar.com/avatar/4b01b44a476eb390a8f568bc4439ec710e2a9e98643b994b2e4e2f9d15729aa0?s=32&d=identicon&r=g) Madhu Gauranga Das says: [October 28, 2021 at 1:40 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-295356) The difference in your calculation and Nse calculation for annualised volatility number is because you multiplied the SGRT with 252 and NSE does that with 365 days thanks love your content [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-295356) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 29, 2021 at 8:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-295505) Thats right Madhu. There is (could be) another reason. NSE uses a lambda approach wherein they give more weightage to variance in returns for the recent few days as opposed to our approach where we give equal weightage to all returns. NSE\\’s idea of volatility is to figure how much margins to charge given the recent volatility in the market, and our idea is to figure the riskiness of the stock over a period. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-295505) 134. ![](https://secure.gravatar.com/avatar/6aa113fe1925b31c40622ca6a4c980778c8fab5e0f82f580a2cbebcc3050cba4?s=32&d=identicon&r=g) Victor says: [October 3, 2021 at 9:21 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-286446) Hello Karthik, I am not very good with excel sheets. Is there a formula to calculate the Daily returns for the entire year? it is time consuming to calculate individual rows. Thanks in advance [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-286446) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 4, 2021 at 2:52 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-286717) Victor, I\\’d suggest you look at Sensibull for this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-286717) 135. ![](https://secure.gravatar.com/avatar/712b26db369e6ab5d290d6e66b22052d05f2b7497be76c22d82eca94c990a5b9?s=32&d=identicon&r=g) Amit says: [September 29, 2021 at 9:08 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-284916) The time used in calculating volatility(here252) , how do we get that? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-284916) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 30, 2021 at 11:38 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-285101) 252 is the approximate number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-285101) 136. ![](https://secure.gravatar.com/avatar/43cc963a85b14dd307537f408db0a4893cb4233d070a203cc107e4a6a4b4f9df?s=32&d=identicon&r=g) RATHEESH CHELLAPPA says: [September 29, 2021 at 7:03 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-284867) Hi Sir, To convert to annual return i need to consider the number of trading days last year right? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-284867) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 29, 2021 at 7:40 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-284887) Yes, which will be in and around 250 trading days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-284887) 137. ![](https://secure.gravatar.com/avatar/7488e1b308fe484f6c829522fdd0e22fbeebd470b89ff0e63412a316667434fe?s=32&d=identicon&r=g) Om says: [September 20, 2021 at 6:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-281508) Sorry for this silly question…I am very much new to stock market..so hope you don\\’t mind. My question is why time value is 252 ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-281508) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 20, 2021 at 7:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-281540) 252 is the number of trading days in a year Om, hence that number. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-281540) 138. ![](https://secure.gravatar.com/avatar/4978bfe8e9c1243027babfcf0fe57442dabbf0b99d31b04704c7e5aeb4c68ec8?s=32&d=identicon&r=g) Roshan says: [September 19, 2021 at 8:28 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-280840) Sir, Can we calculate the volatility of bank nifty using the method explained in this chapter. OR is there INDIA VIX like tool available for Banknifty? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-280840) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 19, 2021 at 12:11 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-280906) Yes, you can. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-280906) 139. ![](https://secure.gravatar.com/avatar/d4211f13df128bd47795fcefdd58739bc149bde2b318c38fe48fc1ba6f901293?s=32&d=identicon&r=g) Karan Ramchandani says: [September 16, 2021 at 7:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-279702) Why we use log to distributre the return? and we take time as 252?? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-279702) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 16, 2021 at 8:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-279732) Karan, I guess we have discussed this in the comments section already. Can you please check once? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-279732) 140. ![](https://secure.gravatar.com/avatar/57f3a1983947a21927d445615c02b116b776c161a907d32a5795c3c42f0ddbea?s=32&d=identicon&r=g) Prashant says: [August 24, 2021 at 12:13 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-270345) Got it Sir! Thanks for the prompt response.. really appreciated\! Learned a lot.. still learning.. thanks for the quality contents and efforts.. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-270345) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 24, 2021 at 11:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-270479) Happy learning, Prashant. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-270479) 141. ![](https://secure.gravatar.com/avatar/57f3a1983947a21927d445615c02b116b776c161a907d32a5795c3c42f0ddbea?s=32&d=identicon&r=g) Prashant says: [August 23, 2021 at 1:51 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-270012) Hello Sir, But from NSE data annual volatility showing 25.52 seems derived with 365 days and we have taken 252 trading days. Please confirm. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-270012) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 23, 2021 at 10:54 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-270095) 252 is the number of trading days in the year (approximately). I\\’d suggest you take both and see which one you get better results in. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-270095) 142. ![](https://secure.gravatar.com/avatar/5dea46f1feb2dbf20ad7a5949bc93571842548965fa955a0c9ef9a74b4b7d3e9?s=32&d=identicon&r=g) Abhishek says: [August 20, 2021 at 3:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-269094) Hi Sir, What period should we use to calculate historical volatility comparable with Nifty India VIX? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-269094) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 21, 2021 at 9:47 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-269318) Depends on your trading stye, you can check at least 1-year data. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-269318) 143. ![](https://secure.gravatar.com/avatar/245840f08d259c43892db5fc9a01a4a09e5076943c8950ebc335e447a38444fe?s=32&d=identicon&r=g) Nilakantan says: [August 19, 2021 at 2:58 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-268666) Thanks a lot for the detailed explanation Karthik.. Couldnt imagine the kind of efforts would have gone in to build this wonderful modules.. Really appreciate your teams effort on this. we are not able to download the Excel link attached here.. is the link chagned? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-268666) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 19, 2021 at 9:28 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-268791) Thanks, Nilakantan. Checking this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-268791) 144. ![](https://secure.gravatar.com/avatar/7c93db459459536fe008e9d0d6944ff61e95af4c388eb14100cc7445693e86dd?s=32&d=identicon&r=g) Kunal Vikram Singh says: [August 17, 2021 at 10:22 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-268054) I have question. We calculated annualized volatility using daily returns. Therefore, if we calculate volatility using annual prices, then both the value should be same. But they aren\\’t! Why? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-268054) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 18, 2021 at 8:59 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-268206) Volatility is based on returns, not prices, Kunal. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-268206) 145. ![](https://secure.gravatar.com/avatar/22dd2f92eafefec77708d8e33a6071420a4361ee94b9176e9503063e4ecbe68e?s=32&d=identicon&r=g) Manjunath says: [August 15, 2021 at 4:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-267230) How you have selected time as 252 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-267230) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 16, 2021 at 10:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-267485) I guess so, Manjunath. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-267485) 146. ![](https://secure.gravatar.com/avatar/b15a85271c23c80c4779fb0a7a7b61324913a87e438d51791e51ce8eaac153de?s=32&d=identicon&r=g) Renu says: [August 12, 2021 at 6:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-266288) Very insightful. I am not able to download the XLs from chapter 16 n 17, could you pl check. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-266288) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 12, 2021 at 8:07 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-266326) Checking. Meanwhile, can you try downloading it from another browser? Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-266326) 147. ![](https://secure.gravatar.com/avatar/b5f61422c6089d67c95959531b5334c17ea7d1e8d9f8561104c49bd43c2404cb?s=32&d=identicon&r=g) vicky says: [July 7, 2021 at 11:27 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-256794) from where i can get daily and annual volatility on NSE site? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-256794) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 8, 2021 at 10:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-256897) I\\’m not sure where they are publishing this info, Vicky. Its best if you can check with NSE directly. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-256897) 148. ![](https://secure.gravatar.com/avatar/8e9da0dbd1918a6d241582d74b5e8d7f36789ae903212298c94313bf5454c4d8?s=32&d=identicon&r=g) raja says: [June 26, 2021 at 8:43 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-253317) Hi Mr. Karthik, Your lessons are very simple, practical and interesting. Keep up the good work. I have a query in the above chapter For calculating volatility, time was considered as 252, why? raja [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-253317) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 26, 2021 at 9:39 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-253327) Raja, 252 = number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-253327) 149. ![](https://secure.gravatar.com/avatar/b1aa10857540d6c3555a27641d90e5b161b97c9520fa22413b22c97701f16704?s=32&d=identicon&r=g) AKAASH KUMAR says: [June 24, 2021 at 12:54 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-252469) Excel sheet link is not opening ? Another way to get the sheet ?? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-252469) 150. ![](https://secure.gravatar.com/avatar/a5e3d65ff4e04a1c862e2b4b52a8d413333c2165625ddfbd1275fc6ae2e76c10?s=32&d=identicon&r=g) Abhigya Kushwah says: [June 22, 2021 at 11:01 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-251743) Dear Karthik, Thanks a lot… I will go by our calculations… But Will keep on troubling you again again, if and whenever I am stuck… in different modules… [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-251743) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 22, 2021 at 7:06 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-251893) Please do, good luck 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-251893) 151. ![](https://secure.gravatar.com/avatar/a5e3d65ff4e04a1c862e2b4b52a8d413333c2165625ddfbd1275fc6ae2e76c10?s=32&d=identicon&r=g) Abhigya Kushwah says: [June 21, 2021 at 2:12 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-251354) Dear Karthik, I am absolutely new to the Stock Market but it has always been fascinating me since my student times. But I neither got an opportunity to learn nor did I ever got a good material or teacher to make me understand the stock market. But Varsity has been so nicely designed in a step by step manner that it\\’s actually easy to learn and understand all the concepts. You have even taught the formulas for coming to the values which are already given on different websites, which is the best part as we should also know how to calculate. Thanks to you mate for all this. As I mentioned to you in the beginning that I new to the stock market, hence, I will be coming out will lots of questions, which you or many other sisters or brothers may feel are useless, but I love to be clear on every doubt. Now my question to you here is regarding the Volatility. 1. We have discussed about the calculation of volatility and based on the excel sheet you have given, it\\’s on the basis of four years. I have prepared similar kind of spread sheet in my excel. Now I wanted to know, that the Daily and Annual Volatility already available on the NSE website is based on how many years data? 2. When we calculate the 1SD, 2SD, 3SD, which Volatility Data to use – the one given on the NSE website or the one to which we have reached by our calculations? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-251354) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 21, 2021 at 8:08 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-251557) Thanks for all the kind words, Abhigya 🙂 1\) NSE data is probably for a year, but their approach to calculating volatility is different. They do this with an intention to calculate margins, hence give more weightage to recent data points, unlike the method described here wherein there is equal weightage for all the data points 2\) I\\’d suggest you use the method described here. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-251557) 152. ![](https://secure.gravatar.com/avatar/396d6d26cae69db1d443bde61806f7e19e0b09a0b91ac60c9f4e723fa8c4c3cc?s=32&d=identicon&r=g) Ankit says: [June 18, 2021 at 9:55 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-249816) Hi Karthik, Can we not rely on the volatility provided on NSE website? Is there any benefit in calculating it ourselves when they\\’re so close? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-249816) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 18, 2021 at 9:58 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-249819) You can, but the NSE calculates the volatility by keeping margins in perspective. Hence they give more weightage to the recent data points so the NSE\\’s volatility will be different compared to calculating it via the stdev function. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-249819) 153. ![](https://secure.gravatar.com/avatar/497fb4ccb0cfc010397daaee064d739c087b898b76982d94439d86340f4b0dca?s=32&d=identicon&r=g) sangeet agarwal says: [June 6, 2021 at 11:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-245095) Sir, what about the number of trading days in the NSE website(has considered 365days for Annual volatality). Ideally the no. of trading sessions should be used which is 252days in our case?? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-245095) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 6, 2021 at 1:28 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-245128) I\\’m not sure what they use, I guess they take in 365 days. Maybe you should check with them. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-245128) 154. ![](https://secure.gravatar.com/avatar/497fb4ccb0cfc010397daaee064d739c087b898b76982d94439d86340f4b0dca?s=32&d=identicon&r=g) sangeet says: [June 6, 2021 at 2:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-245004) Hello Sir, I tried to calculate the Volatality using Standard deviation(from 4June\\’20 to 4June\\’21) but there is a huge difference in the daily volatility and the annual volatality.(Though it is of futures but the difference is significant, can this be considered??). I have tried 4-5stocks but the case is the same for every stock. Can you please check in the excel sheet and let me know if i went ahead correctly. I am sharing the google drive link where you can check the sheet. https://drive.google.com/file/d/1OGxpJnIV5NUS\_2VrtyNuj8lAxksuo4dk/view?usp=sharing Also for calculating the Annual Volatality, in the NSE website , the daily volatality has been multiplied with the sq. root of 365 instead of 252?? Since there were 252 trading days during the above period, so the daily volatality should have been multiplied by 252. Isn\\’t it?? Thank you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-245004) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 6, 2021 at 9:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-245049) The difference between NSE\\’s volatility and the way you\\’ve calculated is because NSE calculates volatility from a margins perspective. NSE gives more weightage to recent data points where as in your calculation, it does not weigh the data points. HEnce the difference. I\\’d suggest you stick to your method to get a fair sense of what the volatility of the stock is. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-245049) 155. ![](https://secure.gravatar.com/avatar/f085332313892329029a5d43c76eade5cfa0f27c866615719fbda67469384c90?s=32&d=identicon&r=g) Anit Bhattacharya says: [June 2, 2021 at 9:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-243781) I am very new to Stock Market. So, my question might seem very trivial 😅. Still asking, Why has time been taken as 252 in the calculation? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-243781) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 3, 2021 at 11:40 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-243940) 252 = number of trading days in a year 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-243940) 156. ![](https://secure.gravatar.com/avatar/55f149d63dbdd0a54e2504323168a4509642a46a9978ff7c3d830ccf3ed42d92?s=32&d=identicon&r=g) R.Balajikrishnamurthy says: [May 22, 2021 at 11:00 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-238300) Sir! How can I get to know about the range of the underlying by using the percentage(In NSE website they provided Daily and annual volatility in percentage). [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-238300) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 22, 2021 at 1:15 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-238372) YOu can make these calculations yourself, it is quite easy. Have explained the method in the chapter itself. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-238372) 157. ![](https://secure.gravatar.com/avatar/71ec69b27ca1d0cdc92ea82f80dcc5cd9dc5bca4b208f9ad8c5c710bec926a1e?s=32&d=identicon&r=g) RAJU DHAKA says: [May 19, 2021 at 4:55 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-237276) Hi karthik sir, nice explanation. i would like to ask why you took time 252 to calcualte annulasied volatility. as on today I calculated the volatiity for wipro then it came for daily= 2.3% , and annulasied= 35.5% but on NSE website it is showing for daily=2.89% that is ok but annulasied =55%. can u clarify plz [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-237276) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 19, 2021 at 7:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-237339) 252 = number of trading days in a year. NSE calculates the volatility keeping the margins in perspective. Hence the difference. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-237339) 158. ![](https://secure.gravatar.com/avatar/a357384a08283c9c0d63225a36ed2a7181fd893ded4906a6f47798396c14ba44?s=32&d=identicon&r=g) Apoorva says: [May 17, 2021 at 9:53 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236622) I never knew options are going to be this much easy,All thanks to you Sir. By the way Sir I am facing 1 problem, Sir when i am trying to get data for nifty(symbol). for last 1 year it is showing \\’\\’no records\\’\\’ Kindly help SIR. 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236622) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 18, 2021 at 11:24 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236786) Apoorva, what data are you trying to look for? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236786) 159. ![](https://secure.gravatar.com/avatar/f045fbeb36048c8668183def8fabcadd9e33df84bfa5d3937a1a309769a3c290?s=32&d=identicon&r=g) Abdul says: [May 16, 2021 at 6:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236127) I calculated Wipro Daily and Annual Volatility ( 15/05/20 to 14/05/21) I got answers Daily: 2.21% Annual: 42% (251 days) While you cross-checked at nse website ( in the last pic highlighted by a blue box), I am unable to crosscheck at nse. ( historical data is showing only historical price not daily nor annual volatility) Also where I can check Nifty annual volatility? thank u sir https://www1.nseindia.com/live\_market/dynaContent/live\_watch/get\_quote/GetQuote.jsp?symbol=WIPRO\&illiquid=0\&smeFlag=0\&itpFlag=0\# [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236127) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 16, 2021 at 8:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236170) Its on the NSE site, please check the details once in Bhav copy. But the values will anyway be different since NSE now calculates volatility from the perspective of margins. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236170) 160. ![](https://secure.gravatar.com/avatar/5a473d8c771fa25b01ef050352a92e7430f4ea6b02a3da0ec37c1c400b6e45d2?s=32&d=identicon&r=g) KRISHNENDU SAHA says: [May 16, 2021 at 1:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236026) In calculation of annual volatility where does 252 come from? Is it number of total trading days in a year? If yes then how to know the number of total trading days in previous year? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236026) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 16, 2021 at 7:58 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236157) Yes, 252 is roughly the number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-236157) 161. ![](https://secure.gravatar.com/avatar/7b2feb1ee03c4c3db9c345ede250856fa658f994650f80c76a306197ad297a79?s=32&d=identicon&r=g) Priyank Shah says: [May 15, 2021 at 12:25 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-235424) Hey Kartik. You have used the formula of LN here while calculating daily volatility. However, when we have to calculate the final values (+1SD, +2D etc.) we have to use exp function. However, when the values are more than 1 (X\>1 for e^x) the values go too high. What to do in such a case? For eg. some stock can have an annual average return of more than 100%. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-235424) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 15, 2021 at 7:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-235519) Priyank, you can stick to regular calculation itself (non log). [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-235519) 162. ![](https://secure.gravatar.com/avatar/1d375092f0b48c9d4edd4cfee542a32463126d0f3c5c8e656a90032e3b9642ff?s=32&d=identicon&r=g) Sashank says: [May 3, 2021 at 11:50 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231417) Thank You for the rich value you provide on the internet. I calculated along the steps for \\”TATAMOTORS\\” for the past 1 year but my data and NSE\\’s data differ quite a bit. For e.g My daily volatility is 0.66% while NSE\\’s 3.55% and My annual volatility is 10.53%but NSE\\’s 67.90%. Where did I go wrong? and Why is the time value \\”252\\” while calculating annual volatility? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231417) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 3, 2021 at 10:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231575) NSE calculates volatility mainly in terms of computing margins, which differs from the regular way of calculating volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231575) 163. ![](https://secure.gravatar.com/avatar/1d375092f0b48c9d4edd4cfee542a32463126d0f3c5c8e656a90032e3b9642ff?s=32&d=identicon&r=g) Sashank says: [May 3, 2021 at 11:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231415) Thank You for the rich value you provide on the internet. I calculated along the steps for \\”TATAMOTORS\\” for the past 1 year but my data and NSE\\’s data differ quite a bit. So asking for help. 1. Why is the time value \\”252\\” [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231415) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 3, 2021 at 10:16 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231574) 252 = Number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231574) 164. ![](https://secure.gravatar.com/avatar/d99cb08d950c2fac51386c35bd7ca87d0610731269e28115a6455dff2567bd59?s=32&d=identicon&r=g) Yogaraj says: [May 2, 2021 at 9:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231129) HI, Pls can you able to say in volatility annual calculation has been selected as 252. What is a logic behind this. Pls explain why 252 selected it is a constant valve or any other parameter. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231129) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 3, 2021 at 9:37 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231368) 252 = number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-231368) 165. ![](https://secure.gravatar.com/avatar/01a2523d32057d379b54302954b155d54cdf703c8cf8415775fca587745fe209?s=32&d=identicon&r=g) Amit says: [April 30, 2021 at 4:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-230556) Sir, today is Friday and it\\’s past 4 PM so the trading time for today is over. I have calculated daily volatility using past one year return. I want to know the volatility of the next expiry of nifty weekly options i.e. coming Thursday (06 May, 2021). So what will be the formula? (i) Daily Volatility\*SQRT(6) (Saturday, Sunday, Monday, Tuesday, Wednesday, Thursday, i.e. taking both trading holidays and expiry day into consideration) (ii) Daily Volatility\*SQRT(5) (Saturday, Sunday, Monday, Tuesday, Wednesday, i.e. taking trading holidays into consideration but not expiry day) (iii) Daily Volatility\*SQRT(4) (Monday, Tuesday, Wednesday and Thursday, i.e. taking expiry day into consideration but not trading holidays) (iv) Daily Volatility\*SQRT(3) (Monday, Tuesday, Wednesday, i.e. not taking both expiry day and trading holidays into consideration) Please answer. Thank you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-230556) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 30, 2021 at 7:50 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-230632) Amit, either (i) or (iii), both are used. I\\’d prefer (iii). [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-230632) 166. ![](https://secure.gravatar.com/avatar/06397558e3efb836a24b7ee7bb7558191b210b33893181369ad53e15b1b18930?s=32&d=identicon&r=g) Sachin says: [April 19, 2021 at 9:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-226746) In the start of this chapter it’s written – Square and add up all deviations – this is called variance While it must be divided with no of observation as per last chapter. It’s contradictory Pl check [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-226746) 167. ![](https://secure.gravatar.com/avatar/75fea5fafda204eeb0d420332d6bd5155bf12b9e24d814eb514554d52f47bbb8?s=32&d=identicon&r=g) pranav says: [April 14, 2021 at 12:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-224783) hey karthik! loved the module… just couldnt understand one thing that why did you take time to be 252 when u took the data for an year? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-224783) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 15, 2021 at 10:54 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-225116) Thanks Pranav. 252 = number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-225116) 168. ![](https://secure.gravatar.com/avatar/7df2a3f835327ec3f708b669a04146646b9cdca77da149a25e87f1f7881a324a?s=32&d=identicon&r=g) CHANDAN NAGARAJA says: [April 6, 2021 at 5:52 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-221876) Hello Karthik, A wonderful and simple explanation of such complex topics. Thank you for making option easy n simple for me to learn, understand and analyze. Why are you calculating log daily returns, any particular logic behind it? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-221876) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 6, 2021 at 8:49 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-221926) Thanks for the kind words, Chandan. Returns can be calculated using log or simple returns. Usually when the data set is large, it\\’s the log return. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-221926) 169. ![](https://secure.gravatar.com/avatar/513d4e225217666f0aedf69b09b5a150cc58328746ee89fd8b189ba6733d01ad?s=32&d=identicon&r=g) Ajay Devgan says: [April 2, 2021 at 1:06 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-220197) Hi Karthik, I never had so much clarity on greeks before I read your content on Varsity. I cannot thank you enough for what you have given me FOC. My doubt. The calculation of Wipro Daily returns, Standard Deviation, Daily Volatility done on 23rd Jul 2014 is based on the yearly data until 21st Jul 2015. Right?. But on 23rd July if I want to do the calculation, how will I get the data of 24th July, 25th July, and so on?. In this case, should I take data of 1 year from 24th July 2013? If I take data for 6 months I should take 126 days?. In an option chain, there is volatility for each strike price. Is this also Annual volatility?. I use the Interactive Broker portal to trade US stocks. I can see an IV at the top on the Option chain and also with each strike price. How are the 2 different. Sorry, too many questions. Appreciate your response. Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-220197) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 2, 2021 at 3:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-220271) Thanks, Ajay. The data can be downloaded by subscribing to a data vendor, who will supply you with the daily dump of data. Yes, IV is usually an annual number. I\\’m not sure what that means, maybe you should check with them 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-220271) 170. ![](https://secure.gravatar.com/avatar/f60518b02ebb9350999d67f1656cc7982b7a32c2107f426f9063d825970f03ba?s=32&d=identicon&r=g) A Jain says: [March 28, 2021 at 5:47 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-218330) Hi Please refer to you last part of the tutorial, reproduced below. So in this case we have calculated the daily volatility, and we now need WIPRO’s annual volatility. We will calculate the same here – Daily Volatility = 1.47% Time = 252 Annual Volatility = 1.47% \* SQRT (252) = 23.33% Can you please tell how you deduced time as equal to 252. In actual there are 244 trading sessions in the trading year selected for excel calculation. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-218330) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 29, 2021 at 9:04 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-218574) Thats right, a year has roughly 252 trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-218574) 171. ![](https://secure.gravatar.com/avatar/934908dacacf245a88a96db153a11feb9008342e4b5c2c2450c839216b5fac6c?s=32&d=identicon&r=g) Tayaan says: [March 11, 2021 at 1:07 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-212359) Hi\! Good work! Where did you pull-out the time of 252 from? In your excel sheet it\\’s not 252, it\\’s 365. So please explain that. For monthly, I have to sqrt 30 days and weekly 7 days, right? And yearly 356 Thanks a lot. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-212359) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 11, 2021 at 10:04 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-212536) Tayaan, 252 is the number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-212536) 172. ![](https://secure.gravatar.com/avatar/6ae50ce799200d735a70d2806afcff5e3c994c87bce369af0c506420b437c28a?s=32&d=identicon&r=g) Shankar Mohan says: [February 14, 2021 at 5:13 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-205535) got it from tradingqna https://tradingqna.com/t/why-stock-returns-are-calculated-in-log-scale/806 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-205535) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 14, 2021 at 9:22 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-205559) Glad, was about to post the same link 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-205559) 173. ![](https://secure.gravatar.com/avatar/6ae50ce799200d735a70d2806afcff5e3c994c87bce369af0c506420b437c28a?s=32&d=identicon&r=g) Shankar Mohan says: [February 14, 2021 at 5:04 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-205534) Karthick First, Thank you. Everything i know about the markets, f\&o etc is from here. why ln to calculate returns? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-205534) 174. ![](https://secure.gravatar.com/avatar/0a0c10401baf62ea3f1a433518521749ff411243acbd0d771b4c7f2f85160806?s=32&d=identicon&r=g) JatinShah says: [February 11, 2021 at 12:37 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-204412) Dear Sir, I did download the Nifty historical data and calculated avg, std etc. But it is constantly annoying to calculate this every week manually. Is there better way like a website or anything that does this? Could you recommend such a site? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-204412) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 11, 2021 at 8:00 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-204509) Jatin, maybe you should check Sensibull site, they may have a this ready. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-204509) 175. ![](https://secure.gravatar.com/avatar/6a257cde2c3fd2b6c9e2667f1c9de093ea5046429e8e7023ad1a52e092e80990?s=32&d=identicon&r=g) Rajnish says: [February 10, 2021 at 2:47 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-204129) Hello Kartik, So far so good, Just to relate the current part of excel calculations with the previous chapter where you have taken the examples of Bill and Mike. Just correct me wherever I am wrong. In this chapter the Nifty closing prices are nothing but runs scored by Bill and Mike in the previous chapter. The Daily nifty returns (which are log returns in % percentages) are nothing but deviations from Mean. Here we did not calculate the Mean as excel allows us to use a shortcut to calculate standard deviation by using the direct formula \\”STDEV.P\\” on the values of deviations from Mean. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-204129) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 10, 2021 at 4:23 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-204152) Thats absolutely correct, Rajnish! Keep going 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-204152) 176. ![](https://secure.gravatar.com/avatar/be358462917033d52766a479042ac6694a2a7ed4c0b6135a02eb6559c5a85cfc?s=32&d=identicon&r=g) Trace says: [February 7, 2021 at 5:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-203275) Dear Sir, In your last calculation you converted annual volatility to daily volatility. = 25.2% / sqrt(252) = 1.60% The nse website got 1.34% as they used 365 days while you used 252 days. Isn\\’t your calculation more accurate compared to the NSE as markets are not open on the weekend and that .3% can sway entry and exit points. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-203275) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 7, 2021 at 9:53 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-203363) I\\’d like to believe that, but many traders find comfort in sticking to the exchanges\\’ convention. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-203363) 177. ![](https://secure.gravatar.com/avatar/6f98ed84bd765e63207e25b6b0173ed1a1c425c34deb3109d679c2d1c7bc95dd?s=32&d=identicon&r=g) Luv Nambiar says: [January 14, 2021 at 3:16 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196535) Thanks, Karthik. Got it. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196535) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 14, 2021 at 9:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196615) Good luck\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196615) 178. ![](https://secure.gravatar.com/avatar/30db833b06dfe5e1847b9d28e4cb3a7e8cd3adbe60600320cafc20f9a652c774?s=32&d=identicon&r=g) Priya Xavier says: [January 14, 2021 at 10:25 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196479) Hello Karthik, Thanks for the detailed learning. Quoting from your session \\”So with this, we know WIPRO’s daily volatility is 1.47% and its annual volatility is about 23%. Lets double-check these numbers with what the NSE has published on their website. NSE publishes these numbers only for F\&O stocks and not other stocks. \\” I\\’m unable to find this on the nse website. Could you help pls. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196479) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 14, 2021 at 11:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196493) Priya, you will have to scout through NSE\\’s site. They keep changing the site often 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196493) 179. ![](https://secure.gravatar.com/avatar/6f98ed84bd765e63207e25b6b0173ed1a1c425c34deb3109d679c2d1c7bc95dd?s=32&d=identicon&r=g) Luv Nambiar says: [January 13, 2021 at 8:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196324) Okay, I have almost understood how it works. But why is variance linearly proportional to time? Shouldn\\’t S.D be the term which is linearly proportional? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196324) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 13, 2021 at 10:45 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196364) Check the reply to your previous comment. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196364) 180. ![](https://secure.gravatar.com/avatar/6f98ed84bd765e63207e25b6b0173ed1a1c425c34deb3109d679c2d1c7bc95dd?s=32&d=identicon&r=g) Luv Nambiar says: [January 13, 2021 at 6:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196298) Hey Karthik, Can you provide me with a link with a clear explanation/derivation for why we should multiply or divide by SQRT(252). I googled it and I do understand it has something to do with the variances adding up but I don\\’t think I understood the full derivation. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196298) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 13, 2021 at 10:43 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196362) Check this – https://www.macroption.com/why-is-volatility-proportional-to-square-root-of-time [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-196362) 181. ![](https://secure.gravatar.com/avatar/23b352a25851c630a47f46841cc9b5bbf00c4e4b04cfd0ba1c2c95493fc763c4?s=32&d=identicon&r=g) Deathstroke08 says: [December 21, 2020 at 3:37 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-190748) hello karthik, so to calculate the weekly volatility form daily volatility do we need to multiply the daily volatility by sqrt(5) or sqrt(52)?? thanks you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-190748) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 21, 2020 at 8:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-190799) 5, since there are 5 working days in a week. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-190799) 182. ![](https://secure.gravatar.com/avatar/84a271994c2f3d3bba0a20a0b334bf6c8a089a238e0ba81cd84334148440e9f0?s=32&d=identicon&r=g) Prashant Yadav says: [December 13, 2020 at 11:31 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-188592) Sir you\\’ve mentioned here that to convert daily volatility to annual volatility, multiply the daily volatility by the square root of time; and the time value is taken as 252. What is 252 here? Are they the number of trading days between 22nd July 2014 to 21st July 2015? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-188592) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 14, 2020 at 10:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-188829) 252 is generally the number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-188829) 183. ![](https://secure.gravatar.com/avatar/cff47646aa9163fcd2a443d6eeac4e5e5eb320be0a01cebf8e1dca447499a214?s=32&d=identicon&r=g) Sahil Aswani says: [December 11, 2020 at 5:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-188009) Bro How Can I Get All Days Return In % By One Click, It\\’s Hard To Apply Formula Everyday And Find Return For Everyday, How Can I Do It Easily? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-188009) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 11, 2020 at 11:26 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-188029) Sahil, not easy unless you program this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-188029) 184. ![](https://secure.gravatar.com/avatar/81acf58a1efd86586af3660f5482fd2430299b4d193462233a7d5d19ab017442?s=32&d=identicon&r=g) Sagar says: [November 25, 2020 at 10:19 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-184336) Thanks Karthik. is volatility on daily and annually calculated at each day EOD. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-184336) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 26, 2020 at 9:19 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-184439) YOu can calculate volatility on both daily and EOD basis. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-184439) 185. ![](https://secure.gravatar.com/avatar/85a76cbf553eda9eb2d5ffe14556456f63b6e94eb40c3aaba6e3865a3fea22ad?s=32&d=identicon&r=g) ANURAG says: [October 20, 2020 at 1:32 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-175083) HELLO KARTHIK, WHY YOU TAKE 252 UNDER LEBEL TIME WHILE CALCULATING ANNUAL VOLATILITY? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-175083) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 20, 2020 at 10:16 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-175106) 252 is the number of trading days in a year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-175106) 186. ![](https://secure.gravatar.com/avatar/d8c46d5d16cf26bd564c83590bb95ab6ef72b06f478d299cb4e08dc8616eb074?s=32&d=identicon&r=g) Abel says: [October 5, 2020 at 8:55 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-171111) Is it possible to trade options, using price action and indicators just like we do with stocks, without considering the options greeks? If yes, what would be the difference? If no, why? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-171111) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 5, 2020 at 11:30 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-171165) Yup, you can. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-171165) 187. ![](https://secure.gravatar.com/avatar/3fea178614fb0483f2899a9ad61c939402724fe5ea409bf4585f1b53d15b4c4b?s=32&d=identicon&r=g) Guru says: [September 17, 2020 at 11:23 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-165868) Sir I am looking for the historical data to download for NIFTY to do the calculations and I can\\’t find it. (in this chapter we downloaded WIPRO) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-165868) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 17, 2020 at 10:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-166018) I\\’d suggest you look for it on NSE website. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-166018) 188. ![](https://secure.gravatar.com/avatar/3fea178614fb0483f2899a9ad61c939402724fe5ea409bf4585f1b53d15b4c4b?s=32&d=identicon&r=g) Guru says: [September 15, 2020 at 12:11 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-165299) Hello sir, thank you for your clear explanation. I am wondering how can I get data for NIFTY options in the derivatives section. I want to learn how to do projections for NIFTY options. Could you suggest me a few tips on doing projections for NIFTY options? thank you\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-165299) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 15, 2020 at 12:21 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-165301) What kind of data are you looking for? Do check here – https://www.nseindia.com/market-data/equity-derivatives-watch [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-165301) 189. ![](https://secure.gravatar.com/avatar/01fd4dfa539fb7f86c89bdefdaab4e875a7ac0bb824e821be993a67a337c5e3f?s=32&d=identicon&r=g) Ashish Bhadoria says: [September 6, 2020 at 10:40 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-163218) Hi Sir, i have one confusion what if we calculate standard deviation of price itself in place of standard deviation of return. Like i have calculated standard deviation of daily return (21 days) for Nifty at 0.57% whereas standard deviation of absolute price comes at 172 points as on 31st Aug 2020. now 172/11387 comes at 1.51%. why there is such huge difference in absolute and SD of return? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-163218) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 6, 2020 at 10:43 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-163220) You cannot do this on prices, as prices trend to trend, and are not normally distributed. However, stock returns are normally distributed, which is what I\\’ve explained in the chapter. You can apply principals of SD only if its a normal distribution. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-163220) 190. ![](https://secure.gravatar.com/avatar/b95341087aeecf72626d0253344d1c144276c4a022473d1a4008998610d71387?s=32&d=identicon&r=g) Bipin says: [September 5, 2020 at 7:04 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-163075) Thanks for all your effort, this is awesome. There is a discrepancy in data between the downloadable excel sheet and what has been taken for annual volatility calculation in this article. In excel the time value is 365 where you have written 252 in the article. Kindly clarify. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-163075) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 5, 2020 at 8:06 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-163085) Thanks for pointing, Bipin. Let me check this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-163085) 191. ![](https://secure.gravatar.com/avatar/f7a37f4a5fdade7243cba104d01c531e380d6de8992b4bc4211ff6940d1f67dd?s=32&d=identicon&r=g) niraj says: [September 4, 2020 at 8:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-162734) Sir, I calculated the volatility for HDFC Bank, it shows annual volatility of 96%, seems there is a stock split and I can\\’t able to get the clean data. As an alternative, can we use the value from current month Future Contract from the NSE website. 🤔 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-162734) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 4, 2020 at 10:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-162747) You need to ensure that the calculations are run on clean data which is adjusted for splits and bonuses. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-162747) 192. ![](https://secure.gravatar.com/avatar/621e59cdbf42f4f442bc55f2b401527545f9555bef2915e1419e01cb43a244d9?s=32&d=identicon&r=g) Vaishakh says: [August 29, 2020 at 12:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-161266) Suppose i bought a share at 500, with Reward to risk as 1:1 , i would keep SL at 496 and imaginary target at 504, and when the price reached 504, i would manually change SL to 501 so that at least my capital is preserved. Or sometimes modify SL to price little less than target in this case let\\’s say new SL is 503 and SL gets hit and price increases from there on. So booking only small profit even though things were going good. And given the fluctuations in prices, I face a difficulty while deciding at what value should i keep new SL, whether it should be little above buy price or at target price ? (NOTE – currently BO orders are not available to trade due to increased volatility , this statement can be seen in Zerodha\\’s Bulletin segment) I hope you got my question 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-161266) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 29, 2020 at 7:30 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-161382) Got it. YOur technique of trailing is right. If I were you, I\\’d buy at 500, SL is 496. I\\’d trail the SL to 500, if the underlying moves to 504. If The underlying moves further ahead, lets say 508 or 510, I\\’d increase the SL to 502, @ say 512, SL moves to 504….the point is that you have to wait for the underlying to move in your favor and then trail accordingly. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-161382) 193. ![](https://secure.gravatar.com/avatar/621e59cdbf42f4f442bc55f2b401527545f9555bef2915e1419e01cb43a244d9?s=32&d=identicon&r=g) Vaishakh says: [August 28, 2020 at 11:52 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-161113) Sir, When to start trailing your stoploss ? I have tried to do it while trading but found that i am not able to properly make decision regarding it [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-161113) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 29, 2020 at 9:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-161224) Can you explain how you did it? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-161224) 194. ![](https://secure.gravatar.com/avatar/7b66c0ceeaa59e290c1e2d5df434869a74e0e031138d89bd468871138e584f92?s=32&d=identicon&r=g) Aman Parvez says: [August 17, 2020 at 4:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-157320) Sir, Your work is commendable, these modules are really helping many new traders like me. I understood almost everything till this chapter along with evolving crystal clear concepts of market. All thanks to you Sir\! Just two questions i have. (i) In calculating annual volatility why you put the figure 252 in the formula and second thing is when i downloaded the same excel file you mentioned above there in which you have placed the figure 365 instead of 252 in the Excel Sheet Formula. Please clarify Thank you Sir\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-157320) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 17, 2020 at 8:35 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-157400) Glad you liked the content 🙂 1\) 252 is the number of trading days in a year and 365 as you know is the calender number of days. NSE considers 252, I\\’d suggest you do the same as well. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-157400) 195. ![](https://secure.gravatar.com/avatar/e6dbede4c784efbc95350f8428187166bdf590cd134c89c9353646cf245734db?s=32&d=identicon&r=g) Satheesh says: [August 14, 2020 at 12:28 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-156300) Thanks again Karthik for your insights. This reinforced the thought to wait patiently for the opportunity from market. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-156300) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 14, 2020 at 7:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-156387) Good luck 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-156387) 196. ![](https://secure.gravatar.com/avatar/e6dbede4c784efbc95350f8428187166bdf590cd134c89c9353646cf245734db?s=32&d=identicon&r=g) Satheesh says: [August 12, 2020 at 11:44 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-155881) True, it depends on how much premium we are collecting. Say after calculating nifty upper range, we identify a strike trading at 20Rs premium, then returns works out to be ~1.25% \[ 1500/127000 \] which is still decent returns. But not sure if we get such strikes where Rs.20+ premium can be collected consistently. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-155881) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 13, 2020 at 9:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-155985) Possible, you just need to track the market and you will get an opportunity sometime during the series, especially when there is a spike in volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-155985) 197. ![](https://secure.gravatar.com/avatar/e6dbede4c784efbc95350f8428187166bdf590cd134c89c9353646cf245734db?s=32&d=identicon&r=g) Satheesh says: [August 12, 2020 at 12:06 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-155574) Hi Karthik, With Nifty options lot size 75, margin requirement for collecting premium comes some where around 127000. returns after adjusting brokerage looks very less. I agree this is consistent approach, but considering risk/reward, do you still think returns are decent enough ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-155574) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 12, 2020 at 10:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-155689) Hmm, depends on how much margin you collect right? Also, the thumb rule is – anything higher that 2% a month is worth considering. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-155689) 198. ![](https://secure.gravatar.com/avatar/5b48302b5e6219107839514cf298ffc06681012092db26d82d74403bb4afffde?s=32&d=identicon&r=g) Arnav says: [August 7, 2020 at 11:58 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-154223) In Kite, for any given stock, if you go in fundamentals in kite, you show the Beta of the stock right ? for what period do you calculate that Beta [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-154223) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 7, 2020 at 7:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-154336) Ah, that comes from tickertape. We don\\’t compute that. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-154336) 199. ![](https://secure.gravatar.com/avatar/5b48302b5e6219107839514cf298ffc06681012092db26d82d74403bb4afffde?s=32&d=identicon&r=g) Arnav says: [August 6, 2020 at 7:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-154014) For Beta calculation what period is considered idea. Sometimes companies use 60 month period / 24 month period etc. Also, what period does Zerodha use in calculation for beta Regards [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-154014) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 6, 2020 at 10:19 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-154065) We dont calculate beta. But yes, you can take the last 12 months data at a minimum. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-154065) 200. ![](https://secure.gravatar.com/avatar/4a68d11733d2cbb91695162f9e11080dae1d6213dd81cc622cdb75055ae939b3?s=32&d=identicon&r=g) Sabareesh SK says: [August 4, 2020 at 7:47 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153401) No sir. I don’t no how to increase the decimal points sir? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153401) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 4, 2020 at 8:13 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153406) Excel has a feature for that, request you to please check online for this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153406) 201. ![](https://secure.gravatar.com/avatar/4a68d11733d2cbb91695162f9e11080dae1d6213dd81cc622cdb75055ae939b3?s=32&d=identicon&r=g) Sabareesh SK says: [August 3, 2020 at 3:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153151) To find the estimated range over a period of time of any stock or index , we need daily standard deviation/volatility and Daily Average/Mean. In this I am able to calculate the daily S.D of nifty index but daily average of nifty index is showing 0% when I calculate with log daily returns sir. So I am unable to calculate that and I tried many times. So can you please tell how to calculate that daily average/mean or what is the daily average of nifty index sir. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153151) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 3, 2020 at 8:31 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153222) 0%? Did you try increasing the decimal points? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153222) 202. ![](https://secure.gravatar.com/avatar/4a68d11733d2cbb91695162f9e11080dae1d6213dd81cc622cdb75055ae939b3?s=32&d=identicon&r=g) Sabareesh SK says: [August 2, 2020 at 5:50 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-152842) Hello sir, First of all thanks for those wonderful content sir. After reading all I have a doubt. I am able to calculate the daily volatility and annualised volatility Of nifty index and got similar results with what they published in nse website. But I tried calculating daily average of nifty index for tooo many times but I couldn’t get the values it shows 0%. Can u please tell how to find that or if possible kindly share the daily average of nifty index alone. It will be helpful for many of us. Thanks in advance sir. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-152842) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 3, 2020 at 10:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153060) I think its good if the values match with NSE\\’s. But which average are you talking about? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-153060) 203. ![](https://secure.gravatar.com/avatar/ed87ae0f94ac40f305cd7118f3b3feda6e35f326677296b31d0260e273619443?s=32&d=identicon&r=g) M Aditya says: [July 20, 2020 at 8:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-148786) Hello Sir, For calculating Historical volatility, what is the minimum period to be taken in to consideration (Close prices). For example I tried 01-01-2019 to 17-07-2020 the value of 1 yr SD I got is 26.68%, where as when I considered 01-01-2016 to 17-07-2020 the value of SD is 18.6% but actual nifty spot Annualised volatility is 35.73 %. there is so much difference in the values, so how much data to be considered for calculating Annualised volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-148786) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 20, 2020 at 10:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-148822) You get different values for different time period. I\\’d suggest you stick to 1 or at the most 1.5yrs, this should be good enough. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-148822) 204. ![](https://secure.gravatar.com/avatar/0031ee92d0d30503b0776390565565ccd5c1ee7d613a28ca2c33eec4a812b782?s=32&d=identicon&r=g) rajesht says: [July 15, 2020 at 11:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-147436) What if the stock is split during the time period. Will the volatility calculation using the above method still holds true? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-147436) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 16, 2020 at 11:36 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-147553) Yes, it does. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-147553) 205. ![](https://secure.gravatar.com/avatar/4da99638c31a2f2ac52abf086edb985835be2b703e00c539ae2bcf3bc6dc38bb?s=32&d=identicon&r=g) Atrijit says: [July 12, 2020 at 2:08 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-146313) Hi Karthik, No I am taking ln\[today’s value/y’day value\] only. I had no idea about the other formula. After log method when I took average I got negative result. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-146313) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 12, 2020 at 7:40 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-146396) Ok, in that case, the stock has clearly trended down quite a bit. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-146396) 206. ![](https://secure.gravatar.com/avatar/4da99638c31a2f2ac52abf086edb985835be2b703e00c539ae2bcf3bc6dc38bb?s=32&d=identicon&r=g) Atrijit says: [July 10, 2020 at 10:58 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-145907) Hi Karthik, I did download you excel and copy pasted your formula only. But that gives me daily returns. I need to find out the Daily Average return. So how to do this? So I put Average(C3:C247) \[Column C contained all the daily return percentages\] and it got me -0.14%. Stock was in a downtrend in the last 1 year. But my question is how should I use this negative value to calculate the stock Range? a couple of chapters later you demonstrated how you got Nifty 16 Day Range. So with a negative value how to do that? Do I take a Mod value? And also if you can please answer my other question .Is there any readymade source of these data? Or you prepare this everytime manually? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-145907) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 11, 2020 at 7:37 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-146010) No, my question is for the daily return itself, how are you calculating the return? Is it the regular way i.e. \[today\\’s value/y\\’day value\]-1 or are you taking the log values i.e. ln\[today\\’s value/y\\’day value\]. I\\’d suggest you take the log method. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-146010) 207. ![](https://secure.gravatar.com/avatar/4da99638c31a2f2ac52abf086edb985835be2b703e00c539ae2bcf3bc6dc38bb?s=32&d=identicon&r=g) Atrijit says: [July 10, 2020 at 10:23 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-145717) Hi Karthik, I faced one problem while calculating the \\”Daily Average Return\\”. In one of your later chapters you demonstrated how I can calculate the range of a particular stock for the next n number of days using 1) Daily Average Return 2) Standard Deviation So I decided to download last 1 year data of ITC. I calculated daily return like you showed in this chapter. I calculated Standard Deviation similarly. Now when it comes to Daily average return I just used the AVG function on the entire column of daily average. The Average daily return came out to be negative! Now I am perplexed as in how to proceed. Can you suggest how to proceed now? On another note I found NSE website contains daily volatility data,but is there anywhere i can find daily Avg return and the daily SD(or 1SD,2SD) range data ready made. Or do you also download the excel everytime and manually calculate the same? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-145717) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 10, 2020 at 11:06 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-145735) Atrijit, did you use the simple return of log returns? I\\’d suggest you use log returns. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-145735) 208. ![](https://secure.gravatar.com/avatar/0b5ac75f5697caf2df78a3dced93e5281c2042952a611a125c8a64252ee91f6c?s=32&d=identicon&r=g) SOMAN RAJ says: [July 6, 2020 at 3:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-144451) @Karthik Rangappa : First of all I thank you very much. I have learnt a lot from Zerodha Varsity. The way everything is explained is so lucid. Could you make a video about the new nse website or could you provide some links if any. I need to know what the resources data free available, where we can find useful insights just like walk through of the site. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-144451) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 6, 2020 at 1:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-144535) Thanks, Soman. NSE\\’s website is an ocean of resources, takeaways too much bandwidth. Plus they keep upgrading the site, so will be a tough thing to do 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-144535) 209. ![](https://secure.gravatar.com/avatar/b6a5f3d60e6b7653e7f6e07e0402a1d999228ee814ffaa001119c24bdbbb9272?s=32&d=identicon&r=g) Roshan says: [July 3, 2020 at 10:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-143726) Hello sir, I cannot understand the logic behind multiplying one day volatility with square root of the timespan to get the volatility of that particular span and vice versa.please explain. PS:Thank you for the amazing content\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-143726) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 4, 2020 at 10:45 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-143836) Roshan, there is a mathematical derivation for that. Not sure if we should get into explaining that 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-143836) 210. ![](https://secure.gravatar.com/avatar/295f96b265a6dba6d93020584131be60c580169c2b4775c572061ad0f09a58ca?s=32&d=identicon&r=g) Shivam Puri says: [June 28, 2020 at 7:59 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-142216) very good content i have one doubt in excel , you considered 365 days for calculating annual volatility . but in the article , you considered 252 days can you please rectify ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-142216) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 28, 2020 at 8:15 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-142228) Hmm, 252 is the trading days, whereas 365 is the calendar number of days. So it is really up to you which convention to stick to. I\\’d prefer the trading number of days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-142228) 211. ![](https://secure.gravatar.com/avatar/5da5c86447fd707160405d370623fe16809923530ee0b373e219de4e8a52268d?s=32&d=identicon&r=g) Vipinn says: [June 20, 2020 at 1:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139913) I was able to work around the issue by shrinking the bin width. Rest of the calculations have also panned out effectively with respect to 1SD & 2SD. Thank you again for all your help and the study material. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139913) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 20, 2020 at 6:50 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139992) Super! Happy learning 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139992) 212. ![](https://secure.gravatar.com/avatar/5da5c86447fd707160405d370623fe16809923530ee0b373e219de4e8a52268d?s=32&d=identicon&r=g) Vipinn says: [June 19, 2020 at 12:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139593) I can try to increase the bin width which would reduce the bin array. I had two questions in this regard: 1. How important is the bin width formula i.e. (Max – Min)/50? If not very important, I can put a higher number for width to reduce the arrays. 2. Also I wanted to confirm that, through the frequency formula, what we get is the number of times a value is repeating in the range of one bin array to another i.e. If bin array = 13, 11, 9, 7….., through the frequency formula I would get how many times numbers ranging between 13 & 11, 11 & 9, 9 & 7….. are repeating in the bin array? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139593) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 19, 2020 at 7:07 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139684) 1\) The denominator bit of that formula is very flexible. Try shrinking the bin width, if you increase you may get more bins with 0 values. 2) That\\’s right, frequency gives us the frequency at which observation occurs. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139684) 213. ![](https://secure.gravatar.com/avatar/5da5c86447fd707160405d370623fe16809923530ee0b373e219de4e8a52268d?s=32&d=identicon&r=g) Vipinn says: [June 19, 2020 at 10:55 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139568) Thank you. I was able to execute the formula with your advice but there\\’s a separate issue with the result I get. Some numbers in my bin array that feature in the percentage returns are showing 0 frequency after the formula. how could I rectify this error? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139568) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 19, 2020 at 11:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139578) Hmm, that means there are no observations across these bins. Can you try reducing the number of bins? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139578) 214. ![](https://secure.gravatar.com/avatar/5da5c86447fd707160405d370623fe16809923530ee0b373e219de4e8a52268d?s=32&d=identicon&r=g) Vipinn says: [June 18, 2020 at 9:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139476) Hi Karthik, Thank you so much for the material that you upload for us learners. I had a query regarding the excel sheet that you uploaded. It calculates the daily returns of nifty with normal distribution. I have been able to find out the Max & Min percentage returns along with the Bin width value. I have also been able to create the bin array by adding the bin width to the Min percentage returns till i had the Max percentage returns. What I am stuck at now is how to find the frequency of the percentage returns through this bin array. When I use the frequency formula, the cell value keeps incrementing and I dont see that happening in the sheet you uploaded. Further, I have tried using the dollar signs to stop the incrementing from happening but it ends up giving a value of 1 for each bin array. What is the possible way to stop this from happening? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139476) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 18, 2020 at 10:45 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139507) Are you directly pressing enter? You need to press \\’Ctrl+shift+enter\\’, when using an array function on excel. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-139507) 215. ![](https://secure.gravatar.com/avatar/e5eb78cabe51c63b6fd23a49e547992186215df4190cee70bedf997c08c0d457?s=32&d=identicon&r=g) BISWESWAR GHOSH says: [June 10, 2020 at 12:25 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136861) Hi Sir. Perhaps you may like knowing that I am studying your articles on Volatility very deeply, so that I can master the subject. I refer to the example where you calculated conversion from Annual SD to Daily SD by dividing the Annual SD by SQRT(252) (perhaps 252 is the no. of trading days in a year). Step 2 then multiplying the daily SD with SQRT(NO. OF DAYS) for which no. of days the SD is required. Fine. I am reading a book titled \\”Mastering Short Strangles: Trading Analysis of Real Trade included\\” written by Pradip M. where the writer wrote: \\”Given the Realised Annual Volatility of 16.8% , we get 1SD movement of 4.73% for a period of 29 days. The calculation arrived as below: 1 SD for 1 day = 16.8/sqrt(365) = 0.87935219 and then 1 SD for 29 days = 0.87935219\*sqrt(29) = 4.735456466 …\\” Request your examination on this matter. Thanking you in advance for a reply. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136861) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 10, 2020 at 10:43 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136918) Thats right. When you want to convert daily vol to annual vol or any time frame, you multiply the daily vol by sqrt of time. However, if you want to calculate the daily from annual vol, then you divide it by sqrt of time. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136918) 216. ![](https://secure.gravatar.com/avatar/f270b569703ec96e8c8f87d88bfb4b9aca43d723599770fa293966f46b00ef90?s=32&d=identicon&r=g) Uday says: [June 8, 2020 at 7:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136466) Thanks. Amazing to see quick reply from you. Appreciated. BTW, I was so confused for FnO but the way you have explained entire stuff; i am excited to trade :). Thanks for nice theory. Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136466) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 8, 2020 at 10:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136517) Happy learning, Uday 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136517) 217. ![](https://secure.gravatar.com/avatar/f270b569703ec96e8c8f87d88bfb4b9aca43d723599770fa293966f46b00ef90?s=32&d=identicon&r=g) Uday says: [June 7, 2020 at 11:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136180) Hello during daily to annual volatility calculation, why time factor is considered as 252 and not 365? from your screenshot for Wipro, annual volatility is 25.5, 25.5/SQRT(365) = 1.34. which matches the daily volatility in the screenshot. Similarly from NSE website for INFY, daily volatility = 2.55, annual volatility = 48.77; calculation 48.77/SQRT(365) = 2.55, again matches. Can you help clarify pls? Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136180) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 8, 2020 at 11:16 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136347) I\\’ve considered the actual number of trading days, but I guess NSE has considered the total calendar days. Please do stick to NSE\\’s convention. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136347) 218. ![](https://secure.gravatar.com/avatar/29b1739c757e8165b8863eb6bb9210a14a74e401ae75750a42291163aa60aaa7?s=32&d=identicon&r=g) Hemakumar D says: [June 7, 2020 at 12:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136012) Hi! Karthick.. Thank you so much for the knowledge. I also have the same problem/doubt while calculating the volatility for longer period for the stocks which has fallen a lot Thanks & Regards Hemakumar D [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136012) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 7, 2020 at 3:16 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136057) Use log returns, that will help. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-136057) 219. ![](https://secure.gravatar.com/avatar/75dfc50f8c8a6ac31e08066274ba76dc01b2804b7c0fca452baaa63bb636a104?s=32&d=identicon&r=g) Mandar says: [May 30, 2020 at 5:50 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-133765) hi Karthik, If we select the daily closing data of any scrip for finding its std. dev. instead of getting its natural logarithm (LN), what isthe result? I know the answer will be wrong but still want to know the importance of LN. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-133765) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 30, 2020 at 7:42 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-133810) Stock prices can trend, but returns are normally distributed. Do check the chapter for an explanation. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-133810) 220. ![](https://secure.gravatar.com/avatar/43f6e5ebad823e188bfbfbea802714ebff93c0c15ca93325b0c907548d4e6187?s=32&d=identicon&r=g) Aniket says: [May 21, 2020 at 11:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-131094) Hey, i have gone through comments, i was able to figure it out, thank you\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-131094) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 22, 2020 at 10:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-131236) Happy trading\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-131236) 221. ![](https://secure.gravatar.com/avatar/43f6e5ebad823e188bfbfbea802714ebff93c0c15ca93325b0c907548d4e6187?s=32&d=identicon&r=g) Aniket says: [May 21, 2020 at 11:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-131092) Hello, I have a query regarding the relevance of volatility calculated by us and as available on NSE. So, I calculated the daily volatility and it comes out to be very different as given on NSE, please guide me if I have committed any mistake. \[img\]https://i.imgur.com/GuU5oBl.png\[/img\] The above date pertains to the period 22 may 2019 – 21 may 2020 \[img\]https://i.imgur.com/XOllZep.png\[/img\] However as per NSE, Volatility turns out to be very different. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-131092) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 22, 2020 at 10:06 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-131234) Yes, the vol as per NSE is to calculated keeping margins in perspective. We calculate keeping trading in perspective. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-131234) 222. ![](https://secure.gravatar.com/avatar/8704b4ee40ddb4044d8baa9474dd64a716213d0f9aee79f4b3c18d70f638ae99?s=32&d=identicon&r=g) Ragav says: [May 19, 2020 at 5:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130334) Sure, thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130334) 223. ![](https://secure.gravatar.com/avatar/1ea7f6a315cb92bb3cc0a5bca588ffe80178ce903adaab61506be7fe80a589d1?s=32&d=identicon&r=g) Manohar Nadkar says: [May 19, 2020 at 8:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130179) Thanks you very much Karthik for your reply…Good bless you and all traders. Manohar Nadkar [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130179) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 19, 2020 at 9:53 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130193) Happy trading\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130193) 224. ![](https://secure.gravatar.com/avatar/8704b4ee40ddb4044d8baa9474dd64a716213d0f9aee79f4b3c18d70f638ae99?s=32&d=identicon&r=g) Ragav says: [May 18, 2020 at 6:03 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130004) Thanks for the reply, I have another query . I did a Vol for ITC from 2019 May to April 2020, and daily returns were calculated on a log scale. I get a negative average of -0.20 / daily . So when converting to annual x 365 days it’s a – 74.05 % for 1 year. How do I work out the sd for these values ? 1\. Should is go for a longer period to calculate log returns, as the last 1 year ITC has been on a downward trend so returns are obviously in negative ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130004) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 18, 2020 at 9:04 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130055) 1\) This is the problem with -ve returns, happens when the stock has trended down for a long time. I\\’ll get back to you on this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-130055) 225. ![](https://secure.gravatar.com/avatar/1ea7f6a315cb92bb3cc0a5bca588ffe80178ce903adaab61506be7fe80a589d1?s=32&d=identicon&r=g) MANOHAR NADKAR says: [May 17, 2020 at 6:49 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129761) Hi, thanks for such nice e-book..very informative, if I want to caluclate weekly & monthly volatility then formula like this–wkly vol = daily volatility sqrt(5) & mothly=daily volatility sqrt(21) and i calculate 9 days vol. then 9days vol. =daily volatility sqrt(9) pls guide. Thanks a lot Manohar [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129761) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 17, 2020 at 7:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129790) Yes, that\\’s right. You have to multiply daily vol with SQRT of time. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129790) 226. ![](https://secure.gravatar.com/avatar/062ae1cba2bfb0f2bc3b5517beaba798d7d9bea687ee2f019f54cd82e52d9b33?s=32&d=identicon&r=g) Shreedhar says: [May 16, 2020 at 1:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129348) Sir , Which Version of R Software is recommended ? I am I Unable to Download Foptions into it . I want to get Volatility Smile , Volatility Cone using R . is there any Traning Centers who teach R from a scratch ? . [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129348) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 17, 2020 at 8:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129584) I\\’m not sure if I;m capable of answering that. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129584) 227. ![](https://secure.gravatar.com/avatar/8704b4ee40ddb4044d8baa9474dd64a716213d0f9aee79f4b3c18d70f638ae99?s=32&d=identicon&r=g) Ragav says: [May 15, 2020 at 6:42 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129157) I did a daily Vol calculation for HUL from May 2019 to April 2020, there seems to be a big deviation from what I calculated using excel vs the nse website . Daily Vol as per my calc is 2.7 vs Nse 3.11 which one should I go with ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129157) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 15, 2020 at 7:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129179) Yes, that is because of the way NSE calculates Vol. They do this keeping margins in perspective. To trade, you go with the technique described here. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-129179) 228. [How to Calculate Volatility - Blackwell Global](https://www.blackwellglobal.com/how-to-calculate-volatility/) says: [May 15, 2020 at 1:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128957) \[…\] https://zerodha.com/varsity/chapter/volatility-calculation-historical/ \[…\] [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128957) 229. ![](https://secure.gravatar.com/avatar/d5f1dab7cb3eb9e421d0726ff4352fae581e72aef9c445170bb3ad733319c22e?s=32&d=identicon&r=g) Anil Gupta says: [May 14, 2020 at 12:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128742) Range Calculation with 15 days SD 15 days Nifty upper 6.35% 9979.11 9998.45 lower -8.86% 8551.73 8587.49 Premium market lot SELL 10000 CE 73 75 5475 my first trade based on quantitative strategy learned by you, sir!! I was off the view that there are 68% chances nifty won\\’t cross 10000 in next 15 days!! today premium is down by 50% . [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128742) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 14, 2020 at 9:47 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128894) Good luck, Anil. Stay profitable 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128894) 230. ![](https://secure.gravatar.com/avatar/d5f1dab7cb3eb9e421d0726ff4352fae581e72aef9c445170bb3ad733319c22e?s=32&d=identicon&r=g) Anil Gupta says: [May 13, 2020 at 3:09 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128492) Thank you so much! Karthik Thoroughly enjoying the course. Your examples and explanations theory is amazing and very practical. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128492) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 13, 2020 at 8:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128573) Happy reading and trading 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128573) 231. ![](https://secure.gravatar.com/avatar/d5f1dab7cb3eb9e421d0726ff4352fae581e72aef9c445170bb3ad733319c22e?s=32&d=identicon&r=g) Anil Gupta says: [May 13, 2020 at 5:16 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128395) I got to know the calculation of NSE, though complex compare to what I have learned through this module. Both give a different lower and upper range which in turn gives the different prospective of index/stock range. which calculation to use to get a better range of index/stocks? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128395) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 13, 2020 at 8:51 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128430) Yeah, from my understanding, NSE\\’s volatility computation is wrt to computing the margins from a day to day perspective. They do this by assigning highest weightage wrt the most recent data. YOu as a trader need to give equal weightage to the last 10 o 15 day data, which is what happens when you compute volatility in the way described in the chapter. I\\’d suggest you stick to this method. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128430) 232. ![](https://secure.gravatar.com/avatar/93a4d6754ee8d40e28aadf89be7279d5d9f2d4f669c672543b8dfc3a8a4a5ca1?s=32&d=identicon&r=g) Varun Agrawal says: [May 13, 2020 at 1:55 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128360) Hello Karthik, I am not sure if you are aware of it, but https://in.tradingview.com/screener/ is a great tool. It has daily/weekly/monthly volatility column along with 100 other features 🙂 It has a button to add new columns. Click on it and then you can add volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128360) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 13, 2020 at 8:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128428) Yeah, TV is a great platform 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128428) 233. ![](https://secure.gravatar.com/avatar/d5f1dab7cb3eb9e421d0726ff4352fae581e72aef9c445170bb3ad733319c22e?s=32&d=identicon&r=g) Anil Gupta says: [May 11, 2020 at 11:44 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128070) how to check NSE calculation? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128070) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 12, 2020 at 8:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128107) I think the calculation technique is available on their website, you need to look for it. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128107) 234. ![](https://secure.gravatar.com/avatar/1f20cfcb10c030e16d36322c0b6c7c1bef2b697948c5444f4674d091cf56c5ee?s=32&d=identicon&r=g) Suraj says: [May 11, 2020 at 9:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128037) I agree with you. What bothers me is if I have to plot the hist. vol (nse calculation) vs the implied vol, and hist. vol (log returns) vs implied vol the gap between the 2 plots would be different and hence my assumption of IV might be wrong for the underlying. Right? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128037) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 11, 2020 at 10:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128048) Double-check your IV with Sebsibull\\’s IV chart – https://sensibull.com/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128048) 235. ![](https://secure.gravatar.com/avatar/1f20cfcb10c030e16d36322c0b6c7c1bef2b697948c5444f4674d091cf56c5ee?s=32&d=identicon&r=g) Suraj says: [May 11, 2020 at 1:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127991) This is how NSE calculated the daily and annualized volatility. Current Day Underlying Daily Volatility = Sqrt (0.94\* Previous Day Underlying Volatility ^2 + 0.06\* Underlying Log returns ^2) Annualized volatility = Current Day Underlying Daily Volatility \* sqrt(365) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127991) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 11, 2020 at 8:49 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128030) Yes, I\\’m aware of this. The thing is the NSE gives more weightage to previous day\\’s vol, this makes sense as they need to charge margins to accommodate for the present day vol. However as a trader, you need to give equal weightage to past volatility as well, that would be a better way to deal with this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-128030) 236. ![](https://secure.gravatar.com/avatar/d5f1dab7cb3eb9e421d0726ff4352fae581e72aef9c445170bb3ad733319c22e?s=32&d=identicon&r=g) Anil Gupta says: [May 10, 2020 at 9:39 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127469) Sir, I am trying to calculate the daily returns & annual returns of the NIFTY using STDEV formula but the result varies from nse website. from 9/5/19- to 8/5/20 by using your formula my result is as follow Daily Returns 1.962% Annual Retuns 31.15% but as per NSE website its 3.30 and 62.98. what could be the reason? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127469) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 11, 2020 at 10:09 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127928) Can you please check how NSE is calculating the returns? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127928) 237. ![](https://secure.gravatar.com/avatar/41672bc5a3dc0b26232d8ab264849aff969ffdbfbbdc9f29c00b1d6e5da6b5b9?s=32&d=identicon&r=g) Arun Donni says: [May 10, 2020 at 8:37 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127442) ok.. It will be really helpful if you can update your findings on the the comparision between two approaches as and when it is done. Also, if I want to calculate volatility of NIFTY index, can I use INDIA VIX as a alternative? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127442) 238. ![](https://secure.gravatar.com/avatar/41672bc5a3dc0b26232d8ab264849aff969ffdbfbbdc9f29c00b1d6e5da6b5b9?s=32&d=identicon&r=g) Arun Donni says: [May 10, 2020 at 1:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127348) With your calculation we get IV Rank as 100 for most of the days in this period. Has the change in formula done by nse considering this high volatility period we are in? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127348) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 10, 2020 at 7:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127422) IVs are generally very high of late, Arun. So this could be a legit change. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127422) 239. ![](https://secure.gravatar.com/avatar/41672bc5a3dc0b26232d8ab264849aff969ffdbfbbdc9f29c00b1d6e5da6b5b9?s=32&d=identicon&r=g) Arun Donni says: [May 10, 2020 at 12:03 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127302) Should we follow the steps followed by you to calculate annualized volatility or should we use the formula used by NSE? Which one is more relaible? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127302) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 10, 2020 at 12:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127324) I\\’d say mine, but the difference is too much 🙁 Doing a bit of research myself on this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-127324) 240. ![](https://secure.gravatar.com/avatar/42f0cdf4b0fd6bc7c3fab0786d1229c95c29206056383fb5191a950cc523ee69?s=32&d=identicon&r=g) Vaishnavi Sanjay says: [May 5, 2020 at 1:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-125831) Sir , i was trying to download the historical data of SBIN Since 2000 . there is a huge difference in what i get on NSE website and the Historical data of SBIN on Zerodha or Money Control . if MoneyControl or Zerodha confirm that SBIN has been trading between Rs.,20- Rs.,400 , But Data on NSE shows Well above it – it even Goes to \> 1000 even \>3000 . is something wrong that i am doing while selecting the data ? Money Control : https://www.moneycontrol.com/india/stockpricequote/banks-public-sector/statebankindia/SBI Zerodha : https://www.tradingview.com/x/G7qVzuNQ NSE : https://www.tradingview.com/x/G7qVzuNQ Between 500 – 1000 https://www.tradingview.com/x/G7qVzuNQ Between 1000- 3000 Please Clarify [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-125831) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 5, 2020 at 10:59 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-125980) It may not be adjusted for splits and bonus. I dont know about other sources, but I\\’d suggest you stick to Zerodha. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-125980) 241. ![](https://secure.gravatar.com/avatar/2f6d61a8722a9ddac8e739ad53e1d321a5e0ece899aaee9647bcded530dd6b3d?s=32&d=identicon&r=g) Pranay says: [April 28, 2020 at 11:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123883) Hi Kartik, If the Daily Volatility is available on NSE website. Would there be situations where in we would need to calculate this using the given formula. Thanks in Advance. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123883) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 29, 2020 at 9:58 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123960) Not required if it is readily available. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123960) 242. ![](https://secure.gravatar.com/avatar/643a141683540e8a465a9ac0f476e5b76c48a1b5d57cec2489df0f96e44f175d?s=32&d=identicon&r=g) Naman says: [April 27, 2020 at 9:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123540) Hi Karthik. (a). For calculating daily return, you used Return = LN (Ending Price / Beginning Price), instead of Return = (Ending Price / Beginning Price) – 1 (which is equally convenient for MS Excel perspective). Both these formulas will give some minute difference in values. I just wanted to ask if this simplification carries an underlying practical purpose, or is it just for the sake of simplicity. (b). At the beginning of the chapter, you laid out steps for calculating the standard deviation. There is a small typo here. In these steps, you forgot to divide the sum of squared deviations with the number of observations. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123540) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 27, 2020 at 10:13 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123553) 1\) This depends on the time frame you are looking at. For short term (like 6 months or so), you can use the simple arithmetic value, for more than that, use the log function. 2) Ah, isit? Let me check this.However, if you are using excel, you can use the =STDEV() function directly. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123553) 243. ![](https://secure.gravatar.com/avatar/51cb781644e938582e81b6a95e399779dddd880e69f3ddcc9cd9b1a77bef5494?s=32&d=identicon&r=g) sidd says: [April 25, 2020 at 8:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122890) thanx sir for this valuable knowlege sir but in 2015 wipro were trading at 250-300 in june how come there is a diffrence in future price i m new to share market [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122890) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 26, 2020 at 8:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123013) The futures price is slightly different from the spot price. Do check the module on futures pricing. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-123013) 244. ![](https://secure.gravatar.com/avatar/8c269ecef692d482e84327f6e73ef8213584bb676e6e1d747e9acbf1d4d429b7?s=32&d=identicon&r=g) praveen says: [April 24, 2020 at 11:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122385) Hi Kartheek, Here is the link – https://www1.nseindia.com/products/content/all\_daily\_reports.htm from above link we can download daily volatility.csv.. Please download the same we can see how NSE calculating the Volatility [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122385) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 24, 2020 at 11:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122392) Thanks, Praveen. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122392) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 24, 2020 at 11:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122394) Thanks, Praveen. Looking into this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122394) 245. ![](https://secure.gravatar.com/avatar/43bbf3c108f5a23965b472f086b0434b99aa936a021e43912ab488c6b91bbd4c?s=32&d=identicon&r=g) Abini says: [April 24, 2020 at 1:18 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122298) Hi, If its not possible to reveal that pdf here please let me know through my mail id. Thanks Abini [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122298) 246. ![](https://secure.gravatar.com/avatar/43bbf3c108f5a23965b472f086b0434b99aa936a021e43912ab488c6b91bbd4c?s=32&d=identicon&r=g) Abini Abraham says: [April 23, 2020 at 10:47 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122068) Hi Karthik, I am doing my project in Risk-Return Analysis of Futures and Options. So if I am using this formula that you provided it would be only accepted if I would be able to provide the source of this formula. Is there any books or journals from where you got this formula so that I could keep it as the reference? Regards Abini [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122068) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 23, 2020 at 7:13 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122186) Ah, dont remember. But these are generic formulas that everyone uses. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-122186) 247. ![](https://secure.gravatar.com/avatar/8c269ecef692d482e84327f6e73ef8213584bb676e6e1d747e9acbf1d4d429b7?s=32&d=identicon&r=g) Praveen says: [April 22, 2020 at 2:37 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-121763) Hi Kartheek, As per the NSE website the volatility calculation is Happening like this. 1. Log returns they calculating as LN(Today close/Previous close) or LN ( beginning price/ending price) 2. Daily Volatility calculating as Daily Volatility = Sqrt(0.94\*D\*D + 0.06\*C\*C) Note: D = Previous Day Underlying Volatility and C=Underlying Log Returns i.e. LN(Today close/Previous close) 3. For annual volatility they considering 365 days instead of 252 days. May be we need to update our tutorial or can u provide some more insights on above 3 points? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-121763) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 22, 2020 at 8:24 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-121849) Praveen, can you share the link for this? Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-121849) 248. ![](https://secure.gravatar.com/avatar/5d161c59d1e0f478c2e1439404bef36c031eaf5257074a43ec7c45b8a7608394?s=32&d=identicon&r=g) Akash says: [April 19, 2020 at 4:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120907) Sir In the MS Excel sheet you have provided in the last line of this chapter, there you have used 365 days to compute the annual volatility (which comes out 28.04%) but in example give above, it is 252 days. I think it should be the number of actual trading days i.e. 252 days. Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120907) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 20, 2020 at 10:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-121083) 252 is the right convention, Akash. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-121083) 249. ![](https://secure.gravatar.com/avatar/45984f83fff9d380a6b594089bfa137ea3c068dee238cca989aef54a8462cf78?s=32&d=identicon&r=g) Harsha says: [April 18, 2020 at 2:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120609) So, for a Stock which has negative returns LOG is best\! Anyhow, I\\’ll try both of them(LOG & LN) and see which one is more accurate for both short and long terms. Thank you\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120609) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 19, 2020 at 9:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120804) For long period data, its best to use log. Btw, both LN and Log are the same. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120804) 250. ![](https://secure.gravatar.com/avatar/45984f83fff9d380a6b594089bfa137ea3c068dee238cca989aef54a8462cf78?s=32&d=identicon&r=g) Harsha says: [April 18, 2020 at 10:16 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120536) But, In the WIPRO example you have used LN(Today\\’s close/Yesterday\\’s close). Now, we are using LOG(Today\\’s close/Yesterday\\’s close)? May I know why? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120536) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 18, 2020 at 11:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120561) On a short term basis, there is not much difference between regular returns and log returns. The difference occurs when you extrapolate for long term basis, this gets further magnified when the returns are -ve. Hence. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120561) 251. ![](https://secure.gravatar.com/avatar/45984f83fff9d380a6b594089bfa137ea3c068dee238cca989aef54a8462cf78?s=32&d=identicon&r=g) Harsha says: [April 17, 2020 at 1:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120176) Hello Karthik, I\\’ve downloaded 1 year data from NSE today i.e., on 17-04-2020. I\\’ve calculated Average, Standard deviation and Estimated range for AXISBANK as you\\’ve calculated in this module. Daily AVG = -0.25% ; Daily SD = 3% Yearly AVG = -64.22%; Yearly SD = 54% With the above values, the 1 year range would be Upper Range = -10.32% lower Range = -118.11% I know that these numbers doesn\\’t make any sense as they both turned out to be negative. My doubt is : 1. Do I need to remove negative sign in the average? 2. Or is there any other way to do these kind of calculations as the stock is beaten down to hell from 800 to 300 levels giving completely negative numbers during the calculation? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120176) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 17, 2020 at 5:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120389) Harsha, I\\’d suggest you calculate the stock returns on log basis, which log (today\\’s close/y\\’day close)….and not the regular % basis. Here are the brief steps to follow – 1\) Calculate the daily returns using a log basis 2) Use the daily return to calculate the daily avg and daily SD 3) Convert the daily values into yearly numbers 4) Calculate the range % using these yearly numbers 5) Convert the range % back to regular scale (remember you are dealing with log scale) 6) To convert the long % value to regular scale, multiply the range value with exponential [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-120389) 252. ![](https://secure.gravatar.com/avatar/e8b5186528dfb643725c8dcd61eef80218dec418877c2c6c12dde4095883a91b?s=32&d=identicon&r=g) Parag says: [April 14, 2020 at 11:56 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-119380) Sir, I calculated daily and annualized volatility of L\&T for last 1 year as per the above calculations and it came as 2.44% and 37.95%. But on NSE website the respective figures are 5% and 95.61%. It is nowhere near to my calculations. Can you please explain what can be the reason. Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-119380) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 14, 2020 at 12:44 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-119413) I really don\\’t know how NSE is calculating Volatility. Maybe you should check with them for an explanation 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-119413) 253. ![](https://secure.gravatar.com/avatar/81fe7389459d016d3bbc0731a2fc8aecc1dfbb32916ff255d578fb0517492a97?s=32&d=identicon&r=g) abhi says: [April 13, 2020 at 9:36 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-119070) @karthikrangappa i have calculated daily volatility and annual volatility of wipro, sail, and idea but when i cross-checked the answer on nse website it shows no similarity . I tried multiple times checking whether I did it wrong but the answer i got is totally has no close to the volatility available on nse website. which one should I consider? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-119070) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 13, 2020 at 11:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-119117) Go with NSE\\’s. Please read the comments above, Abhi. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-119117) 254. ![](https://secure.gravatar.com/avatar/dd7eff42f68ddf023b32f8ffb15253f7101500b8a3bd1197edb7a1ddcb54a610?s=32&d=identicon&r=g) Amit says: [April 12, 2020 at 12:49 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-118781) Hi Karthik , Can we use the same calculation to calculate the volatility for 15 minutes or 1 hour. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-118781) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 12, 2020 at 2:42 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-118846) Yup, you can. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-118846) 255. ![](https://secure.gravatar.com/avatar/83b0601bc7d5f2a450342dd7b73bca797328f64b3d0ff8931f3090279eabe976?s=32&d=identicon&r=g) RAHUL says: [April 7, 2020 at 6:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-117448) sir. thank you for the knowledge that you shared with us but according to your formula I tried to figure out the volatility of Reliance industries but the difference between the two(daily as well as annual volitily) that is which is calculated by me and that published by the NSE website has a lot of difference. So as asked by lot of people what could be the main problem in my calculations whether m I taking the wrong closing prices or it can be some other problem. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-117448) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 8, 2020 at 11:24 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-117637) I\\’m really not sure why the difference exists, Rahul. I\\’ve pointed out a few possibilities in earlier comments, maybe you can check and verify. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-117637) 256. ![](https://secure.gravatar.com/avatar/8c6cca69e3c91a48c0ebc1ea97ab14446c5adeb930271c7bf67f74fa7e991e69?s=32&d=identicon&r=g) chetan gavale says: [April 6, 2020 at 1:05 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-117074) hello sir, i am unable to find historical data of nifty .i followed the link and after entered symbol name nifty but its showing NO RECORDS, [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-117074) 257. ![](https://secure.gravatar.com/avatar/2115ce18c727cd100589394a79da3a23bdfcdbb9dada68a2c04da2c47320a229?s=32&d=identicon&r=g) sbghosh says: [April 3, 2020 at 5:00 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116287) Thanks a lot once again Mr. Karthik. I am kind of new to this zerodha system….how do I write to ChartIQ? any mailid? And by the way on a more theoretical level, SD is being calculated here to find out the volatility of the stock. Moving average is a concept in data analysis, used to smoothen the data. Now, if at all I am taking moving average of SD data don\\’t you think it is counter intuitive? I am trying to smoothen a parameter which is otherwise supposed to give me the \\”jerkiness\\” or volatility!!!! Anyway as suggested by you, I will write to ChartIQ if I know the mailid. It was pleasure discussing the concept with you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116287) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 4, 2020 at 12:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116475) I found their email ID on their website – [\[email protected\]](https://zerodha.com/cdn-cgi/l/email-protection) , https://www.chartiq.com/ Please do share your findings here. Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116475) 258. ![](https://secure.gravatar.com/avatar/2115ce18c727cd100589394a79da3a23bdfcdbb9dada68a2c04da2c47320a229?s=32&d=identicon&r=g) sbghosh says: [April 2, 2020 at 10:12 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116077) Thanks a lot for your response. But as you know, every answer creates a new question :). Let me put things in perspective. As explained in the study material/notes above, you first calculate ln(previous day\\’s return/today\\’s return) and on a rolling 14 days\\’ window you calculate the standard deviation. So today\\’s standard deviation value has been obtained from natural logarithm of return ratios of last 4 days. Correct? NOw what is the role of moving average? Which parameter is actually taken on a moving average basis? YOu have clarified most of my doubt, please clarify this one. Regards [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116077) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 3, 2020 at 11:47 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116219) Ok, I get it. I guess it\\’s calculating the SD of the 14-day simple moving average. I\\’d suggest you write to chartIQ directly for this 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116219) 259. ![](https://secure.gravatar.com/avatar/2115ce18c727cd100589394a79da3a23bdfcdbb9dada68a2c04da2c47320a229?s=32&d=identicon&r=g) sbghosh says: [April 2, 2020 at 9:04 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116063) Please explain in details. I am not talking about Bollinger band. Go to zerodha platform, select any stock or any index and from”studies” pull down menu select STD DEV. Now see the parameters…… as such they don\\’t have any role in regular STD DEV calculation. Even before coming to Zerodha/trading/share market I had some formal training in statistics…… I can not figure out the role of those parameters here……surely something is there which I am missing…..so please explain precisely what (14,2,MA) means. By the way thanks for noticing my question. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116063) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 3, 2020 at 11:33 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116213) It is the same – A 14-day standard deviation, calculated on the closing price, gives you the value of 2SD. This is plotted as a simple moving average. Also, if this is not clear, I\\’d suggest you speak to chartIQ directly to get clarity on this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116213) 260. ![](https://secure.gravatar.com/avatar/7ee78b0c592612c055752dfb712961543ef832081887edab94d448fb304527fa?s=32&d=identicon&r=g) Arjun says: [April 2, 2020 at 4:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116011) Hello Karthik, Can you please help me with the following doubts: A. On NSE\\’s website, annualised volatility is calculated as daily volatility\*sqrt(365). Shouldn\\’t it be AV= DV\*sqrt(252) ( Assuming there are 252 trading sessions in a year) B. As per NSE\\’s website, Infy AV as on 02.04.2020 is 97.21. Does it mean that there is 68% probability that infosys price may move from current spot +- 97.21% in a one year time frame? C. IV is always overestimated and options premium accounts for the same. Is there a source that can give an estimate of about how much is it overestimated by making a comparison with HV? D. Is IV mentioned in option chains on Zerodha Kite daily volatility? Also, does IV changes with option expiry for the same contract? For ex 8500 Nifty CE with current month and mid month expiry? Thank you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116011) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 3, 2020 at 11:23 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116208) A. Ideally yes, but some stick to 365. Depends on the time convention B. Yup. Its not a % though C. You can try Sensibull D. Yes, IVs do change [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-116208) 261. ![](https://secure.gravatar.com/avatar/7b359b94b9556e0713ee876327e48c7ad1076c7f9e70d12b2fbf9d1ec9f2f770?s=32&d=identicon&r=g) Avinash says: [April 2, 2020 at 9:33 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115912) Firstly, big thanks for the great modules you have created for beginners. I have quite a basic query. In the example, i assume that you have used data of 11 trading days to calculate daily volatility. As annual volatility is calculated by multiplying daily volatility by square root of 252, how does one calculate 10 day historical volatility? Is it by multiplying daily volatility by square root of 10. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115912) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 2, 2020 at 1:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115978) Yes, thats right, multiply the daily vol by sqrt of time. Time can be 10 days or 252 for annualised value. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115978) 262. ![](https://secure.gravatar.com/avatar/2115ce18c727cd100589394a79da3a23bdfcdbb9dada68a2c04da2c47320a229?s=32&d=identicon&r=g) sbghosh says: [March 30, 2020 at 8:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115438) Please explain in details. I am not talking about Bollinger band. Go to zerodha platform select any stock or any index and from\\”studies\\” pull down menu select STD DEV. Now see the parameters…… as such they dont have any role in regular STD DEV calculation. Even before coming to Zerodha/trading/share market I had some formal training in statistics…… I can not figure out the role of those parameters here……surely something is there which I am missing…..so explain precisely what (14,2,MA) means. By the way thanks for noticing my question. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115438) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 31, 2020 at 11:55 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115590) 14 = Period over which the STDEV is calculated. You can change this to whichever period you want 2 = The number of STDEV, you can change this to 1 or 3 SMA = For simple moving avg. YOu can change this to EMA as well. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115590) 263. ![](https://secure.gravatar.com/avatar/2115ce18c727cd100589394a79da3a23bdfcdbb9dada68a2c04da2c47320a229?s=32&d=identicon&r=g) sbghosh says: [March 29, 2020 at 1:21 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115127) In Zerodha trading platform when one selects STD DEV as one of the oscillators, the accompanying parameters by default are period (14), standard deviation (2) and moving average (simple)……. completely confused, how these parameters come into picture, what role they have, as std dev calculatin shown here (in zerodha varsity and same with standard test books also) such parameters have nothing to do with std dev calculations….. please tell me what am i missing. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115127) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 30, 2020 at 11:25 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115308) YOu must be talking about the Bollinger band or something similar. These are the core parameters which make up the STDEV indicator. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-115308) 264. [Options Theory for Professional Trading – EC LEARN VARSITY](http://mantissystems.com/dev2/eclend_blog/2020/03/18/options-theory-for-professional-trading/) says: [March 18, 2020 at 5:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112579) \[…\] 16. Volatility Calculation (Historical) \[…\] [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112579) 265. ![](https://secure.gravatar.com/avatar/27870a1d9a5d54be953fcd5f44f4a04ee05be69b7782dde6462d5b3d3419d149?s=32&d=identicon&r=g) Sachin says: [March 18, 2020 at 1:47 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112500) Thanks (as usual) for your valuable time and response. I think I\\’d tried both 252 and 365 numbers, no luck. Spot wasnt used for calculation, let me check out with it. Regards\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112500) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 19, 2020 at 8:51 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112871) Good luck, Sachin. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112871) 266. ![](https://secure.gravatar.com/avatar/27870a1d9a5d54be953fcd5f44f4a04ee05be69b7782dde6462d5b3d3419d149?s=32&d=identicon&r=g) Sachin says: [March 17, 2020 at 6:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112361) Hi Karthik, You are doing great job of not only educating, but also answering queries patiently. Hats off to you. Just sharing my observation. Calculated volatility of Nifty future (based on future price and not spot price) as per method mentioned in this write up. Getting volatility as 1.27%, while NSE is showing 3.34%. No where close. In the Comments section of this page, I\\’ve seen many other users experienced such mis-matches for whichever equity/instrument they cross-checked. I tried the method of NSE\\’s volatility calculation (it is mentioned in the daily volatility download report from NSE site), but using that also I\\’m not able to come close to 3.34% volatility. In case you know reason behind this difference, please share. Regards, -Sachin [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112361) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 18, 2020 at 11:15 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112475) Sachin, I\\’d suggest you calculate the Volatility for both Fut and the spot, across both 252 and 365 days. Also ensure the time series matches, ensure your data is also clean. Volatility is a simple formula, it should not show up so much difference 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-112475) 267. ![](https://secure.gravatar.com/avatar/cf6d51220c0809d9aa046333abf9d901cd24d6d9feaf8294f9d18c0f0dfac996?s=32&d=identicon&r=g) Paramjit Singh says: [March 3, 2020 at 12:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-109876) To calculate annual volatility from daily volatility you have used time as 252 days; whereas in the excel sheet (the one we can download from the link given by you) you have used it as 365. Which one is correct? Similarly for weekly volatility, should we use time as 5 days or 7 days? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-109876) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 4, 2020 at 11:32 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-110047) I\\’d suggest you use 252 / 5 — represents the actual number of trading days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-110047) 268. ![](https://secure.gravatar.com/avatar/e8cd1013f59cd8ccb8aa9bfb5d6edb357788fed88aa7a706b6962d3605554fb2?s=32&d=identicon&r=g) Arun Kumar says: [February 6, 2020 at 10:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-105334) Hi, From the historical data for Wipro in above sheet, the close price is almost above 500. But, when I had back check using Zerodha graphs, the equity price of Wipro never went above 500. instead it is trading between 200 350. May I know why there is a difference? While downloading historical data, which series should I consider (like EQ or All)? Regards, Arun [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-105334) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 6, 2020 at 12:23 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-105360) Arun, you need to look at EQ series and I think the difference is because of this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-105360) 269. ![](https://secure.gravatar.com/avatar/ded5457a2347e2725ef6f4277e50e54aec0656e13e48c660eeeee03def221b08?s=32&d=identicon&r=g) Rahul Mishra says: [February 3, 2020 at 2:59 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-104769) Sir, In this chapter, you have demonstrated the calculation of volatility using past one year data. I have some queries: 1) What will be the effect if we calculate volatility using lesser data (say 15 days, 30 days, 60 days, etc.) ? Will it be reliable ? 2) What will be the effect if we calculate volatility using larger data (say 3 years, 5 years, 10 years, etc.) ? Will it be reliable ? Regards, Rahul Mishra [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-104769) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 4, 2020 at 11:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-104938) 1\) Nothing wrong, especially if you have a short term trading horizon (1 or 2 days) 2) I\\’m not sure about the effectiveness of this. Intuitively, this may not make sense as most of these strategies are designed for short term trading. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-104938) 270. ![](https://secure.gravatar.com/avatar/9340c84816ce7068c7e996949eae28c2788b5e5cc5bd33488f40118fcc8d861b?s=32&d=identicon&r=g) Harsh says: [January 4, 2020 at 8:47 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-100649) Nice Explanation. Thank you. Could you please let me know from where and how we get the 52wk High and 52wk Low of Historical volatility ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-100649) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 5, 2020 at 10:06 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-100666) Hmm, maybe you should check with Sensibull for this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-100666) 271. ![](https://secure.gravatar.com/avatar/9619b83577a07b57159260b294fa5bd546cee91286e8988abed95f38d31c1ddb?s=32&d=identicon&r=g) Prateek says: [November 25, 2019 at 7:58 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-95527) Sir, I want to create a positive and negative range using the volatility of any given stock, would you be kind enough to help me out. Doubts – 1. Can I use the LTP or closing price of previous day or should I use average price (traded value/trade qty?) 2. How to calculate the upper (positive) range and negative (downside) range I have already explored the volatility report and figured out the daily volatility figures that\\’s available there, however not sure about how to use them all together to have my top and bottom ranges that stock will normally range in 68% of times. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-95527) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 26, 2019 at 2:42 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-95632) 1\) I\\’d suggest you use the close prices 2) You can use the the same volatility function and the standard deviation approch, Prateek [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-95632) 272. ![](https://secure.gravatar.com/avatar/d26826ebc12a05b36b907ceef6d43c66e0a7219a5691a995c4be03fd85121b79?s=32&d=identicon&r=g) Vishal says: [November 4, 2019 at 10:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-92895) Karthik thank you for all your efforts in making difficult things so easy to understand. I have few questions and please excuse me if i ask some stupid ones. Thank you in advance. 1\. The Implied Volatility that NSE India website provides in its Option Chain is that IV in percentages? 2\. Kindly help me in calculating IV with a demo example? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-92895) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 5, 2019 at 12:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-92957) 1\) Yes, its in % 2) Estimating IV is a complex task 🙂 However, historical volatility is fairly easy as explained in this chapter. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-92957) 273. ![](https://secure.gravatar.com/avatar/398024fed74a9c7f586b19c7b54d36672aa97b82c9062d47a0a68ad894e8aca0?s=32&d=identicon&r=g) Ankit Dubey says: [October 3, 2019 at 12:24 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-89533) yes…i am using data as mentioned on nse website. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-89533) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 4, 2019 at 11:40 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-89636) Hmm, but make sure the data is cleaned up for corporate actions, even if the data is from NSE. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-89636) 274. ![](https://secure.gravatar.com/avatar/398024fed74a9c7f586b19c7b54d36672aa97b82c9062d47a0a68ad894e8aca0?s=32&d=identicon&r=g) Ankit Dubey says: [September 30, 2019 at 9:58 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-89287) Dear kartik, it was a beautiful journey with the modules and the kind of thorough knowledge of greeks and their impact on options..it really changed my way of trading options..but i have some doubt on calculation of volatility with the formulas u have given in the module..when i apply the same formula on wipro as u ahve mentioned in module it gives exact figure..but when i apply same formula on other stocks there is a huge differnece between my calculations and the one provided on nse website..plese help me with that. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-89287) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 1, 2019 at 3:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-89325) Hmm, I guess the problem could be with the data points. Are you sure you are looking at clean data? Cleaned for bonus and splits? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-89325) 275. ![](https://secure.gravatar.com/avatar/0bcbb86168d5b0c758c20a39bc6ba4053280b8a094872a1253c6e3fd341ccca3?s=32&d=identicon&r=g) Subhra Halder says: [September 26, 2019 at 12:05 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-88833) Dear Sir, I calculated the same using your excel sheet for WIPRO (tenure 26/9/18 to 25/9/19) daily volatility is coming around 2.3% and annual volatility is approx 44 %. Then I checked the data on NSE site which is showing Daily Volatility 1.36% & Annualised Volatility 26.03%. Why this result is not matching?? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-88833) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 27, 2019 at 11:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-88931) Hmm, are you sure you are using the same time period? Also, make sure your data is clean for bonus and splits. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-88931) 276. ![](https://secure.gravatar.com/avatar/f847d39451e58cd7cee3f3545f55a7c84586512663ee1d907854d1fe1b6457e9?s=32&d=identicon&r=g) ajit mohanty says: [September 9, 2019 at 12:04 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-86997) if i buy an usdinr option at price 0.0025 and the next day it shows the ltp at 0.0000 (-100%) then what happens to the contract do it get square off before expiry? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-86997) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 9, 2019 at 12:12 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-87000) It will expire worthless unless a major move in your direction happens and the option premium picks up value. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-87000) 277. ![](https://secure.gravatar.com/avatar/6b91d838b8fa537004cabeeb6a27b67f3ad5451dadf6ec5730fe18f56a45bcd1?s=32&d=identicon&r=g) NILESH says: [August 24, 2019 at 8:54 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-85525) SIR, HOW TO CALCULATE MEAN OF DAILY RETURNS? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-85525) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 25, 2019 at 11:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-85563) Nilesh, just run an average function the daily return time series. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-85563) 278. ![](https://secure.gravatar.com/avatar/102cdb12b154789f7d7af6f3cc3a07ccf8760fce5dc92af67bd209c2b5b6d706?s=32&d=identicon&r=g) HEMENDRA says: [August 21, 2019 at 7:19 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-85322) Hi, Why you take 365 as no of days to calculate annual volatility/standard deviation because there is roughly 242 days in a year when stock market is open as we can see in excel sheet where you calculate volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-85322) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 22, 2019 at 2:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-85358) 242 is the right number, Hemendra. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-85358) 279. ![](https://secure.gravatar.com/avatar/5a0af1a9c2c190aca3d134e9233ea696bb4519d58fc6d52506423c6d55047c64?s=32&d=identicon&r=g) vidit d says: [August 12, 2019 at 2:24 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-84536) If annualized volatility is provided on NSE site,do i need to calculate on excel too? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-84536) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 13, 2019 at 11:08 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-84594) Nope, you can use the same. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-84594) 280. ![](https://secure.gravatar.com/avatar/2808b1adb7e878fcb83c06bafddc440156d805d711726a782850646e91a77f7d?s=32&d=identicon&r=g) Mayank Jain says: [August 8, 2019 at 1:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-84159) sir, just like u explained the way to calculate annualized volatility, out of daily data. in similar way, how can i calculate annualized volatility out of intraday data? for say, at 10:30 AM, i want to see the annualized volatility (of underlying) of nifty, based on 60 ticks of data (60 minute). [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-84159) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 9, 2019 at 11:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-84223) Intraday volatility is a little difficult to extrapolate. Even if you do, wont be too accurate. I\\’d suggest you dont do this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-84223) 281. ![](https://secure.gravatar.com/avatar/af7239bde7495e191107a8e3f585b469318dd91151c90b5501d657234ebf150d?s=32&d=identicon&r=g) Baskaran Dhanalakshmi says: [July 28, 2019 at 7:31 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-83360) Sir/Madam I am trading in Bank option for past 2 months. I am beginner in trading. I have lost big money in some trading. I am trading with out SL & Target. Is it possible put SL & Target in Bank option trading. If it is possible please send link to the above mail. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-83360) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 28, 2019 at 8:49 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-83363) Yes, you can. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-83363) 282. ![](https://secure.gravatar.com/avatar/89fe04af128e4e3cfad6bc4472c9a8204abf3b9b1f2c3c0adc258f15e2e36b81?s=32&d=identicon&r=g) Harsh Singh says: [July 17, 2019 at 7:54 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82802) Very much grateful for your kind reply Karthikji. I got it. It\\’s my silly mistakes to have not identified that i must be multiplying or divide with Sq root of time in any no. of days we desired that we learned in this chp. But anyway this is what opinion of wisdom is all about!\! Thank u again & have a great evening 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82802) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 18, 2019 at 6:08 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82832) Hahah, don\\’t worry about that. Happy reading\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82832) 283. ![](https://secure.gravatar.com/avatar/89fe04af128e4e3cfad6bc4472c9a8204abf3b9b1f2c3c0adc258f15e2e36b81?s=32&d=identicon&r=g) Harsh Singh says: [July 17, 2019 at 11:04 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82755) Good morning Karthikji Ah sure here I got it regarding clarity on annualised volatility. 1)But only one doubt is in volatility smile concept sections u\\’d mentioned that \\”Volatility is least at ATM strikes & increases as further we go away to ITM & OTM side\\” So naturally ATM volatility will be at support or at lower side compared to annualised one ? Kindly correct me here in this situation 2)Whether we must compare monthly or weekly options ATM with annualised volatility? Need ur opinion 🙂 Your courtesy, thanking you so much 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82755) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 17, 2019 at 4:49 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82786) 1\) No, it is difficult to correlate this. Cannot really say that the ITM/OTMs would act as support as the volatility is different at these strikes 2) You can always convert volatility in the time frame you like by either multiplying it with Sqrt of time or dividing it (based on your requirement) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82786) 284. ![](https://secure.gravatar.com/avatar/89fe04af128e4e3cfad6bc4472c9a8204abf3b9b1f2c3c0adc258f15e2e36b81?s=32&d=identicon&r=g) Harsh Singh says: [July 16, 2019 at 9:45 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82687) Good morning Karthikji With ref to above mentioned questions rply… Yes definitely reading & understanding isn\\’t one time affair or thing. One need to polish himself/herself in visiting basic to advance time & again. So keep on reading & enhancing myself with writing imp notes too. We\\’re enough fortunate that u\\’d authored & mentored us 🙂 》Yeah regarding one of last doubt here, I mean can we compare annualised volatility & current IV for rough comparison. For eg. Nifty annualised volatility is 16 & current IV of say Nifty 11650CE strike is 8. So can we design spread trade with this rough comparison in stocks/index. Although I\\’d huge respect for above annualised volatility calculations work that I still do but I\\’m saying out of my idea if this rough analysis between annualised & current IV works too ?? Pls correct me with ur opinion Thank you 😊 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82687) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 16, 2019 at 11:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82695) Yes, you can compare the annualized volatility with current IV, but make sure you are comparing it with ATM strikes (which has maximum liquidity), and not OTM or ITM strike. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82695) 285. ![](https://secure.gravatar.com/avatar/89fe04af128e4e3cfad6bc4472c9a8204abf3b9b1f2c3c0adc258f15e2e36b81?s=32&d=identicon&r=g) Harsh Singh says: [July 14, 2019 at 8:51 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82613) Good evening Karthikji, Although I\\’ve read most of your modules long back around 2 yrs ago but I kept on visiting & revising varsity esp options, technical & fundamental analysis so have to ask questions accordingly in comment sections each time doubt arises… Although u\\’d made volatility understanding as simpler with your fabulous writing as walk in a park 🙂 In this particular Chp I understood fully the ground work for historical data works & I do it on excel too. My questions is 1)Since the Chp heading is calculations for \\’Historical Volatility\\’. But at the end of chp there\\’s annualised volatility estimation or daily volatility but historical volatility is not visible anywhere ?? Is annualised volatility & historical volatility can be treated roughly equal as an average over long time ??? 2) where to find out historical volatility reliably ? ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82613) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 15, 2019 at 11:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82633) I\\’m glad you continue to like reading Varsity 🙂 1\) Historical volatility is the base for calculating the annualized volatility. The bulk of the chapter is focused on calculating historical volatility. 2) Historical volatility cannot go wrong as it is a 2 step calculation. I\\’d suggest you do this as described in the chapter [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82633) 286. ![](https://secure.gravatar.com/avatar/8ef1df11d6e2cc778cb6338b8ec6cdcdad2661a34e6ebc5033996f16d6cb3002?s=32&d=identicon&r=g) Lalit says: [July 13, 2019 at 10:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82552) Time = 365 Annual Volatility = Daily Volatility% \* SQRT ( ? ) \*\* ? = Time OR Todal Trade days which i choose ? \*\* [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82552) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 14, 2019 at 8:45 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82579) T= Time, which is the total traded days. So you can take 252. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82579) 287. ![](https://secure.gravatar.com/avatar/8ef1df11d6e2cc778cb6338b8ec6cdcdad2661a34e6ebc5033996f16d6cb3002?s=32&d=identicon&r=g) lalit says: [July 12, 2019 at 11:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82505) THANKS FOR THIS USEFUL INFORMATION \! \* \* \* \* Q. Daily Volatility = 1.47% Time = 365 Annual Volatility = 1.47% \* SQRT (242) \[ TIME = total trade days – 1st day \] = 22.40 % is right or wrong ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82505) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 12, 2019 at 11:58 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82519) Thats right, Lalit. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-82519) 288. ![](https://secure.gravatar.com/avatar/7687c08e90ddfa6f28feb30891ae1bedc9e45f13ac7ed7f73f1d944ee447a523?s=32&d=identicon&r=g) Ram says: [June 26, 2019 at 6:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81873) Isn\\’t there any method to use a common formula for all the data? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81873) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 27, 2019 at 11:09 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81904) No Ram, unfortunately, that is not available 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81904) 289. ![](https://secure.gravatar.com/avatar/7687c08e90ddfa6f28feb30891ae1bedc9e45f13ac7ed7f73f1d944ee447a523?s=32&d=identicon&r=g) Ram says: [June 25, 2019 at 6:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81819) Hey Karthik, While calculating the daily returns in Excel did you manually type all the formulas like LN(B3:B2) and LN(B4:B5)? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81819) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 26, 2019 at 10:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81842) Yes, I would imagine so. Why? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81842) 290. ![](https://secure.gravatar.com/avatar/d6308dc446966316500d6bb15a7cc1c0a21cb9216835c0ab778661bb2706b275?s=32&d=identicon&r=g) Infamous says: [June 6, 2019 at 2:50 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81130) A chapter for delta hedging.? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81130) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 7, 2019 at 11:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81155) Will try and put that up sometime soon. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81155) - ![](https://secure.gravatar.com/avatar/d6308dc446966316500d6bb15a7cc1c0a21cb9216835c0ab778661bb2706b275?s=32&d=identicon&r=g) Infamous says: [June 7, 2019 at 2:55 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81170) Respected Sir, appreciate the level of hardwork for extremely simplifying the concept of OPTIONS. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81170) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 8, 2019 at 10:18 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81194) Thanks for the kind words! Happy reading 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-81194) 291. ![](https://secure.gravatar.com/avatar/f0aeaebbbb6ad8cbcb13d346abb777f530570f0784a341bfe6e3923374703b08?s=32&d=identicon&r=g) sahil swaroop says: [May 31, 2019 at 9:59 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80947) sir, I couldn\\’t get the intuition behind multiplying SQRT(365) to convert the daily volatility into annualized and dividing SQRT of 365 with the annualized volatility to get daily volatility can u pls throw some light how are they working [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80947) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 1, 2019 at 10:54 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80962) Volatility and time have that inverse relationship, Sahil. It has a complex mathematical explanation, let me check for a link which explains this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80962) 292. ![](https://secure.gravatar.com/avatar/79dcc5bc962b66ca1f95732e95bcd459ab1a7f38aad777ca5746b174ec454383?s=32&d=identicon&r=g) VISHANT says: [May 13, 2019 at 1:22 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80163) in this module we learn how to calacute any particuler stock volatility , but how to find most volatile stock on NSE\&BSE have more then 5000 stock listed. i hope you understand my qustion / [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80163) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 13, 2019 at 2:53 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80178) Vishant, the only way to do this is to find the volatility of each stock and make the assessment. It is best if you can program this and track the volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80178) - ![](https://secure.gravatar.com/avatar/79dcc5bc962b66ca1f95732e95bcd459ab1a7f38aad777ca5746b174ec454383?s=32&d=identicon&r=g) VISHANT says: [May 14, 2019 at 7:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80235) ok. by the way we can downlode data of high beta stock on NSE stie right ? and thanks for this type of study matirial its easy and very usefull. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80235) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 15, 2019 at 6:02 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80246) I\\’m not sure if NSE gives you this list, you may have to calculate this based on the historical data. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-80246) 293. ![](https://secure.gravatar.com/avatar/933f923521d3f604d3e3d35ecb87285cdcab91beecaa6530862f10bcddf86858?s=32&d=identicon&r=g) LOKESH says: [May 3, 2019 at 7:48 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79704) sir, while downloading security wise data(equities) from nse site, when we put \\”ALL\\”, DATA OF SEGMENTS LIKE EQ, E1, BE is also downloading. so even if we downloading for 365 days, it is showing data for more than 400 days. my doubt is, to draw volatility should i exclude all other data and take only equity?? (for this i select only EQ and press get data). or should i definitely need all segments data and compulsorily check \\”ALL\\” and then press get data? please clarify sir. THANK YOU [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79704) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 3, 2019 at 11:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79715) No, you need to download only EQ segment. The rest is not really needed. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79715) - ![](https://secure.gravatar.com/avatar/933f923521d3f604d3e3d35ecb87285cdcab91beecaa6530862f10bcddf86858?s=32&d=identicon&r=g) lokesh says: [May 3, 2019 at 2:23 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79724) thanks for the quick reply sir. am really thankful to you sir for providing zerodha varsity. i read all chapters 1 yr back when i just started trading. and i come here to refer some topics when i need some clarification. everytime i revisit , though i re read same topic, i get to learn a new thing. i think gaining real time experience and brushing basics again and again really helps a lot (as we tend to overlook some basic things in the speed of the market). your work, the way you put the content really amazes me becauses u stressed areas where ppl go wrong or what ppl really need. THANK YOU SO MUCH. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79724) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 4, 2019 at 10:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79753) Thanks for the kind words, Lokesh. Yes, re reading the same thing after you\\’ve gained some experience is an amazing way to unlearn and learn again. Good luck to you, Lokesh\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79753) 294. ![](https://secure.gravatar.com/avatar/cc60a52287f0c81a256cff7ead206d5a31adcaf72f5c40006e2643f61859f018?s=32&d=identicon&r=g) Neehar says: [April 20, 2019 at 9:29 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79056) Hi Karthik, Let me start by appreciating your team\\’s effort in providing an extremely valuable resource like varsity to all the novice traders like me. This comment is regarding one of your posts on the \\’wall\\’ of varsity app regarding the relationship between \\’India Vix\\’ and IV of the options. for the context of other readers, they can read the \\’opinion\\’ in \\’ The Wall\\’ of \\’vasrity\\’ mobile app by the name \\’ Implied volatility and the associated mystery!\\’. last week, I have observed hat the India vix has touched 20s but the IVs ATM options of April series is around 15. I thought that IV will rise along with the India Vix and I also have a directional view that Nifty will move up in the coming week. since I have a directional view and also on the view of IV but not sure of the timing which it will take place, I bought the ATM options .After bought the CE the IV dropped further to 13 and I had to book a loss. your article has cleared many of my doubts but here is my doubt sir, In my understanding when India Vix is high, Nifty fluctuates violently and accordingly the deltas of the ATM options also should fluctuate violently and so the premiums of the options, resulting in higher IVs of ATM options But that did not happen in this case. According to your article, India Vix is estimated from the option IVs but are\\’nt option IVs a function of India Vix also resulting in a cyclic relationship? how to analyze the effect of India Vix on the options? Please correct my understanding. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79056) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 20, 2019 at 1:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79080) I\\’m glad to see this, now I know there I at least 1 person looking at the wall apart from me 🙂 India ViX is derived from the IVs of the ATM calls and put. IVs are independent and is derived from the price, and this gets fed as an input to compute the ViX, so there is no cyclical relationship. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79080) - ![](https://secure.gravatar.com/avatar/cc60a52287f0c81a256cff7ead206d5a31adcaf72f5c40006e2643f61859f018?s=32&d=identicon&r=g) Neehar says: [April 20, 2019 at 11:54 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79096) Thanks for your clarification. \\’The Wall\\’ indeed is a very good initiative. My first task everyday morning is to check it . Keep up the good work. I am waiting for all the modules to be updated in the mobile app. Also it would be helpful if the comments are also enabled. Since I could not ask the doubt there, I thought this is the most apt chapter and posted my doubt here. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79096) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 21, 2019 at 3:05 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79114) Neehar, I\\’m glad you liked it. I hope we will have a notification for the Wall soon 🙂 We are also updating all the modules soon. Working on it. Unfortunately, we can\\’t have comments on the app, it will be a huge challenge to manage. But we are exploring alternatives. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-79114) 295. ![](https://secure.gravatar.com/avatar/2505fa1059e78cc79e4e9354d737f799ec6a016c536b39126a65c4ca6b398a44?s=32&d=identicon&r=g) Ajay says: [April 7, 2019 at 3:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-78534) I tried the formula to calculate volatility with WIPRO and INFOSYS I get totally different values compared tot the NSE values what am I doing wrong here For WIPRO I downloaded the data from 9-Apr-18 to 5-Apr-19 and the values I get are Daily volatility=0.022771937 and annual volatility = 0.435057254 but in NSE site as per today I get these values Daily Volatility=1.56 ,Annualised Volatility=29.74 now for the INFOSYS I get these values of data from 6-Apr-18 to 5-Apr-19 Daily Volatility =0.044771493 Annual volatility = 0.855358176 but the NSE website gives these values Daily Volatility=1.18 ,Annualised Volatility=22.50 And What should I do calculate the Daily Average Return should I just take mean of the Daily returns which I calculated in the sheets Sorry for the long post 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-78534) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 8, 2019 at 12:00 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-78564) Ajay, are you converting the daily vol to annual volatility properly? You need to multiply with the square root of 252. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-78564) - ![](https://secure.gravatar.com/avatar/2505fa1059e78cc79e4e9354d737f799ec6a016c536b39126a65c4ca6b398a44?s=32&d=identicon&r=g) Ajay says: [April 9, 2019 at 1:05 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-78619) Karthik in the example spreadsheet that you gave it has the formula of sqrt(365) and now if I use sqrt(252) I get the value around 36.15% the Nse site gives 29.74 % is this variance considerable ? Or is it common to have such difference [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-78619) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 10, 2019 at 11:04 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-78651) I think its ok, you can consider average volatility of around 30-34%. You won\\’t be off by a large margin here. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-78651) 296. ![](https://secure.gravatar.com/avatar/2c88845caae3341f040ad92f65a6d03c2946b725aaf88c256bd8f6784699bbc7?s=32&d=identicon&r=g) Manish Saxena says: [March 11, 2019 at 6:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76763) Hi Karthik While converting daily volatility to annual volatility, you considered time as 365 days. Wouldn\\’t it be proper if we consider 250 daily trading sessions, and hence multiply by SQRT(250)? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76763) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 11, 2019 at 12:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76786) Yes, 250 or 252 gives you the trading number of days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76786) 297. ![](https://secure.gravatar.com/avatar/22ce3094e091203bb0f8434cdbd49c065bf48ce33b86a2dc76ab76bc0e9eb02a?s=32&d=identicon&r=g) Anand says: [March 6, 2019 at 10:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76501) Hello Karthik, I have a question on Implied Volatility. It is said that IV of the ITM should be considered by making any decision, right\! Now, as the index/stock will move up or down, the ITM will change often. Hence will be strike price change and also will the IV, as it to taken based on the ITM, right! So if one wants to compare/study IV movement wrt index/stock, should we change the IV accordingly to the Strike Price? Regards Anand [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76501) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 6, 2019 at 11:48 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76510) Anand, you look at the IV of an ATM strike and check the volatility level. Once you do so, the strike may transition from ATM to OTM or ITM, this is ok. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76510) - ![](https://secure.gravatar.com/avatar/22ce3094e091203bb0f8434cdbd49c065bf48ce33b86a2dc76ab76bc0e9eb02a?s=32&d=identicon&r=g) Anand says: [March 7, 2019 at 1:06 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76563) Hello Karthik, Thanks for the answer. First of all, the question I had asked, was about ITM… which was completely wrong. I was supposed to write it as ATM. Still, you answered correctly. Now, coming onto the right track… Which ATM Stirke Price should be selected, when say, NIFTY is trading at 10450.00, ignoring the multiples of 500\\’s. I mean to say that the Calls/Puts, in case of NIFTY, having a strike price as 9500, 10500, 11500.. like on, don\\’t have volumes. The best ones are in the multiples of 1000\\’s. One more to add… should the IV, Open Interest and other greeks are to be considered for the NEXT month contract? If yes, then when… from the start of the contract or near the ending of the contract? Regards JB [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76563) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 8, 2019 at 11:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76602) Anand, ATM strike is the strike which coincides with the market price. So if Nifty is trading at 10450, ATM will be either 10400 or 10500. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76602) 298. ![](https://secure.gravatar.com/avatar/8336505d7bc8446ca90693a10f38dcac443c4ab36afa03694f1db36228117bf0?s=32&d=identicon&r=g) Uday Kumbhar says: [March 2, 2019 at 12:04 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76319) Why you have don\\’t calculated exact trading days insted of 365? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76319) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 2, 2019 at 8:21 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76344) There are 252 trading days in a calendar year, Uday. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76344) 299. ![](https://secure.gravatar.com/avatar/6f1ed0cd7d0513c2786592b2dcb2e462915316a43a91b09c26198a74b326033f?s=32&d=identicon&r=g) Manish says: [February 26, 2019 at 5:27 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76148) Hi karthik, Is there any standard formula for calculating volatility. For eg: Annual Volatility- Daily Volatility\*SQRT(365), similarly if we want to calculate for 7 days, or 30 days etc. Thanks, Manish [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76148) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 27, 2019 at 11:59 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76190) Manish, replace the 365 by the number of days you are looking at. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76190) 300. ![](https://secure.gravatar.com/avatar/4b482adeea52cced5d7f23fc9209048878db3049a78edaf32dd9a8103939ab6d?s=32&d=identicon&r=g) Anand says: [February 25, 2019 at 5:37 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76105) We get Daily and Annual Volatality for all stocks directly here: https://nseindia.com/archives/nsccl/volt/CMVOLT\_22022019.CSV [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76105) 301. ![](https://secure.gravatar.com/avatar/374e10323c653295f7f6cf60637fad228e47fbacd20d1446ec629f28102480e3?s=32&d=identicon&r=g) Nitin says: [February 21, 2019 at 11:56 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-75948) sir , If I have to find 7 days volatility of nifty with the help of ATR band , so the atr band settings like period 7 , shift 1 and weekly time frame. correct ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-75948) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 21, 2019 at 5:15 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-75966) Yes, more on that here – https://zerodha.com/varsity/chapter/supplementary-notes-1/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-75966) - ![](https://secure.gravatar.com/avatar/374e10323c653295f7f6cf60637fad228e47fbacd20d1446ec629f28102480e3?s=32&d=identicon&r=g) Nitin says: [February 22, 2019 at 7:27 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76014) Thank you Sir [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76014) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 24, 2019 at 8:13 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76055) Welcome\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-76055) 302. ![](https://secure.gravatar.com/avatar/200d5b9b156a1dae06351873738c023b1338d3311326537042471ae4ad33f8a4?s=32&d=identicon&r=g) Gautam says: [January 11, 2019 at 7:19 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73761) I am curious to calculate my own IVR..Help me out with calculating 52 weeks high iv and 52 weeklow iv [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73761) 303. ![](https://secure.gravatar.com/avatar/200d5b9b156a1dae06351873738c023b1338d3311326537042471ae4ad33f8a4?s=32&d=identicon&r=g) Gautam says: [January 10, 2019 at 8:48 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73685) Hi,kartik well explained topic..i am not a statistics guy but want a quick help from you..as you have calculated here daily volatility and annualized volatility.How do i calculated 52 week high volatility and 52 week low volatility.I want to calculate iv rank for any stock and formula needs an input like this IV Rank=100 x (the current IV level – the 52 week IV low) / (the 52 week IV high – 52 week IV low) .I can fetch current iv from NSE option chain.please help me in calculating my input 52 week iv low and 52 week iv high.. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73685) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 11, 2019 at 11:34 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73735) Gautam, I think Sensibull should provide this – https://sensibull.com/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73735) 304. ![](https://secure.gravatar.com/avatar/321614943ba061d1cdb907f1d35c35a55d6c7056867a66d99cd8983c9043a118?s=32&d=identicon&r=g) dncorp says: [January 10, 2019 at 3:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73671) What if I want to calculate realized volatility for 5 years. Do i do as above, that is, multiply the stdev by sqrt(252) ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73671) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 11, 2019 at 10:59 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73725) Realised volatility in a sense is the historical volatility 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73725) - ![](https://secure.gravatar.com/avatar/321614943ba061d1cdb907f1d35c35a55d6c7056867a66d99cd8983c9043a118?s=32&d=identicon&r=g) dncorp says: [January 11, 2019 at 11:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73728) thats ok. Am asking that if I want to calculate the 5 year historical volatility, do I take the stdev of daily returns of last 5 years and multiply by sqrt(252) ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73728) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 11, 2019 at 11:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73740) Yes, calculate the avg and multiply by sqrt of 252. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-73740) 305. ![](https://secure.gravatar.com/avatar/da8c3e1b70031d5ff4b748fcc987fee0a97ac913b9910e4a4ff587fcbaa4da71?s=32&d=identicon&r=g) Vivek says: [December 25, 2018 at 10:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72785) Thank you sir for explaining the topics in a great manner and that too explaining almost every topic on stock market. Sir I wanted help from you on understanding how to calculate 2 standard deviation so that I get 95% probability levels. Thanking you in advance for your help. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72785) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 26, 2018 at 11:37 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72830) Vivek, 1) Calculate the average of returns 2) Calculate the standard deviation of returns – this is 1SD 3) Add and subtract 2\*SD from the average returns, and you will get the 2SD. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72830) 306. ![](https://secure.gravatar.com/avatar/a0ccd1d7456032569c655f18e193e6cb9d7ea30aa3dfc44b690565dfa6dc7654?s=32&d=identicon&r=g) Sukhdeep says: [December 24, 2018 at 5:13 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72752) Dear Karthik, I was trying to calculate the average return for few shares like L\&T finance holding, Sunpharma, Jetairways and Yesbank. Calculated log return from 22 Dec 2017 to 21 Dec 2018. Now since each of their shares have gone down so their average daily and monthly return is coming out to be negative. Now how should i calculate their returns for the purpose of finding SD 1 and SD 2 in case I want to take a trade on the basis of Volatility. Kindly guide [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72752) - ![](https://secure.gravatar.com/avatar/a0ccd1d7456032569c655f18e193e6cb9d7ea30aa3dfc44b690565dfa6dc7654?s=32&d=identicon&r=g) Sukhdeep says: [December 24, 2018 at 5:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72754) Also now IV is not mentioned for different strikes. Where can I track the same? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72754) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 26, 2018 at 11:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72822) You should probably check sensibull for this – https://sensibull.com/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72822) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 26, 2018 at 11:16 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72820) Calculate the average return Calculate the SD of returns Build the range by adding and subtracting the avg return from the SD If the stock has trended down, there is nothing we can do to alter the equation. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72820) - ![](https://secure.gravatar.com/avatar/a0ccd1d7456032569c655f18e193e6cb9d7ea30aa3dfc44b690565dfa6dc7654?s=32&d=identicon&r=g) Sukhdeep says: [December 28, 2018 at 6:21 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72957) Dear Karthik, I was trying to calculate the average return for few shares like L\&T finance holding, Sunpharma, Jetairways and Yesbank. Calculated log return from 22 Dec 2017 to 21 Dec 2018. Now since each of their shares have gone down so their average daily and monthly return is coming out to be negative. Now how should i calculate their returns for the purpose of finding SD 1 and SD 2 in case I want to take a trade on the basis of Volatility. What should I do. Do i need to take the range for longer period if return is coming negative for one year I am calculating. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72957) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 29, 2018 at 10:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72991) Sukhdeep, use shorter term time periods like 6 months. Also, as an alternative you can also use ATR. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72991) 307. ![](https://secure.gravatar.com/avatar/288727b093d9ee1ae6bd9e9a527cbbfdebcd9bb1265dbed4d96a40c4a79f0409?s=32&d=identicon&r=g) Prafulla says: [December 20, 2018 at 4:24 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72558) Dear Karthik I am thinking seriously about working in HFT and algo trading firms. I want to know some of the advanced mathematical concepts, probability and statistical techniques that are used. Can you tell me a few references where I read these? Thank you Prafulla [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72558) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 21, 2018 at 11:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72583) I\\’d suggest you run through the Trading Systems module here – https://zerodha.com/varsity/module/trading-systems/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-72583) 308. ![](https://secure.gravatar.com/avatar/14502cea9d4e19d27d72658b49f1aaf937b7c4bd835798209c696e16b5531dfa?s=32&d=identicon&r=g) Bimalendu Saha says: [November 16, 2018 at 7:31 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-70893) Dear Karthik Sir, How can we get adjusted stock price of stock. As after bonus declare of stock its price gets half (in case of 1:1), but in NSE historical data we can not get the adjusted price and for this I am suffering to calculate volatility in case of Infy (as 1:1 bonus declare by management in Sep 4, 2018). [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-70893) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 17, 2018 at 5:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-70930) Bhimalendu, usually NSE has clean data. Anyway, I\\’d suggest you download the data from Pi. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-70930) - ![](https://secure.gravatar.com/avatar/e8326daed557583fad267620086f169f0200c42ab51965b7fe931a2b7013d9d5?s=32&d=identicon&r=g) Shrenik says: [February 4, 2019 at 10:25 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-74948) Hi Karthik, Could you share the way data cleaning is done. For retail investors/traders like me, who track and trade a set bunch of stocks, that could be very helpful. Hope that\\’s not too much of botheration 🙂 Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-74948) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 4, 2019 at 12:00 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-74967) Shernik, this can be quite tedious. It is best if you can download the data from a professional data source. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-74967) 309. ![](https://secure.gravatar.com/avatar/b69842b07f8642e68e20ccb3fabd09069a7156a3279447c215f05873b5a87f36?s=32&d=identicon&r=g) Shekar Srinivasan says: [October 30, 2018 at 7:36 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69740) Hello Kartik, Where to find Bank nifty daily volatility. I am getting a daily volatility of 1.90 for the period from the very beginning to 29th Oct. I want to cross verify. Please guide me. Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69740) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 31, 2018 at 11:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69778) Check the \\’other information\\’ section at the bottom of this page -https://www.nseindia.com/live\_market/dynaContent/live\_watch/get\_quote/GetQuoteFO.jsp?underlying=BANKNIFTY\&instrument=FUTIDX\&type=-\&strike=-\&expiry=29NOV2018 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69778) - ![](https://secure.gravatar.com/avatar/b69842b07f8642e68e20ccb3fabd09069a7156a3279447c215f05873b5a87f36?s=32&d=identicon&r=g) Shekar Srinivasan says: [November 1, 2018 at 4:49 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69887) Thanks. For trading in Bank Nifty Options, do i have to calculate Volatility based on Bank nifty spot price or Future price. The site which you have referred shows the Volatility of Bank Nifty Future price. To trade in Bank Nifty options we refer to the Bank Nity Spot price. Where do i find Bank nifty Spot price Volatility? Kindly clarify. Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69887) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 2, 2018 at 11:18 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69927) You certainly can take the futures, Shekar. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69927) 310. ![](https://secure.gravatar.com/avatar/40cb30b5ffd158754691186a69c8331dc23f99d502dca0f745636337d990f356?s=32&d=identicon&r=g) Ron says: [October 26, 2018 at 12:08 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69485) Dear Karthik, Just wondering if Zerodha Sensibull has any plans to introduce a volatility lab ( something similar to what interactive brokers ) are offer. I would request you to watch the video below to give you an idea of what I\\’m talking about. Obviously you don\\’t have to watch the entire video, just watch for 1-2 mins and you will know what am I referring about. https://www.youtube.com/watch?v=zT1H4vjMTjc\&t=367s Thank you very much for all you do to make our trading experience better. Best regards Ron Kalra [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69485) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 26, 2018 at 11:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69506) I\\’ll bounce this off with the Sensibull team, Ron. Thanks for sharing. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-69506) 311. ![](https://secure.gravatar.com/avatar/30942f909389c9e50e8f456e81b492d9ef159e22946cfbe72e513fe501ac4733?s=32&d=identicon&r=g) Edward says: [October 4, 2018 at 12:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68152) Good evening sir I followed the same steps as yoy have told to calculate std dev. And for wipro for todays date i got standard dev 0.31 with formula =STDEV(E3:E245) so this 0.31 is absolute or in percentage… I mean this is 0.31% or do i need to multiply it with 100 now to get std dev %. Thank you [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68152) - ![](https://secure.gravatar.com/avatar/30942f909389c9e50e8f456e81b492d9ef159e22946cfbe72e513fe501ac4733?s=32&d=identicon&r=g) Edward says: [October 4, 2018 at 12:33 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68153) Coz 31% daily volatility seems a bit unlikely. But i assured you i followed all the steps…. And with formula =STDEV(E3:E245) AS per my excel sheet gives me 0.31… So is this 0.31 already in percentage? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68153) - ![](https://secure.gravatar.com/avatar/30942f909389c9e50e8f456e81b492d9ef159e22946cfbe72e513fe501ac4733?s=32&d=identicon&r=g) Edward says: [October 4, 2018 at 12:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68154) Please tell me if i am wrong Your daily rate was in percentage so i changed my formula to =LN(B3/B2)\*100 is this correct approach or this is the main root problem that i am getting my daily standard deviation as 0.31(or this 0.31 value is already in percemtage) And thanks for you previous reply in delta 1 chapter….that cleared my query. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68154) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 4, 2018 at 2:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68175) Have replied in your previous comment. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68175) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 4, 2018 at 2:55 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68174) 31% is very likely for stocks, Edward. The index\\’s volatility itself can go up to 22-25%, so for individual stocks, this is very common. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68174) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 4, 2018 at 2:53 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68173) It should be expressed in %, so that would b 30.1%. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-68173) 312. ![](https://secure.gravatar.com/avatar/4c5044cd715393cc5cabbddb43667527033718d457c8c563d0c7dc6c066ce1de?s=32&d=identicon&r=g) arun says: [September 8, 2018 at 12:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66753) While calculating daily return(using LN) your values are in % but mine are not in %. Your calculation- 23-Jul-14 570.9 2.15% I am calculating the same 23-Jul-14 570.9 0.021511917 how to get 2.15% in my case? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66753) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 8, 2018 at 12:42 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66759) Are you using excel? If yes, maybe you should convert it to %. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66759) - ![](https://secure.gravatar.com/avatar/4c5044cd715393cc5cabbddb43667527033718d457c8c563d0c7dc6c066ce1de?s=32&d=identicon&r=g) arun says: [September 8, 2018 at 12:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66761) Got it – your line expressed as a percentage 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66761) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 9, 2018 at 8:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66790) Cheers\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66790) 313. ![](https://secure.gravatar.com/avatar/1568f40e6c78f6e28c04ce08e370125613a776ef48976e45cd912100b3067fa5?s=32&d=identicon&r=g) RANJANA CHOUDHURY says: [September 5, 2018 at 1:39 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66562) In this chapter you have calculated daily return of wipro using MS excel formula up to that I could understand but how you are calculating \\”mean\\” i.e average daily return is not clear to me please help me to understand. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66562) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 6, 2018 at 12:03 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66624) Again, I use excel for this. Use the function \\’=average()\\’ for this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-66624) 314. ![](https://secure.gravatar.com/avatar/b50088b03c9825cdfbd23db407cee0dcde5a66b67fe979b2746e118128af50b6?s=32&d=identicon&r=g) Kimish says: [August 23, 2018 at 7:40 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65665) Hi Karthik, I did the similar calculation for TCS from 24thAug2017 to 24thAug2018 And I got the following values which are different from the values on nse website Daily volatility=4.67 Annual volatility =89.33 Please let me know where am I wrong [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65665) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 24, 2018 at 3:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65709) Someone commented earlier, I guess the difference is because NSE is using the opening prices for these calculations whereas I\\’ve used the previous day closing. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65709) 315. ![](https://secure.gravatar.com/avatar/05d7e5fca17b63a7f563a315e416136b7a228badd6ce63de2611f37ce0534f29?s=32&d=identicon&r=g) Aditya Somkuwar says: [August 22, 2018 at 10:52 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65620) Hi Karthik, I am absolutely loving the way the content has been written. Excellent work done\! Wish I had come across this earlier. Was just playing around with the data of Wipro for the same period as in the example. The reason for difference between NSE\\’s calculation of daily volatility and your calculation could be because it appears NSE took LN(Close Price/Open Price) while calculating daily return whereas you have taken LN(Close Price/Prev. Close Price). By using this formula, I\\’m getting daily volatility as 1.34%. Keep up the good work! And thanks a ton\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65620) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 23, 2018 at 12:44 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65646) Aditya, this could be one of the reasons, thanks for digging up 🙂 Also, thanks for all the kind words, keep learning 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65646) 316. ![](https://secure.gravatar.com/avatar/594b566ee6d24c0c2ec56848ab9392c6a6c6769f8cbeb426f80465e59a07e43b?s=32&d=identicon&r=g) Amit says: [August 14, 2018 at 6:50 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65178) Hi Karthik, Thanks for your sharing your in depth details in options. I would like to know where we can get the companies financial/latest update (specific date information) before getting air. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65178) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 15, 2018 at 11:37 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65207) This will be updated on their website, under the investor section. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-65207) 317. ![](https://secure.gravatar.com/avatar/617635d7e25adc8fda3931ba18ed809665dc8c88b060801a3afad6ba489f7020?s=32&d=identicon&r=g) Adelaida Whitty says: [July 28, 2018 at 4:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-64165) What\\’s up to every one, the contents present at this site are really remarkable for people experience, well, keep up the good work fellows. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-64165) 318. ![](https://secure.gravatar.com/avatar/bb7bc0db08e7da5c0d56e776b38c7c6b83f4e1ffdb808a70a0888928c53f2803?s=32&d=identicon&r=g) Mehul Karia says: [July 4, 2018 at 10:04 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62224) Hello sir, Could you please tell me from where we can get Historical Implied Volatility Data for stocks and Indices? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62224) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 4, 2018 at 11:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62241) You will have to extrapolate this, Mehul. Quite a cumbersome process. Do check out Sensibull.com for historical IVs. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62241) 319. ![](https://secure.gravatar.com/avatar/5cc1b517d095ce0477c5433335ad6413914081608444d861622688fe06501bf3?s=32&d=identicon&r=g) Shyam says: [June 27, 2018 at 12:39 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-61725) i calculated the daily and annual volatility based on above calculations for nifty and banknifty. Nifty Daily Volatility 0.65% Annual Volatility 12.37% bank Nifty Daily Volatility 0.85% Annual Volatility 16.17% Please advice if the above calcualtion is ok When traders talk about high volatility and low volatilty what is the percentage that you would say is high and low. Can we refer india VIX for nifty and bank nifty? What is the ideal volatility % for Nifty and bank nifty? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-61725) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 27, 2018 at 12:43 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-61753) Annual Volatility = Daily Vol \* Sqrt (365) = 0.65% \* Sqrt (365) = 12.41% You can refer to India ViX to get a perspective on how high/low the volatility really is. Also, there is nothing like ideal volatility 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-61753) - ![](https://secure.gravatar.com/avatar/5cc1b517d095ce0477c5433335ad6413914081608444d861622688fe06501bf3?s=32&d=identicon&r=g) SHyam says: [July 4, 2018 at 3:27 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62259) Hi, Please see below link https://drive.google.com/file/d/1zbOGojgXNkBNE7I5urm8JeFE4C1w54Oy/view?usp=sharing As per my understanding one needs to buy call when volatility is low and sell when volatility is high Today i bought a 10700 call when india vix was low. Surprisingly the market fell down in the morning and india vix was rising. To minimize the loss i hedged it with a put and scraped out with minute profit though this is a loss as i havent considered the brokerage charges and the end number of transaction costs. Kartik please tell me where do you think I went wrong? This is really frustrating. Market is indeed a brutal place .It doesn\\’t give a 2nd chance. 1\.Why is india vix volatility is falling when market is rising? 2.Which volatility should I refer ? India Vix or implied volatility? When I saw the charts later I rued my decision of closing both the positions. If I could have held out on my call positions i could have made a decent profit. Panic got the better of me today. In last 10days I have missed such trades since last 10 days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62259) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 5, 2018 at 11:29 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62318) 1\) Shyam, in general, ViX increases when markets fall and ViX cools off when the markets increases 2) If you are trading Nifty, then I think India ViX should be good. Holding to winning position requires a great deal of mental makeup, not really an easy 🙂 Hopefully, with time your trades will also evolve. Good luck. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62318) - ![](https://secure.gravatar.com/avatar/5cc1b517d095ce0477c5433335ad6413914081608444d861622688fe06501bf3?s=32&d=identicon&r=g) SHyam says: [July 5, 2018 at 2:03 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62333) Ohh I didnt know about this. When traders talk about shorting when volatility is high which volatility are they referring to? Also should we refer VIX for bank nifty also? ALso i was checking the implied volatility for nifty 10700/750/800 CE yesterday. They were in range of 7.5-8% . and VIX was 11% . Now how do I interpret this. Sorry for bugging you with all these queries. Its just that last 10 days have been really frustrating - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 6, 2018 at 11:34 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62404) They are referring to IVs. ViX for Bank nifty may not be the best match, but nevertheless, you can. The comparison tells you that the IV for these options are lower. Good luck, Shyam. Take your time to learn, the market always has 100s of opportunities. - ![](https://secure.gravatar.com/avatar/5cc1b517d095ce0477c5433335ad6413914081608444d861622688fe06501bf3?s=32&d=identicon&r=g) SHyam says: [July 5, 2018 at 2:19 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62336) So in short I need to buy when vix is falling and sell when vix is rising? - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 6, 2018 at 11:36 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-62405) Yes, pretty much so assuming you are tracking other variables as well 🙂 320. ![](https://secure.gravatar.com/avatar/6bc4ddc85e462f3dcb6cfe425a614dc0f0fea38cf9c813c89b245c09abfd0067?s=32&d=identicon&r=g) SUHAS SHRINIVAS VAZE says: [May 6, 2018 at 9:22 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58652) Can we calculate intra-day volatility ? Please revert. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58652) 321. ![](https://secure.gravatar.com/avatar/7d11c5ba95bd0a23a3e5e6b6e04144026b9e9615a5cd752b99b8604882c089cf?s=32&d=identicon&r=g) Prateek kumar jaiswal says: [April 29, 2018 at 3:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58226) Hi Karthik, For calculating yearly volatility you have taken 365 but in actual there would be close 250 working days so not sure which one to take 365 or 250. Please throw your thoughts if 365 should be taken and why? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58226) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 29, 2018 at 8:49 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58251) You can actually take 252 as these are the total number of trading days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58251) 322. ![](https://secure.gravatar.com/avatar/9e5767cab539cdf0213f041f06a9ab24d75ae675e5b98e8d42e74d25c78b9d4e?s=32&d=identicon&r=g) vishal wadekar says: [April 27, 2018 at 4:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58124) hii karthik, can i perform the same calculations for base metals & bullions???? does it make sense?? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58124) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 28, 2018 at 12:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58157) Yes, you certainly can. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58157) 323. ![](https://secure.gravatar.com/avatar/1d64ae887cf2ac740bc5ca95e984d4b538c055083ffa178df0956d6f6a1bdaa3?s=32&d=identicon&r=g) manas says: [April 10, 2018 at 9:39 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-57040) how to use daily volatility for intra day trading? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-57040) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 10, 2018 at 11:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-57057) Do check this – https://zerodha.com/varsity/chapter/volatility-applications/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-57057) 324. ![](https://secure.gravatar.com/avatar/406b6883551a20abf9fa74a0caf53c3959036af2b0d6aa50cd8e20706581b697?s=32&d=identicon&r=g) Ankit says: [February 12, 2018 at 3:23 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53381) Hello sir, I have a question when we calculates historical volatility, i guess this is the volatility of nifty50 underlying or nifty 50 futures right sir, i calculated same for last last year it worked out almost 9.25%. but how to Relate this volatility to particular option strike i mean we have lots of strikes available from DEEP ITM to DEEP OTM. in which some strikes has 12%VOL. 15%,40%55% or may have 75% volatility. let say i took a naked call buy Strike10700 @112/- with IV @19%. then will i say like\\”The historical volatility of Nifty 50 is @9.25% but this particular strike has volatility @19% so it is expensive Right Sir but i did not understood point here. How can i relate nifty option volatility to nifty underlying in my sense we can take a good trade in nifty future by assessing nifty underlying volatility but not in option. is somebody asking me to BUY 10700 strike @112/- because volatility looking low as compare to other strikes which has high volatilities like 25%,32%21% or like that Then i will reply him NO Dudei can not take this trade because i dont have historical data of this particular strike to calculate its Historical volatility i only have volatility smile and cone option to decide but thats not appropriate to me OOOhhh. i dont know i have able to tell you what i am talking here, i really missing some features such as audio massages, video post, snapshot posting here. i tried google drive link posting but it was saying your comment is awaiting for moderation and yet not answered. Sir please please please provide some mutual interacting platform where peoples in need can directly approach you by audio video massaging or youtube live facebook live, because only reading and writing is not sufficient. if you say i can pay you for that Thank you sir….. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53381) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 13, 2018 at 10:23 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53414) That would be on Nifty 50, Index (underlying) and not on Nifty Futures. Although, you can calculate the same for Nifty futures. Considering the underlying\\’s volatility to an option\\’s strike volatility is only a crude approximation, Ankit. However, you can look at the strike\\’s implied volatility and get a better sense of how the volatility is playing out. If the implied volatility is over 25% then yes, consider that as high. Or if the IV is around 8-12%, I\\’d consider this as low. I\\’m very active on Varsity, so please do drop your queries and I will try and respond back as soon as I can. Good luck and happy trading. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53414) 325. ![](https://secure.gravatar.com/avatar/556c8a512ae8ef602c47e410836e1f35bb43c389120ecf60fee9043ebdc1eabe?s=32&d=identicon&r=g) kmayank says: [February 9, 2018 at 12:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53146) Hello sir Could you provide me the link to download split adjusted historical stock prices? I googled but didn\\’t get any save this https://www.nseindia.com/products/content/derivatives/equities/adjust\_in\_case\_corp.htm Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53146) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 10, 2018 at 6:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53195) You need to check with an exchange authorized data vendor for this, someone like Truedata will help. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53195) 326. ![](https://secure.gravatar.com/avatar/556c8a512ae8ef602c47e410836e1f35bb43c389120ecf60fee9043ebdc1eabe?s=32&d=identicon&r=g) kmayank says: [February 8, 2018 at 8:11 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53105) Hello sir I calculated the stdev for Mothersumi stock and it was 2.59% but on nse website it was 1.56%. I checked the minimum return from my excel sheet and it was -33.35% on July,5\\’ 17. But when i saw the chart it was smooth. Then i realised it might be a case of stock split, and it was. My question is: Does the stock split affect the standard deviation of its daily returns? If it does then how could we calculate the correct standard deviation? Thank you 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53105) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 9, 2018 at 7:37 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53137) Not really, in case of split, please consider the price chart adjusted for corporate actions. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-53137) 327. ![](https://secure.gravatar.com/avatar/f5b89a0b9075d93ac29c0b0206a55b4bcd86d80f5eb8c387edbb9f871872ef06?s=32&d=identicon&r=g) santosh patidar says: [February 5, 2018 at 5:50 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52941) People are telling good things about you, many are giving blessings also, how do you digest so many +ve words ? Because some people can\\’t handle success. Please answer below questions as well 1.) In comments you have written about ATR also, how close ATR is in comparison to volatility ? 2.) How closely BETA of a stock and volatility ? Since if market moves some % then stocks movement is based on BETA. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52941) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 6, 2018 at 10:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52990) Santosh, if there is one thing that market teaches is to stay grounded! One should never take such things for granted 🙂 1\) ATR is a good proxy for volatility – you can use it as good as Vol 2) Beta measures the sensitivity of the stock wrt to an index, vol, on the other hand, gives you a sense of how volatility the stock is to the overall market. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52990) 328. ![](https://secure.gravatar.com/avatar/6681983c83f9d0814a942cbf4dfc58f118a64ed2f5d7194f29e011e8203e4d2a?s=32&d=identicon&r=g) chinmay says: [January 31, 2018 at 2:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52615) whe i downloded the csv file from NSE website for calucating volatility i noticed something. please check the historical data of kotak bank for last 365 days. 8th march 2017 data is given 2 times. and see the closing price 490 & 817. what is this? is this an error? if it is then such errors may lead to huge differences if unnoticed. whats the solution? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52615) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 1, 2018 at 11:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52675) Will try and check this Chinmay. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52675) - ![](https://secure.gravatar.com/avatar/6681983c83f9d0814a942cbf4dfc58f118a64ed2f5d7194f29e011e8203e4d2a?s=32&d=identicon&r=g) chinmay says: [February 1, 2018 at 6:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52704) sure sir.. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-52704) 329. ![](https://secure.gravatar.com/avatar/406b6883551a20abf9fa74a0caf53c3959036af2b0d6aa50cd8e20706581b697?s=32&d=identicon&r=g) Ankit saini says: [January 19, 2018 at 1:55 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51794) Hello sir, Is implied volatility on NSE option chain is anualised Let\\’s say I am going to open an call position on the basis of volatility I expect the volatility will increase till coming budget So my market view for 7 to 8 days from now When I compare this volatility with historical volatility I got confused Is there any way or any tool to decide what should be implied volatility for next couple of days Or or should I need just avoid volatility and buy an ITM option and play Just intrinsic value….. OR In other case I am looking for a long strangle on Nifty 50 When I compare the Nifty 50 index performance near or on the day of budget I found that generally nifty to take an upward Trend firms slightly bullish on Nifty from now and expect and level of 11100 before middle March I\\’m not guessing this I did some math on Nifty historical performance near budget No just volatility confuses me. Sir you did very good work in your city on volatility but I found something that it is not sufficient to understand volatility for practical purposes. I personally found we need something more to understand volatility practically So I request you sir, you personally put some lectures or video on YouTube or something like this This will be a great help for us I found just reading of volatility not enough to play or use volatility Thank you sir [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51794) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 20, 2018 at 9:11 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51898) We will soon make few announcements on Option tools. I\\’d suggest you stay tuned on that. Meanwhile, if you expect the volatility to increase, then yes, buying an option makes sense. I\\’d prefer to trade ATM/Slightly ITM option considering the time to expiry is quite short. I will try and create a volatility mini-course on youtube. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51898) 330. ![](https://secure.gravatar.com/avatar/46caf60c87fb13533a460564a278d076e2cb96eeb151b67c4d6314f4ac125b54?s=32&d=identicon&r=g) Amit says: [January 15, 2018 at 2:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51420) Difference in volatility due to taking day is 365 .Actual working is less 261 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51420) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 16, 2018 at 10:22 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51605) Ok. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51605) 331. ![](https://secure.gravatar.com/avatar/95b6d225ade2dcd22788c81c2ccda3783b0b9f0044aa1db2ad122ffd56d3b569?s=32&d=identicon&r=g) Harsha says: [January 5, 2018 at 5:07 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-50904) Karthik – Let me start off saying it has been a great pleasure going through your blogs. Hats off to you for making this easy for newbies like me\! Now, my question: Based on the steps you have given to calculate daily and annual volatility, I did the same exercise (on Jan 4th 2018) for Bank Nifty by first downloading the historical closing prices from NSE (period Jan 1 2017 till Dec 31 2017), getting daily returns, then getting the average and STDEV. I got daily avg as 0.14% & hence annual avg as 51.95%. Daily volatility calc came upto 0.77% and annual volatility as 14.7%. NSE showed daily volatility as 0.64 & annual volatility as 12%. I think I am slightly off but is my calc correct so far? I ask this because I got stumped when I continued: With annual avg as 51.95% & annual volatility as 14.7%, I am now getting upper limit of 66.65% and lower limit of 37.25% which doesn\\’t seem correct because I believe the lower limit should be a negative number which is only possible if annual volatility is lesser than annual average but it is not in my case. Hence the lower limit is now higher than CMP! What am I doing wrong? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-50904) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 6, 2018 at 10:02 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-50921) Harsha, you get a +ve lower range when the stock or the index has trended positively for the look back period you have considered. Likewise, you will get -ve values when the asset has drifted downwards. A mix of both +ve and -ve when the asset has been sideways (with probably a slight directional bias). [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-50921) - ![](https://secure.gravatar.com/avatar/95b6d225ade2dcd22788c81c2ccda3783b0b9f0044aa1db2ad122ffd56d3b569?s=32&d=identicon&r=g) Harsha says: [January 8, 2018 at 1:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51062) Hmm, makes sense, thanks. I was wondering if I was doing a mistake somewhere… [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51062) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 9, 2018 at 10:36 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51092) Good luck and happy learning, Harsha\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-51092) 332. ![](https://secure.gravatar.com/avatar/2116ee4095817126c108572940c4b6bc2319bde98c57065328f1455b5316ee15?s=32&d=identicon&r=g) Shankar says: [December 11, 2017 at 9:42 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49704) What should I do when annualized daily return is more than annualized volatility? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49704) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 12, 2017 at 6:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49719) Not sure how this is possible because the annualised volatility is a multiple of daily volatility and time. So annual volatility is always higher than the daily volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49719) - ![](https://secure.gravatar.com/avatar/2116ee4095817126c108572940c4b6bc2319bde98c57065328f1455b5316ee15?s=32&d=identicon&r=g) Shankar says: [December 12, 2017 at 8:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49726) Thanks Karthik. In Excel, Annualized Daily Return (365 trading sessions) = Average Daily Return \* 365 = 0.07%\*365 = 24.52% Annualized Volatility = Daily Volatility \* 365 = 0.67%\*sqrt(365) = 12.79% Range with 1SD is more than cmp on both cases for next year (37.31% and 11.72%) Does this mean stock is on a bull run or Am I doing something wrong here? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49726) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 13, 2017 at 10:56 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49751) Yes, you do tend to get such numbers when the stock is in a good (up) trend. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49751) 333. ![](https://secure.gravatar.com/avatar/920f70060a3c648e9cd256361e6a842d8275d0ab538ea0eb5e113813fd82087e?s=32&d=identicon&r=g) Pankaj Singh says: [November 27, 2017 at 5:59 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-48895) Hi Karthik How to calculate historical volatility for the purpose of estimating IV ranking? More specifically, is that calculated from SD of underlying or using historical IV data? Thanks Pankaj [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-48895) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 28, 2017 at 11:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-48920) You can use the \\’=STDEV()\\’, function in excel to calculate the historical volatility. You can check the present day IV with historical IV, this will only give you a fair idea. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-48920) - ![](https://secure.gravatar.com/avatar/920f70060a3c648e9cd256361e6a842d8275d0ab538ea0eb5e113813fd82087e?s=32&d=identicon&r=g) Pankaj Singh says: [November 28, 2017 at 11:44 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-48975) Thank Karthik. How to obtain historical IV? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-48975) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 29, 2017 at 11:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49005) You can use the excel function =\\’STDEV()\\’, for this. Have explained the same in the chapter. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49005) 334. ![](https://secure.gravatar.com/avatar/9e2a8fa2a083126289e0215bb9cd99432b28b5b1371b86d4d6fe4cce6d9cae41?s=32&d=identicon&r=g) venu says: [October 25, 2017 at 8:54 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-47024) In next Chapter one of example you have mentioned Daily Average Return = 0.04% Annualized Return = 14.8% How did manage to Get Daily Average return or Annualized return what is formula to get et Daily Average return or Annualized return ??? Please advice [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-47024) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 26, 2017 at 11:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-47056) The calculation is explained in detail in the same chapter, Venu. Please go through it once. Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-47056) 335. ![](https://secure.gravatar.com/avatar/d6410bdf23a080e92e784000918fd5f1413f76ceb4cb0ee0249f1868fc5b83e6?s=32&d=identicon&r=g) NAJEEB T P says: [October 23, 2017 at 7:29 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46907) Hello Kartik, Inputting the data into Zeroda BS option pricing formula with Nifty yesterday underlying close at 10210.85 for a strike of 10300 call with expiry as 26/10/2017, 15 30 hrs ,current day AV as 12.26 and RBI 91day treasury bill yield as 6.07 outputs to 38.58 as the call option price.But if the same is input to as 24/10/2017 as expiry dates shaving of the 2 day trading holiday ,option call price reflects to 27.81(settlement price is 28.45). Diwali one trading hour would compensate to that.So my question is , Is not imputing calendar days give distorted results in option pricing. It would be appreciated if in the expiry column the default time is set as 15.30 hrs instead of 23.59 hrs. On a detailed analysis coupling economic analysis data.fundamental analysis data,technical analysis data,quantitative analysis data and scientific analysis data(price equating to an object and applying the principles of newtonian motion , chaotic motion and butterfly effects) the calculation done taking calendar seconds an year seems to be wrong in the underlying and its subsequent expression in derivatives which even Nse calculates and it ought to on market activity timelengths and not on continuous timelengths. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46907) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 23, 2017 at 11:56 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46920) Najeeb, I understand. We are working on something better for options. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46920) 336. ![](https://secure.gravatar.com/avatar/fc247b1cdff953591c2deaae65a1a400927718a4cca4b524b2c91b14f6a6616a?s=32&d=identicon&r=g) Mihirsinh parmar says: [October 19, 2017 at 4:16 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46745) If you want I can send the excels on which I have done working .. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46745) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 19, 2017 at 10:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46771) Sure, maybe you can do that to [\[email protected\]](https://zerodha.com/cdn-cgi/l/email-protection). Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46771) 337. ![](https://secure.gravatar.com/avatar/d6746cfca81088a30fccf61a8159b3ad85081d446d9be85cddc41afeac506f55?s=32&d=identicon&r=g) Mihirsinh Parmar says: [October 16, 2017 at 12:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46626) Hi Karthik, Content is very well developed. Thanks for this. I tried calculating annualized volatility for five different scrips but except HDFC bank no scrip is giving perfect or near to the actual number. I had compared with NSE website. I had followed following steps. 1\) Download last one year closing price from NSE 2) Calculate daily returns 3) Calculate SD 4) calculate annualised SD by multiplying with SQRT(365). I am not able to calculate the correct Volatility. Can you please help. I am existing zerodha client. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46626) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 16, 2017 at 11:13 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46637) I think NSE has a slightly different approach in calculating the volatility. By the way, how much is the difference? If it\\’s not much, then I\\’d suggest you ignore it. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46637) - ![](https://secure.gravatar.com/avatar/d6746cfca81088a30fccf61a8159b3ad85081d446d9be85cddc41afeac506f55?s=32&d=identicon&r=g) Mihirsinh Parmar says: [October 16, 2017 at 7:40 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46649) Difference is huge sir. Almost double in some cases [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46649) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 17, 2017 at 11:13 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46669) I need to figure this out, Parmar. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46669) 338. ![](https://secure.gravatar.com/avatar/8fc6ea19428591fff3b65aebd655f1cf00094643471e746d73a2164e7c15decb?s=32&d=identicon&r=g) Nerav Parekh says: [October 14, 2017 at 4:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46569) Hi Karthik, I am sure that there is a special place in heaven for guys like you !!\! Have been reading the Varsity Modules for some time now. They are great. I have a few queries & would be delighted to have your feedback (whenever you get the time). Query A I downloaded the historical data for ONGC, Reliance, Bharat Electronics & Wipro. The daily volatility & the annualised volatility dont match at all. I am using the same LN(b3/b2) / STDEV function & am getting results that are more than 3 times the actual daily / annual volatility posted on the NSE website. What do you think is the issue ? Query B Can you suggest a few books to read only by Indian authors & mainly relating to the Derivative Segment. Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46569) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 15, 2017 at 9:54 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46595) Thanks for the kind words, Nerav 🙂 Query A – You need to convert daily to annualised volatility. Cannot really compare daily to annual without this conversion. Query B – Frankly, I\\’m a little out of touch on the latest books related to derivatives. That leads me to an interesting question – what do you think is missing in Varsity that can be plugged to make you more confident about markets? I\\’m asking this because Varsity, at least according to us, has most of the things you need to get started on derivatives 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46595) 339. ![](https://secure.gravatar.com/avatar/66936c5282bdb9421c0552cead26ad677c0b9a56d06edb5f637ffcb2951ac3e9?s=32&d=identicon&r=g) Ash says: [October 5, 2017 at 1:45 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46074) Karthik – 1\. Are Market holidays like Saturday and Sunday also considered (for time value) while calculating the Theta value? Then as your said Friday makes more sense. 2. While selling options, Is it that by the last Thursday of the month, the strike price shouldn\\’t hit the exact target number or is it like even if it is near the target we lose? Thanks\! Ash. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46074) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 5, 2017 at 10:59 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46098) 1\) Yes, it does 2) Yes, last Thursday is when the expiry happens, so the spot should be higher than strike (for calls) and lower than strike (for puts) for the option to be profitable, anything else you lose money as an option buyer. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46098) - ![](https://secure.gravatar.com/avatar/66936c5282bdb9421c0552cead26ad677c0b9a56d06edb5f637ffcb2951ac3e9?s=32&d=identicon&r=g) Ash says: [October 6, 2017 at 11:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46166) I was talking about option seller not buyer, like under what scenario at expiry will he be able to pocket the premium? If I sell the 10000 nifty index call and upon expiry the market is at 9999, can I retain the premium and be profitable? Even though the difference is just 1 point. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46166) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 7, 2017 at 4:15 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46206) Yes, as long the spot price is less than the strike (in case of calls) and more than the strike (in case of puts) the option seller can retain the entire premium. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-46206) 340. ![](https://secure.gravatar.com/avatar/d6410bdf23a080e92e784000918fd5f1413f76ceb4cb0ee0249f1868fc5b83e6?s=32&d=identicon&r=g) NAJEEB T P says: [September 19, 2017 at 5:43 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45370) Karthik. Any foreseeable impact of delta decay(charm) vega decay(veta) gamma decay(color) on theta especially in leaps.Apart from gamma do any of the second degree and third degree derivatives has any impact that we need to analyse any of these? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45370) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 20, 2017 at 11:54 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45403) The 3rd order matters if you have super large account size, where a small impact can cause a large Rupee value damage. For a typical retain book, it does not have any impact (at least as far as I understand). [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45403) 341. ![](https://secure.gravatar.com/avatar/d6410bdf23a080e92e784000918fd5f1413f76ceb4cb0ee0249f1868fc5b83e6?s=32&d=identicon&r=g) NAJEEB says: [September 18, 2017 at 8:54 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45292) Kathik, One doubt ,What will be the percentage decay of the option on a daily basis daily supposing the underlying stays at at the money(theoretical) till the life of the option .Also is there any relation in percentage between daily volatility and theta decay percentage when underlying at the money? Please guide. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45292) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 19, 2017 at 11:28 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45347) If all else equal, the loss in option premium owing to time decay is equivalent to the theta of the option. If the volatility increases, then the premiums also tend to increase. This is especially true when there us fewer days to expiry. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45347) 342. ![](https://secure.gravatar.com/avatar/d6410bdf23a080e92e784000918fd5f1413f76ceb4cb0ee0249f1868fc5b83e6?s=32&d=identicon&r=g) NAJEEB says: [September 16, 2017 at 7:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45089) Hi Kartik, Thanks for the plethora of information you disseminate for free.To my knowledge Nse publishes the previous day daily DV and current day DV and AV in (view all end of the day reports) in market reports for around 1620 stocks.I find these SD calculations based on a closing price basis.Where can i get an intraday volatality measure say like for a tick and for time frames during a day(I minute ,5 minute, 15 ,minute likewise)? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45089) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 16, 2017 at 11:05 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45117) Intraday vol is not available, Najeeb. YOu will have to take the daily vol and make estimates. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45117) - ![](https://secure.gravatar.com/avatar/d6410bdf23a080e92e784000918fd5f1413f76ceb4cb0ee0249f1868fc5b83e6?s=32&d=identicon&r=g) NAJEEB T P says: [September 18, 2017 at 12:02 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45226) Regarding annual volatility calculation as the sum count(number of observations) comes to 245 wont it be an error if gone for 365., a situation of 4.98 days of volatality and 2.02 days of zero volatality.Had it been annual return calculation 365 seems ok.Pls guide. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45226) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 18, 2017 at 10:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45253) Can you please rephrase this? I\\’m a little confused. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45253) - ![](https://secure.gravatar.com/avatar/d6410bdf23a080e92e784000918fd5f1413f76ceb4cb0ee0249f1868fc5b83e6?s=32&d=identicon&r=g) NAJEEB says: [September 18, 2017 at 3:02 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45272) Standard deviation is seen taken based on the closing price of the traded day.This year the total number of trading days is 245 after shaving off weekend days and trading holidays.Leap year have 364 days.So normally we have 5 days volatility and 2 days of 0 volatality.Holidays need be considered too.Hence I wrote 2.02 days of non volatility .If the observation is the annual traded days is it not logical that annual volatility ought to be on the number of trading days too .Nse takes 365 days where may US traders take it as traded days.Which is more accurate ? - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 19, 2017 at 11:15 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-45335) Got it. I personally prefer 252 days, but I guess many prefer 365 considering NSE uses the 365/365 day count convention. 343. ![](https://secure.gravatar.com/avatar/c1068ced3ba5e2685337a47caae13188bdaa949bb137234ace88e5d77d29d834?s=32&d=identicon&r=g) girish says: [September 8, 2017 at 9:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-44634) Karthik Rangappa many many thanks for explaining the volatility and greeks n find it useful.one doubt- for calculating weekly/ monthly volatility , one should multiply the daily volatility by sqrt of 7/30. is it that much only or we should take into account anything else? also if we use weekly/monthly close values then the volatility obtained using the abovementioned procedure is weekly/ monthly volatility and no further corrections are required? please answer regards girish [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-44634) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 8, 2017 at 2:01 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-44667) To convert daily volatility to yearly, simply multiply by Sqrt of 365….and to convert to monthly, multiply it by sqrt of 30. Basically, you have to multiply by square root of time. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-44667) 344. ![](https://secure.gravatar.com/avatar/c0dd130767486602035c44dcacb33e95cd389e0f18f141e29c647138c0930443?s=32&d=identicon&r=g) Shreevardhan says: [August 13, 2017 at 2:12 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43303) Dear sir, where do we get the data of average volatility of stocks & index to compare whether current volatility is high or low? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43303) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 14, 2017 at 9:06 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43325) I guess you are talking about historical volatility. This has to be derived. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43325) 345. ![](https://secure.gravatar.com/avatar/5a624fe9697f1e038df80a82faaeed97452d0894785e192d4f4f90c1ff3f4e76?s=32&d=identicon&r=g) punterdgr8 says: [August 6, 2017 at 9:37 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43020) sir,why does zerodha only allow stock options to sell and not buy;any specific reason? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43020) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 7, 2017 at 11:31 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43040) Of course, you can buy stock options. No restriction as such. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43040) - ![](https://secure.gravatar.com/avatar/5a624fe9697f1e038df80a82faaeed97452d0894785e192d4f4f90c1ff3f4e76?s=32&d=identicon&r=g) punterdgr8 says: [August 8, 2017 at 7:47 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43102) sorry sir,i meant to ask in BO as it shows buying calls is enabled only in nifty. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43102) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 9, 2017 at 10:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43122) I guess it\\’s best if you can give a call to our support center. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-43122) 346. ![](https://secure.gravatar.com/avatar/1b8a342792aea6196df4889f383867b724aa0bf7306f7eb8a76654f4a32d335c?s=32&d=identicon&r=g) Varun says: [August 1, 2017 at 8:52 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-42704) Hi Karthik, I downloaded Maruti data for past one year from NSE site and have tried to calculate Daily Volatility which comes to 1.38 but on NSE it is coming as 0.88. Data taken is from 2nd of Aug 2016 to 1st of Aug 2017. Any specific reason for it. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-42704) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 3, 2017 at 1:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-42810) Not sure, I think there could be a date mismatch? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-42810) 347. ![](https://secure.gravatar.com/avatar/0395dfd08f6fc95d27e48545d1a93524049250202bb7ca30f8dd266b90e8f381?s=32&d=identicon&r=g) Chetan says: [July 15, 2017 at 5:08 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-41894) Hi Karthik, Learning a lot for Varsity., Lot of things are getting clear and helping me to trade well. Between i wanted to share a technique which will reduce time spent of downloading data and doing various calculations. We can actually automate this Volatility calculation using the Google Sheets ( aka Google Excel) , Creating a sheet and using Googlefinance formulas ( https://support.google.com/docs/answer/3093281?hl=en) Ex: I Can create a new Google excel sheet and in cell A1 use the formula =Googlefinance(\\”NIFTY\\”,\\”PRICE\\”,TODAY()-300,TODAY()) The above formulas gives data for last 300 trading days and we can then use other formulas linking to this data, which gets updated every day. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-41894) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 15, 2017 at 5:40 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-41904) Hey Chetan, thanks for sharing this information. I wasn\\’t aware of this at all, owe you one now 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-41904) 348. ![](https://secure.gravatar.com/avatar/c5f6d77b3d2856aeb50c1838687b2cf962d853b250021cf032480a63d740be09?s=32&d=identicon&r=g) Abhilash says: [June 20, 2017 at 1:58 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-41011) Hi Karthik, Instead of Manual Daily volatility calculation, better we can refer NSE itself ( Derivative ) … [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-41011) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 21, 2017 at 4:38 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-41037) Sure, you can do that as well 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-41037) 349. ![](https://secure.gravatar.com/avatar/548f8e0ced491d91ae08f0f547d63c0fb7d16b4e15410992993e83256c43b418?s=32&d=identicon&r=g) KUMAR MAYANK says: [June 11, 2017 at 10:06 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-40761) When i calculate historical volatility using B3/B2-1, the result differs a bit from what i calculate using logarithmic returns. According to you which is better? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-40761) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 12, 2017 at 10:50 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-40779) For under a year, use simple returns…for multi years, I\\’d suggest you use log return. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-40779) 350. ![](https://secure.gravatar.com/avatar/0c331f2fe3eac5e79ba9777593a748bfc61a5cf8d522e1ed8f654ca944e7f6da?s=32&d=identicon&r=g) shabaz says: [May 3, 2017 at 9:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-39341) First of all, thanks sir for these wonderful lessons but i have two queries that. 1. Should we also consider Rakesh Jhunjhunwala\\’s money or investment as smart money? 2. can we calculate volatility for nifty for the month through india vix as we know that if we want to calculate the next month volatility through india vix say a month then the formula is (Vix / sqrt (T))%. If we want to know that what is the monthly volatilityof nifty based on india vix (current-11.53), we should divide 11.53 to square root of 12 (t-12, 12 30 days in one year) So the expected volatility based through vix for the month would be 11.53/3.464 =3.32%. This expectation of monthly range of nifty can be used by the people who use options especially option writers. Example, shorting option above or below the expected monthly range of nifty. Sir, my question is can i use this method for the calculation of expected range of nifty? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-39341) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 4, 2017 at 11:19 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-39366) 1\) Yes, simply because he trades with a much larger capital base. 2) Sort of, but the best way to forecast Vol is by a volatility model, like GARCH. Unfortunately, I\\’m not too sure about the math behind that Having said, you can still use the method you have mentioned for a quick and dirty calculation. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-39366) 351. ![](https://secure.gravatar.com/avatar/406b6883551a20abf9fa74a0caf53c3959036af2b0d6aa50cd8e20706581b697?s=32&d=identicon&r=g) Ankit says: [April 24, 2017 at 3:17 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38906) Hello karthik sir, I had calculated volatility for many times but a question is raising in my mind that if daily volatility information already available on nse website then why we have to calculate this everytime ( pls… don\\’t assume me lazy) infect i like to do calculation every time as it improves me By the way can we also use NSE\\’s data to set up a trade…..offcourse what you will order me to do i will do the same your advice matter me because i tried a lot lot lot to understand option before ariving at varsity at the end varsity gave me the brake.. & you and your guys the reason behind thanks a lot…. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38906) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 25, 2017 at 6:52 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38937) Ankit, thanks for all the kind words about Zerodha Varsity 🙂 If the data is readily available on NSE the go ahead and use it. You can utilize the time saved for doing something more productive. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38937) - ![](https://secure.gravatar.com/avatar/ae502a8081d1d3297e2bc2aa7ef57e9349d02aefc33f327dbb34b1921da9f218?s=32&d=identicon&r=g) Satyam says: [July 31, 2017 at 3:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-42627) Sir how to practically use volatility? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-42627) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 1, 2017 at 10:34 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-42665) Have explained this across all the chapters. Check this in particular – https://zerodha.com/varsity/chapter/volatility-applications/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-42665) 352. ![](https://secure.gravatar.com/avatar/c9d22ea8c7ccd11d00b290aaf54040fa1483047554755b6b26b3408d8f2dca48?s=32&d=identicon&r=g) Rajib says: [April 22, 2017 at 11:48 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38816) Karthik, In some US market intermediaries provide that data with their software but in India we don\\’t have it. I know it\\’s a management decision but if you guys come up with this feature it will be really awesome for option traders ?. Just a thought Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38816) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 22, 2017 at 11:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38821) We are trying to put up something around this, may take some time 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38821) 353. ![](https://secure.gravatar.com/avatar/d7f6521a1e5787fb22e5fec731f5565e240bfb75ab0b108d91987e9bd5f00229?s=32&d=identicon&r=g) Rajib says: [April 21, 2017 at 2:11 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38780) Hello Karthik, How is it possible to have historical IV for stocks (in a index form)…thanks in advance Rajib. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38780) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 22, 2017 at 10:53 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38806) Not sure if there is any source for this. I agree, it would be nice to have this data. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38806) 354. ![](https://secure.gravatar.com/avatar/406b6883551a20abf9fa74a0caf53c3959036af2b0d6aa50cd8e20706581b697?s=32&d=identicon&r=g) Ankit says: [April 15, 2017 at 12:11 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38565) Sir How to get historical data for currency too Tried to get but failed…. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38565) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 15, 2017 at 10:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38584) Explore RBI website, you may get it. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38584) 355. ![](https://secure.gravatar.com/avatar/406b6883551a20abf9fa74a0caf53c3959036af2b0d6aa50cd8e20706581b697?s=32&d=identicon&r=g) Ankit says: [April 15, 2017 at 12:08 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38564) Sir if this simple calculation for volatility works better than what is the need of that fancy IV numbers published in NSE option chain [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38564) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 15, 2017 at 10:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38583) IVs are extract using Garch models. It is quite complicated. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38583) 356. ![](https://secure.gravatar.com/avatar/390199bbf4132fe825d54721f0e853354b86c0c9bd148a02cdb1c84d11db3f39?s=32&d=identicon&r=g) madhusudan says: [April 6, 2017 at 8:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38262) Sir, Shouldn\\’t we be dividing by no of trading days instead of constant 365??? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38262) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 7, 2017 at 8:16 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38290) For markets it is usually the total number of trading days which excludes weekends and public holidays. This comes to about 252 days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-38290) 357. ![](https://secure.gravatar.com/avatar/d420725908c2bc8236b0cbed533ebaeb24a68820e95fbaf6dba16bdc786880c4?s=32&d=identicon&r=g) Sai Sreedhar says: [March 31, 2017 at 1:42 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37954) Is there any place (on NSE or elsewhere) where we can get historical IV (min & max) to check whether the current option is trading at above or below the mean of IV? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37954) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 31, 2017 at 6:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37967) Dont think anyone publishes this info. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37967) 358. ![](https://secure.gravatar.com/avatar/20abd08f89c2bb60b9d96981176a2ab0958a491c5ce3fa67160ff682f2cf77e0?s=32&d=identicon&r=g) Tirth Nakani says: [March 22, 2017 at 3:51 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37525) Hi Karthik, I think this might be an out of the topic question, but wanted to understand what all technical/fundamentals we need to check in a company\\’s stock if we are planning to pick that up for Options trading ? Also, how do we pick up a particular stock for intraday options trading ? Your insights on this please. Thanks Tirth [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37525) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 23, 2017 at 12:20 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37554) Tirth, frankly you can ignore the fundamentals when you are doing a short term trade. However, remember, whenever there is any strong fundamental news around a stock be doubly sure about the trade. From a TA perspective, it really depends on what you are following. I personally prefer MA and candle patterns. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37554) 359. ![](https://secure.gravatar.com/avatar/1b001f5cf711c698eebf2e204be2bf150da61dea2ff41f86e57e8ab9251d45bb?s=32&d=identicon&r=g) Rathinam says: [March 21, 2017 at 7:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37491) Hi Karthik, I computed the volatility for Wipro and SBI as on 21st March, 2017 with the NSE data as explained in the lesson. For Wipro, the results were matching with NSE data (1.19 % vs 1.16 %). But for SBI, the calculated volatility was double (1.94 %) vs the quoted (1.10%). For Cipla, the calculated daily volatility was 1.45 % whereas the quoted value was 0.98 %. What can be the reason for this difference? I enjoy your lectures. Thank you\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37491) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 22, 2017 at 1:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37515) Ratinam, I\\’ve noticed the difference as well. One possible reason could be the day count convention…i.e the number of days in a year you maybe considering 365 while NSE maybe taking 250 or 252 days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37515) - ![](https://secure.gravatar.com/avatar/804c1680431d6595835f3caf07babb50235358924f20ed288f994920b753012c?s=32&d=identicon&r=g) Rathinam says: [March 22, 2017 at 2:31 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37524) Karthik, I am afraid the values are daily volatility. Days count are not yet in the picture. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37524) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 23, 2017 at 12:07 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37553) Got it. Where did you source your data from? Did you download the data from NSE itself? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37553) - ![](https://secure.gravatar.com/avatar/804c1680431d6595835f3caf07babb50235358924f20ed288f994920b753012c?s=32&d=identicon&r=g) Rathinam says: [March 23, 2017 at 2:28 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37569) Yes, Karthik. From NSE. I downloaded the csv file for the past 1 year. - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 24, 2017 at 11:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37597) Not sure Rathinam, I need to check this. Will get back to you on this. Thanks. 360. ![](https://secure.gravatar.com/avatar/54d0bf6f7a2101ffd60f2a0a335450c9bd59b9d2fbd8aaaf513b83d050e8edba?s=32&d=identicon&r=g) Sanjay limbu chongbang says: [March 17, 2017 at 10:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37271) Sir can i know the intuition behind converting daily volatility to annual volatility? I.e why are we doing SQRT 365 days ? Can\\’t we simply do the power to 365 days? Looking forward for ur reply [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37271) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 18, 2017 at 3:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37312) No, there is a mathematical reason for using the Sqrt. I\\’ll try and post a link which explains this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37312) - ![](https://secure.gravatar.com/avatar/54d0bf6f7a2101ffd60f2a0a335450c9bd59b9d2fbd8aaaf513b83d050e8edba?s=32&d=identicon&r=g) Sanjay limbu chongbang says: [March 18, 2017 at 9:30 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37332) Ok sir! Looking forward\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37332) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 19, 2017 at 10:45 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37354) Cheers\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-37354) 361. ![](https://secure.gravatar.com/avatar/fa69297f22dac073f1959abb29d2122a6a52957d573cd086cd5b3c3923a7d669?s=32&d=identicon&r=g) trader2017 says: [March 4, 2017 at 8:58 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-36484) is there any source from where we can get the implied volatility of all F\&O stocks of Nifty together and where they are also arranged as per their rank? eg- from 1st rank (highest IV) to last rank (lowest IV)? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-36484) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 5, 2017 at 8:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-36509) No, not that I know off 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-36509) - ![](https://secure.gravatar.com/avatar/366b7abe8752e7d79f7fb30ffcc7e7486fba15360b0bf5533b87810220087e6d?s=32&d=identicon&r=g) sandy says: [December 15, 2017 at 2:50 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49876) Are you planning to launch this in zerodha trading platforms? I feel this should be present in all trading platforms. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49876) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 16, 2017 at 6:27 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49918) We are working on this, will make some interesting announcements around this soon. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-49918) 362. ![](https://secure.gravatar.com/avatar/2b0608a9e9ba07c1ae4850a75d1008f155ea586a090bae1c2f9733fafce752c1?s=32&d=identicon&r=g) sudheer says: [January 26, 2017 at 3:16 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-34932) Hi karthik, I have bought a 1040 CE option @9.25 6 days before the Infosys Q3 results for FY16-17 year and the spot was trading at 965 on the day of option purchase.In the run up to the results day,the spot slowly moved to 1000(the day before the Q3 results) and premium went to 16.25(because of the delta?).However on the results day the stock gapped up @ 1030 went to a high of 1040 and finally closed @975 and the premium came down to 5.So i have few queries over this trade. 1.Is it because of so much of volatility on the results day that the premiun came down by 11 points? 2.Even though the volatility cooled off and spot came to 975 ,the premium was trading @ 5 much lesser than the price(9) when spot was trading @ 965.Why is it so? 3.Also what could have been done better in this trade.I later came to know naked trades are dangerous.I made this trade to just guage my understanding of options. Thanks in advance for you help Sudheer [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-34932) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 27, 2017 at 11:29 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-34954) 1\) Yes, volatility is one of the prime driver of option premium….especially on results day. 2\) Again, it is because of volatility. In fact, when you bought the option, the premiums were probably inflated (again thanks to volatility) 3\) Check the case study here, you will appreciate it as its executed on Infy (aroud results time) – http://zerodha.com/varsity/chapter/case-studies-wrapping-it-all-up/ , section 23.5. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-34954) 363. ![](https://secure.gravatar.com/avatar/e604e173dc502ab7e196a07e177f304940734d6d30b4f4450820b35af10ddacb?s=32&d=identicon&r=g) Manoj says: [January 3, 2017 at 10:16 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-34141) Can we use this daily volitality formula in intraday trading/BTST to determine what price level it can go next day considering the present days trend [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-34141) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 4, 2017 at 11:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-34174) Yes, I do know people who use intraday volatility to set up trades. But really not sure about the success rate here. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-34174) 364. ![](https://secure.gravatar.com/avatar/536f72335308bbd648a64dd75b0084910480c4415bcf5459873326cd38b42203?s=32&d=identicon&r=g) Rajesh says: [December 25, 2016 at 9:06 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-33829) But sometimes the daily gain is negative. Then how to calculate? Is the data readily available on any site? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-33829) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 26, 2016 at 11:28 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-33834) Nope, not that I know off. Also, -ve gains does not matter. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-33834) 365. ![](https://secure.gravatar.com/avatar/536f72335308bbd648a64dd75b0084910480c4415bcf5459873326cd38b42203?s=32&d=identicon&r=g) Rajesh says: [December 21, 2016 at 5:50 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-33741) Hi karthik, Can you tell me how to calculate the range of the historical volatility in last one year for index/stock? Actually I need the HV range over last one year period. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-33741) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 22, 2016 at 2:28 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-33759) You need to calculate the daily volatility and then identify the max and min volatility to get a range. You should be able to do this on excel. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-33759) 366. ![](https://secure.gravatar.com/avatar/2b0608a9e9ba07c1ae4850a75d1008f155ea586a090bae1c2f9733fafce752c1?s=32&d=identicon&r=g) sudheer says: [October 13, 2016 at 4:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31981) Does the volatility take into consideration the trading holidays for annualized volatility or is it calculated on the full year i.e 365 days [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31981) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 14, 2016 at 10:48 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31998) I guess NSE takes into account 365 days, so I guess its ok to stick to this particular time count convention. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31998) 367. ![](https://secure.gravatar.com/avatar/21b632b1ac2a8e89aa88bd0adc4ae25b4ab263e180ca6b20b7bc24ccdf4b000c?s=32&d=identicon&r=g) Sumit says: [October 2, 2016 at 4:21 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31714) Hi Karthik, I am not understing the fact that how will i determine where a particular option Strike is costly or cheap. From the historical volatility i can derive the 1 SD which will provide me the range in which the underlying is likely to remain with a probability of 68%. But as the implied volatility changes everyday, how can i deduce whether the option is costly or cheap ? Also, what is concept of IV rank ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31714) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 4, 2016 at 11:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31755) The valuation of the option is really based on the premiums which in turn is dependent on things like Volatility. So one really needs to compare today\\’s volatility with the historical volatility to identify the expensiveness of options. Sometimes even due to market inefficiencies the prices can vary drastically from the fair price, making the options cheap or expensive. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31755) 368. ![](https://secure.gravatar.com/avatar/d420725908c2bc8236b0cbed533ebaeb24a68820e95fbaf6dba16bdc786880c4?s=32&d=identicon&r=g) Sai Sreedhar says: [September 22, 2016 at 4:56 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31484) Is it not appropriate to calculate log of net-working days than calendar days? supposing in a year there could be only 260 to 240 trading sessions when the price of share can move up or down. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31484) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 24, 2016 at 8:56 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31505) Both these conventions are practiced, some people prefer 252 days while others prefer 365. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31505) 369. ![](https://secure.gravatar.com/avatar/5dea46f1feb2dbf20ad7a5949bc93571842548965fa955a0c9ef9a74b4b7d3e9?s=32&d=identicon&r=g) Abhishek says: [September 7, 2016 at 10:26 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31127) Hi Karthik, I have a query regarding returns calc. What is the difference b/w returns calculated using Log function and Normal formula (End price/ Beg price – 1) ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31127) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 7, 2016 at 11:09 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31134) Log function brings all the numbers to a single plane (natural log), therefore gives a real sense of how the returns pan out. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-31134) 370. ![](https://secure.gravatar.com/avatar/8670ed2ad5e523794d68b81d2889cf460261eb1d05501ae27984b16155998c6a?s=32&d=identicon&r=g) Shashank T Pujar says: [August 10, 2016 at 10:41 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30433) Sir small correction: \\”Square and add up all deviations – this is called variance\\”- should changed to \\”Square and add up all deviations and divide the sum by no of observations – this is called variance\\” [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30433) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 11, 2016 at 11:52 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30454) Hey, thanks for pointing this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30454) 371. ![](https://secure.gravatar.com/avatar/8b824b81ed5d0f5b754c86c703f6fc50092e34d4cdd21a31772e45075683af9d?s=32&d=identicon&r=g) c.vijayasarathy says: [August 5, 2016 at 10:31 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30246) Thanks for explaining the concept with simple steps and in a easy language\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30246) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 5, 2016 at 11:43 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30263) Welcome\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30263) 372. ![](https://secure.gravatar.com/avatar/67410de3383e6995b77c4188ca4e0f5d42d1c615ea09f0174411784f32944f69?s=32&d=identicon&r=g) ASHOK KUMAR jANARDHAN says: [August 2, 2016 at 6:20 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30182) Thanks a lot for the prompt reply and inspirational interview of Joby. I have a few more lessons to go before I start trading. But trading definitely I will do. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30182) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 3, 2016 at 2:08 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30193) Good luck Sir. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30193) 373. ![](https://secure.gravatar.com/avatar/67410de3383e6995b77c4188ca4e0f5d42d1c615ea09f0174411784f32944f69?s=32&d=identicon&r=g) ASHOK KUMAR jANARDHAN says: [August 2, 2016 at 10:43 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30163) My age is 70 years. I have basically no knowledge of Excel. I am able to follow you till Step 2. In Step 3 in point 4 you said–After the open bracket select all the daily return data points and close the bracket. In the bracket you have put C3:C245. Where do you get C245 from? I want to get a firm grip of Options before I venture into trading. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30163) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 2, 2016 at 11:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30173) Sir, knowing excel is not a must for successful options trading. In fact, there are people without basic education qualification who are otherwise very successful in trading, check this interview – http://zerodha.com/z-connect/zerodha-60-day-challenge/winners/10th-std-pass-market-wizard-from-thrissur By the way, C245 refers to the cell which contains the last value in the list. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30173) 374. ![](https://secure.gravatar.com/avatar/5445083dec78270428d45174b8dd356393fd6c4ce25bda968c7908b6e1f34482?s=32&d=identicon&r=g) M K says: [July 29, 2016 at 4:35 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30049) Hi, noted the online calculator provided, the data is coming far different. though it\\’s helpful can you help to provide anything in excel worksheet which can backtest our results and payoff graphs on daily basis for working. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30049) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 29, 2016 at 6:51 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30059) Check this – http://avasaram.com/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30059) - ![](https://secure.gravatar.com/avatar/5445083dec78270428d45174b8dd356393fd6c4ce25bda968c7908b6e1f34482?s=32&d=identicon&r=g) M K says: [July 30, 2016 at 5:21 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30096) HI, have checked this site, but there\\’s no data they have provided for indian stock exchange triall all optiosn and strategies finder or charting screener, it;s just nothing coming over there for indian stock market. seems only related to USA markets. Please help!\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30096) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 31, 2016 at 11:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30114) I understand, but thats the best option I know off. Will keep you posted as and when I find something reliable. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30114) 375. ![](https://secure.gravatar.com/avatar/5445083dec78270428d45174b8dd356393fd6c4ce25bda968c7908b6e1f34482?s=32&d=identicon&r=g) Mk says: [July 28, 2016 at 7:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30018) HI, can you advice historical volatility for check options greeks, or you can provide any options greeks calculator for india stock market. NIFTY or other options contracts. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30018) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 29, 2016 at 9:18 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30027) Have a look at this – https://zerodha.com/tools/black-scholes [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-30027) 376. ![](https://secure.gravatar.com/avatar/878af7e060d7c21609a3bd023d1f3ff57d43c5df75ca370be03fe4ac21509db0?s=32&d=identicon&r=g) [RTKaushik](http://easyastro.com/) says: [June 15, 2016 at 11:42 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-28597) The difference between your calculation and NSE could be because NSE seems to be a Weighted one. It uses 0.94 for the \\”Volatility till yesterday\\” and gives 0.06 for \\”Today\\’s Volatility\\”. If you download the Daily Volatility, this formula is mentioned in the column header..as given below Date, Symbol Underlying Close Price (A), Underlying Previous Day Close Price (B), Underlying Log Returns (C) = LN(A/B), Previous Day Underlying Volatility (D), Current Day Underlying Daily Volatility (E) = Sqrt(0.94\*D\*D + 0.06\*C\*C), Underlying Annualised Volatility (F) = E\*Sqrt(365) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-28597) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 15, 2016 at 5:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-28609) Hey, thanks so much for clarifying this. Will download the data and have a look. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-28609) 377. ![](https://secure.gravatar.com/avatar/279074468eb9f8129640852a28f3470beb7ab2eb041ef0cb08b8204f5e5cc1ed?s=32&d=identicon&r=g) Amit D says: [June 12, 2016 at 11:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-27281) Hi Karthik, Thanks for the learning. I am a bit confused. From the above can we say that SD and volatility are the same ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-27281) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [June 13, 2016 at 11:14 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-27301) Yes, Standard deviation is a measure of volatility aka Risk. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-27301) 378. ![](https://secure.gravatar.com/avatar/e1b053250d2e564e1c4123ed3514620e5c6e6a501de3c3354bbddbaffc1d8083?s=32&d=identicon&r=g) SONJOE JOSEPH says: [April 29, 2016 at 3:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-26163) Hello Sir, What\\’s the formula for calculating the implied volatility of particular asset say nifty on a live basis. In the Nse site when they use to give the implied volatility. I have just wondered how they arrive at the calculation. Just eager to know. Regards, Sonjoe Joseph [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-26163) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [April 29, 2016 at 12:57 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-26176) Calculating the implied volatility is a fairly complex task. I\\’d suggest you take ViX values as an alternate to Nifty\\’s implied volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-26176) 379. ![](https://secure.gravatar.com/avatar/d9d654b583ada2e25678628ace5edeb5a9584d30740811e35e63d361b15d00aa?s=32&d=identicon&r=g) Sainudheen says: [March 30, 2016 at 6:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25691) Thank you sir [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25691) 380. ![](https://secure.gravatar.com/avatar/d9d654b583ada2e25678628ace5edeb5a9584d30740811e35e63d361b15d00aa?s=32&d=identicon&r=g) Sainudheen says: [March 29, 2016 at 3:20 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25681) Excellent Sir, Sir , how we get a daily and annul Volatility details from NSE, and Sir can i use daily volatility data for intraday trading using uptrend SD and Downtrend Sd and Variance. Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25681) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 30, 2016 at 6:19 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25688) Check this – https://www1.nseindia.com/live\_market/dynaContent/live\_watch/get\_quote/GetQuoteFO.jsp?underlying=INFY\&instrument=FUTSTK\&expiry=31MAR2016\&type=-\&strike=- Make sure you click on \\’other information\\’ to see the volatility details. Yes, you can use the SD values for intraday. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25688) 381. ![](https://secure.gravatar.com/avatar/b3bca012b342961a5d695690f53c9beeadd3714a478a18d8674881d810a7690d?s=32&d=identicon&r=g) Arpan says: [March 12, 2016 at 1:09 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25422) Sir, Where can we get scriptwise Implied Volatility data ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25422) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 12, 2016 at 2:46 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25435) Check the option chain on NSE, they usually publish it. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25435) 382. ![](https://secure.gravatar.com/avatar/4eefde56f52cc19a43848de81f9586f7e789b486746cca78708167f0f9a18c58?s=32&d=identicon&r=g) Saeed says: [March 6, 2016 at 7:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25269) Can we get \\’daily average return\\’ data from the nse (or any other) website like the daily volatility and the annual volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25269) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 6, 2016 at 6:30 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25296) Nope, no where that I know of. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25296) 383. ![](https://secure.gravatar.com/avatar/b470d6a75a3d22fc8570285fe515592eacff34dd2ede9a83650951eb288cd0ec?s=32&d=identicon&r=g) varun says: [March 6, 2016 at 5:44 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25265) How many types of volatility are there? what is implied volatility, India vix, volatilty index [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25265) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [March 6, 2016 at 6:19 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25293) Varun – all these are explained in the chapters related to Volatility. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-25293) 384. ![](https://secure.gravatar.com/avatar/eca07a91a05a70be8a12f57296d89df39334b4e3749ac8dc8e1ece1c65789221?s=32&d=identicon&r=g) rohan says: [January 31, 2016 at 7:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24489) can you please share the path to check volatility published by nse site [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24489) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 1, 2016 at 6:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24520) Here you go – http://www.nseindia.com/live\_market/dynaContent/live\_watch/get\_quote/GetQuoteFO.jsp?underlying=INFY\&instrument=FUTSTK\&type=-\&strike=-\&expiry=25FEB2016 click on \\’Other Information\\’ right hand side, bottom. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24520) 385. ![](https://secure.gravatar.com/avatar/eca07a91a05a70be8a12f57296d89df39334b4e3749ac8dc8e1ece1c65789221?s=32&d=identicon&r=g) rohan says: [January 29, 2016 at 6:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24433) when I am calculating return by formula LN(today\\’s closing price/yesterdays closing price) it is coming in .00077 format and not in percentage % format. what to do to get these values in % format? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24433) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 30, 2016 at 6:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24455) Just click on the cell, and format it to %. Alternatively multiply the value by 100. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24455) 386. ![](https://secure.gravatar.com/avatar/50ac6c044bd8ef95d55e05c128fe91542fce05c465d7193fa54aaf2883912a7f?s=32&d=identicon&r=g) Dev says: [January 28, 2016 at 11:33 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24413) Hi Karthik, In 20.2 VOLATILITY CONE, can you please explain how was the annualized realized volatility calculated. You have explained how to calculate Volatility using historical data ( I believe the volatility calculated above in the earlier chapters was Historical volatility). How did you calculated the realized volatility shown in the table Expiry date against annualized realized volatility. Is there any other data to be used to calculate realized volatility? Regards, Dev [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24413) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 29, 2016 at 2:39 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24426) Devandra, I\\’ve been wanting to put up the excel for a long time. This piece has been authored by someone else and I\\’ve been waiting for the excel so that I could upload the same. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24426) - ![](https://secure.gravatar.com/avatar/50ac6c044bd8ef95d55e05c128fe91542fce05c465d7193fa54aaf2883912a7f?s=32&d=identicon&r=g) Dev says: [January 29, 2016 at 5:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24431) Thanks, I searched on the internet for calculating realized volatility but couldn\\’t find an easy way to get through…I could only find methods to calculate Historical Volatility, but not as easy and comprehensive as explained in your module. really appreciate your efforts… Is it possible for you to email me websites or source where I can find one. Regards, Dev [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24431) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 30, 2016 at 6:31 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24453) Realized volatility for today, is historical volatility for t\\’row 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24453) - ![](https://secure.gravatar.com/avatar/50ac6c044bd8ef95d55e05c128fe91542fce05c465d7193fa54aaf2883912a7f?s=32&d=identicon&r=g) Dev says: [February 4, 2016 at 6:14 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24615) HI, Thanks…Just finished reading module for Options…worth reading and so much to take in and analyze. Thanks again for the simplified explanation. When can we have the excel sheet on realized Volatility calculation(the one you have been waiting for authorization)..please get it ASAP. Regards, Dev - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 5, 2016 at 5:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24621) Thanks Dev, I\\’ve been chasing the guy as well, but cant really push him much as he is getting married next week 🙂 - ![](https://secure.gravatar.com/avatar/50ac6c044bd8ef95d55e05c128fe91542fce05c465d7193fa54aaf2883912a7f?s=32&d=identicon&r=g) Dev says: [February 12, 2017 at 9:49 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-35672) I have tried a lot but i could not get the calculation right for the volatility cone in the chapter 20 module 5-2. we chatted earlier aswell. i checked the website and found that you have uploaded the volatility cone excel sheet in april 2016, but couldn\\’t find the source. can you help me with the link. i have been persistently trying to match the calculation with the no\\’s in the chapter but i am not able to get it right. Can you please help me with the link. Regards, Dev - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 13, 2017 at 11:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-35692) You can download the excel and check out the calculation, this is there are the end of the chapter. - ![](https://secure.gravatar.com/avatar/50ac6c044bd8ef95d55e05c128fe91542fce05c465d7193fa54aaf2883912a7f?s=32&d=identicon&r=g) Dev says: [February 13, 2017 at 6:52 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-35707) Hi Karthik. Thanks a ton…at last i did find it…went through the calculations…now i got to dig the gem…lol thanks again. Regards, Dev - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [February 14, 2017 at 11:15 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-35733) Good luck, Dev 🙂 387. ![](https://secure.gravatar.com/avatar/99d86d50e6157a701cfdb2a7f74f95b3614a949a07bf50da10f9635195217912?s=32&d=identicon&r=g) subhankar says: [January 13, 2016 at 10:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24065) Thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24065) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 14, 2016 at 5:38 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24069) Welcome\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24069) 388. ![](https://secure.gravatar.com/avatar/99d86d50e6157a701cfdb2a7f74f95b3614a949a07bf50da10f9635195217912?s=32&d=identicon&r=g) SUBHANKAR says: [January 12, 2016 at 2:19 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24042) How much sample data required for calculation Standard deviation and average? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24042) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 13, 2016 at 7:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24057) 6 months to 1 year should be good. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24057) 389. ![](https://secure.gravatar.com/avatar/99d86d50e6157a701cfdb2a7f74f95b3614a949a07bf50da10f9635195217912?s=32&d=identicon&r=g) SUBHANKAR says: [January 12, 2016 at 8:48 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24034) How can i get the currency data the way you got it for WIPRO? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24034) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 13, 2016 at 7:05 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24050) Check this – http://www.nseindia.com/products/content/equities/equities/eq\_security.htm [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-24050) 390. ![](https://secure.gravatar.com/avatar/b1d2c9bd298d1ca663220d24f9b9c1646b31753032124fb8a1d34205111f27bb?s=32&d=identicon&r=g) Vikas Bohra says: [January 7, 2016 at 9:13 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23922) I have checked with the Simple returns formula as well for Axis Bank, I am getting a Daily Volatility of around 2.14% and Annualized Volatility of Around 40% which is far more than mentioned on NSe Website. i.e. 28% Can you Calculate once for a better understanding . Date = Axis Bank for past 365 days [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23922) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 7, 2016 at 6:39 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23937) Will run through the calculations and figure out whats happening Vikas. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23937) 391. ![](https://secure.gravatar.com/avatar/b1d2c9bd298d1ca663220d24f9b9c1646b31753032124fb8a1d34205111f27bb?s=32&d=identicon&r=g) Vikas Bohra says: [January 5, 2016 at 2:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23878) Hi Karthik First of all i will like to thank you for explaining beautifully all the concepts be it technical, fundamental or Volatility Related. i have been reading all the concepts from past 1 month and now i will like to work on Delta for Volatility based trading. although i am very thorough with the practicals but i wanted my theory to be clear as well. i have a small doubt related to calculation of Daily And Annual Volatility. the Example which you have shown in – Wipro Date ranging from 22nd July 2014 – 21st July 2015. Now when i repeat it on Wipro It gives the exact same answer. but when i tried it on all other current stocks like axis bank and be it nifty and compare it with Nse website there is a vast difference. can you help me with it. i am attaching the snapshots below. please help me why is there a huge difference between my calculation based on the same formulas which you have provided in this module and the one provided on the nse website. please reply asap [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23878) - ![](https://secure.gravatar.com/avatar/b1d2c9bd298d1ca663220d24f9b9c1646b31753032124fb8a1d34205111f27bb?s=32&d=identicon&r=g) Viikas Bohra says: [January 5, 2016 at 2:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23879) PS – The The Range of Data of Axis Bank is exactly last 365 days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23879) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 6, 2016 at 7:37 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23889) Sure, as I mentioned please try with futures data once. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23889) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 6, 2016 at 7:36 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23888) Vikas – I suppose you are using the spot data, can you try this with futures data? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23888) - ![](https://secure.gravatar.com/avatar/b1d2c9bd298d1ca663220d24f9b9c1646b31753032124fb8a1d34205111f27bb?s=32&d=identicon&r=g) Vikas Bohra says: [January 6, 2016 at 8:02 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23895) I tried it with futures data as well but the difference is huge. Have Nse changed their calculation methods or am I making a silly mistake. I don\\’t know but I proof checked it several times. It\\’s the same 40 % for axis bank where as Nse website states it around 20% Please throw some light on the issue Sir [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23895) - ![](https://secure.gravatar.com/avatar/b1d2c9bd298d1ca663220d24f9b9c1646b31753032124fb8a1d34205111f27bb?s=32&d=identicon&r=g) Vikas Bohra says: [January 6, 2016 at 8:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23897) Sorry typo error in the above comment Nse website states 28% [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23897) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 6, 2016 at 8:43 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23900) Are you using simple return or log returns to calculate the daily returns? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23900) - ![](https://secure.gravatar.com/avatar/b1d2c9bd298d1ca663220d24f9b9c1646b31753032124fb8a1d34205111f27bb?s=32&d=identicon&r=g) Vikas Bohra says: [January 6, 2016 at 9:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23901) Sir I am using log returns formula which you have mentioned above in the module - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 7, 2016 at 8:05 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23912) Sure. Can you please check with simple returns once? Simple returns is calculated by dividing today\\’s close over yesterday minus one. 392. ![](https://secure.gravatar.com/avatar/5a64efd57bbd7a1e85b905c7a2f093ae29c9fc50b62af93b055d746d63116406?s=32&d=identicon&r=g) SARATH says: [December 10, 2015 at 6:32 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23493) sir, i calculated nifty daily volatility as per my calculation daily volatility is 0.76% and in nse website is 0.81% i think calculation is fine right? and i have i a doubt as per your excel sheet i download nifty 30 days data and calculate and i got above volatility (.76) and also get 14.60% anual volatility , and i edit equation to F5\*SQRT(30)for getting one month volitily and i got 4.19% am i right? please guid me !\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23493) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 10, 2015 at 9:37 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23504) Perfect Sarath. Your calculations seems to be right. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23504) - ![](https://secure.gravatar.com/avatar/5a64efd57bbd7a1e85b905c7a2f093ae29c9fc50b62af93b055d746d63116406?s=32&d=identicon&r=g) sarath says: [December 10, 2015 at 11:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23506) sir as per daily volatility .76% ,if nifty yesterday close is 7800 so we can expect nifty will go 7740-7859 range(7800-(7800\*.76/100 to 7800+(7800\*.76/100) today is it right? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23506) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [December 11, 2015 at 11:00 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23518) Sarath – suggest you look at the calculations here – http://zerodha.com/varsity/chapter/volatility-applications/ Section 18.1 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23518) 393. ![](https://secure.gravatar.com/avatar/38104edd842100136560cc2d4c33a0115e9ab3ef5d348436bfcbba665a320012?s=32&d=identicon&r=g) tilak says: [November 20, 2015 at 8:29 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22995) Karthik, help me to understand how do decide entry and exit points delivery with target of 2-5%. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22995) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 22, 2015 at 2:50 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23020) Have you given this a shot – http://zerodha.com/varsity/chapter/support-resistance/ ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23020) 394. ![](https://secure.gravatar.com/avatar/3d460bb631e8279e78baa4c5f331dc413c0f3e1123625cf05887149da9e74b23?s=32&d=identicon&r=g) Ankit Bhatt says: [November 19, 2015 at 12:48 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22965) Ahesan4004 http://www.nseindia.com/live\_market/dynaContent/live\_watch/get\_quote/GetQuoteFO.jsp?underlying=WIPRO\&instrument=FUTSTK\&type=-\&strike=-\&expiry=26NOV2015 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22965) 395. ![](https://secure.gravatar.com/avatar/461a8de52879fadd723fe81cf7ad8746a89d812683297cdd9df347457ad00cda?s=32&d=identicon&r=g) aehsan4004 says: [November 19, 2015 at 11:52 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22964) CAN SOMEONE PLEASE SHARE DIRECT LINK OF NSE SITE PAGE WHERE ANNUAL & DAILY VOLATILITY OF EQUITIES AND CURRENCY BE FOUND ? i have spent 3 days on NSE website …… didn\\’t found the page from where this screenshot is taken . [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22964) - ![](https://secure.gravatar.com/avatar/3d460bb631e8279e78baa4c5f331dc413c0f3e1123625cf05887149da9e74b23?s=32&d=identicon&r=g) Ankit says: [November 19, 2015 at 6:09 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22971) Ahesan4004 here is link http://www.nseindia.com/live\_market/dynaContent/live\_watch/get\_quote/GetQuoteFO.jsp?underlying=WIPRO\&instrument=FUTSTK\&type=-\&strike=-\&expiry=26NOV2015 By the way wat r u doing for 3 days on nse website 😉 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22971) - ![](https://secure.gravatar.com/avatar/461a8de52879fadd723fe81cf7ad8746a89d812683297cdd9df347457ad00cda?s=32&d=identicon&r=g) aehsan4004 says: [November 20, 2015 at 6:36 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22987) for some foolish reason , kept on visiting historical data section and downloaded csv of almost everything . i will bookmark this link now . this is the first time i have trouble navigating websites . [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22987) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 20, 2015 at 6:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22989) Good luck, stay profitable\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22989) - ![](https://secure.gravatar.com/avatar/461a8de52879fadd723fe81cf7ad8746a89d812683297cdd9df347457ad00cda?s=32&d=identicon&r=g) aehsan4004 says: [November 20, 2015 at 7:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22992) THANKS A TON sir ….i hope i am not causing you too much trouble ……. i really appreciate your great work ….. hope someday we can meet , so that i can thank you personally 🙂 - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 22, 2015 at 2:47 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23017) This is not trouble 🙂 Hope to meet you as well \! - ![](https://secure.gravatar.com/avatar/3d460bb631e8279e78baa4c5f331dc413c0f3e1123625cf05887149da9e74b23?s=32&d=identicon&r=g) Ankit Bhatt says: [November 20, 2015 at 7:36 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22993) its okay yaar just kidding….. Hota hai starting me aisa hota hai….NO problem Stay hungry , Stay foolish.. (To learn new things in life) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22993) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 22, 2015 at 2:47 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-23018) 🙂 - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 20, 2015 at 5:43 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22982) Check this – http://tradingqna.com/25033/volatility-volatility-indices-currency-derivatives-website [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22982) 396. ![](https://secure.gravatar.com/avatar/0f50716364c12bfe14c92cbc900983546f57b0b0f5938784b380462fc47a78f4?s=32&d=identicon&r=g) tramadevi says: [November 19, 2015 at 8:30 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22958) Sir, Iam getting max historical data in NSE for 2 yrs. Where to look for more than 2yrs . Regards [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22958) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 20, 2015 at 5:36 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22978) Change the years…date it back to older years and you should be able to get it. You can also try contacting them – http://www.nseindia.com/global/content/contact\_us/contact\_us.htm [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22978) 397. ![](https://secure.gravatar.com/avatar/ec87a81d203ba4eb8addb0f7e47550661cb39c4d7789010e2d72724dbb4c4e31?s=32&d=identicon&r=g) Mr. T Barua says: [November 18, 2015 at 8:09 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22941) Why annualised volatility of NIFTY changes everyday ? According to the excel provided by you it remains almost constant. On 18/11/2015 annualised volatility of nifty was 15.49% and on 19/11/2015 it is 16.49%. According to the excel provided by you guys it comes to around 20%. Same is the case with bank nifty and other instruments. Thank you. T Barua [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22941) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 19, 2015 at 5:24 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22955) Volatility is a function of price. If the price moves drastically then volatility also changes. This must have been the case here. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22955) 398. ![](https://secure.gravatar.com/avatar/0f50716364c12bfe14c92cbc900983546f57b0b0f5938784b380462fc47a78f4?s=32&d=identicon&r=g) tramadevi says: [November 18, 2015 at 8:28 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22934) Sir, The values shown for Daily and Annual volatility in NSE site are with 1 yr data or some other. kindly clarify. Thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22934) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 19, 2015 at 5:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22950) Yes, it is for 1 year. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22950) 399. ![](https://secure.gravatar.com/avatar/3f20d1d0b01870e20cb6b211e226a60772a25760b0aefdff17238300290f52b4?s=32&d=identicon&r=g) Sooraj J Mishra says: [November 17, 2015 at 3:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22927) Hi Karthik Sir, I am trying to load data of Nifty for volatility calculation. but It says no record found…..Why so?? Data for other stocks are being loaded by not for Nifty. please help me… [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22927) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 19, 2015 at 5:15 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22946) You can download data only in 1 year slots, try this link – http://www.nseindia.com/products/content/equities/indices/historical\_index\_data.htm [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22946) - ![](https://secure.gravatar.com/avatar/3f20d1d0b01870e20cb6b211e226a60772a25760b0aefdff17238300290f52b4?s=32&d=identicon&r=g) Sooraj J Mishra says: [November 19, 2015 at 6:41 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22957) Its working Sir….!!! Thanks…!\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22957) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 20, 2015 at 5:34 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22977) Welcome\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22977) 400. ![](https://secure.gravatar.com/avatar/0f50716364c12bfe14c92cbc900983546f57b0b0f5938784b380462fc47a78f4?s=32&d=identicon&r=g) tramadevi says: [November 16, 2015 at 6:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22874) Sir, What is ATR and how to look Regards [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22874) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 16, 2015 at 9:53 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22889) ATR is Average true range…its an indicator. Its a method identify the volatility of a stock or index. Standard technical analysis software packages have ATR indicators. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22889) 401. ![](https://secure.gravatar.com/avatar/461a8de52879fadd723fe81cf7ad8746a89d812683297cdd9df347457ad00cda?s=32&d=identicon&r=g) aehsan4004 says: [November 15, 2015 at 10:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22860) sir , can you give direct link where this daily and yearly volatility is shown ? also can you show the same data for currency ? i tried to find on NSE but was not able to get it . thank you [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22860) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 16, 2015 at 9:39 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22884) Unfortunately, this is the only spot (as far as I know) on NSE where this information is present. I\\’m not sure about commodities. Sorry about that. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22884) 402. ![](https://secure.gravatar.com/avatar/461a8de52879fadd723fe81cf7ad8746a89d812683297cdd9df347457ad00cda?s=32&d=identicon&r=g) aehsan4004 says: [November 11, 2015 at 7:30 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22756) 1\) instead of calculatin volatility on our own using excel …. can we simply reply & use the NSE READINGS ? 2) CAN SIMILAR VOLATILITY calculations be done for currency & commodity as well ? 3) for commodity we do not have options availability ….. can volatility be of any use for simple futures trading ? if yes,how ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22756) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 12, 2015 at 4:55 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22777) 1\) You can. Worst case you can even look at ATR (for intraday) 2) Yes 3) You can use it to place stop loss. Check the chapter on volatility applications. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22777) 403. ![](https://secure.gravatar.com/avatar/7ee6afe9ffa364dc31d1286f5f2a6fceb33874a0a44228fafc3e06aecb688023?s=32&d=identicon&r=g) Sandeepreally helpful in trading. says: [October 31, 2015 at 3:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22371) We can use VIX,right. Does Gamma really helpful in trading. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22371) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [November 2, 2015 at 5:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22421) It does, especially when your trading book is large\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22421) 404. ![](https://secure.gravatar.com/avatar/e0c5676b0010b6c173547fcee070869b7f63f0aa1beadefdaa06fe9d0a9dc234?s=32&d=identicon&r=g) kggupta says: [October 23, 2015 at 2:31 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22026) You have already solved the nifty range from upper to lower. I am interested to down load the data and work to solve it. So kindly let me know the dates from which date to what date the data has been used. I Shall be grateful to you for your this act of kindness. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22026) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 26, 2015 at 6:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22098) Sir please refer to the excel …it has the dates as well. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22098) 405. ![](https://secure.gravatar.com/avatar/e0c5676b0010b6c173547fcee070869b7f63f0aa1beadefdaa06fe9d0a9dc234?s=32&d=identicon&r=g) KGGUPTA says: [October 22, 2015 at 12:30 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21992) I down loaded wipro from 22/07/14 to 21/07/15 and found out the daily return for each column and then added. The total was 0.01745. Now how to find the av. daily return. Is it to divide the total with 242. or some other method is to be used . You have solved nifty for 1 year or so on. I want to solve it of my own. CMP shown is 8337. May i know the data from which dates is employed.I shall download it my self and calculate like you. Please do not mind the trouble i am putting you in.This will improve my solving capacity. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21992) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 26, 2015 at 5:22 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22091) Please select all the values in the daily return column and use the =AVERAGE function in excel. Also, just follow the instruction the excel, it should help you through. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-22091) 406. ![](https://secure.gravatar.com/avatar/e0c5676b0010b6c173547fcee070869b7f63f0aa1beadefdaa06fe9d0a9dc234?s=32&d=identicon&r=g) KGGUPTA says: [October 19, 2015 at 8:29 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21873) Great. i was able to calculate STDEV or daily volatility and then annual volatility by your method.Here i multiplied the daily volatilty with 365 when the data was for 248 days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21873) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 21, 2015 at 1:18 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21950) Sure. Do remember to scale daily vol to annual vol you need to multiply it by square root of time. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21950) 407. ![](https://secure.gravatar.com/avatar/e0c5676b0010b6c173547fcee070869b7f63f0aa1beadefdaa06fe9d0a9dc234?s=32&d=identicon&r=g) KGGUPTA says: [October 19, 2015 at 5:05 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21866) I downloaded the price of asianpaints for a year from 17/10/14 to 16/10 /15. Total days involved were only 248 and not 365.May be because of holidays. Now to find out the mean are we going to divide the total value by 248 or 365? I found for finding annual deviation we are multiplying daily returns with 365. And for finding daily returns we divide annual deviation by 365. I do not understand the principle. Please elaborate the fact. thanks [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21866) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 21, 2015 at 1:06 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21945) Yes, although there are only 252 trading days we end up taking 365 days. This is because of something called as the \\’Day count convention\\’. NSE uses a particular day count convention called Actual by Actual, which requires them to take 365 days in the denominator, hence we use the same. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21945) 408. ![](https://secure.gravatar.com/avatar/e0c5676b0010b6c173547fcee070869b7f63f0aa1beadefdaa06fe9d0a9dc234?s=32&d=identicon&r=g) KGGUPTA says: [October 18, 2015 at 5:01 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21788) Can we get data on metals,crudeoil like wipro.If yes what is the source. Can you explain this data so that we can trade in metals and crude oil. i like to trade in MCX. regards [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21788) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 18, 2015 at 2:38 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21826) You can, just check with http://neotradeanalytics.com/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-21826) 409. ![](https://secure.gravatar.com/avatar/494346218e5c5cc4e68b388dbd8f96be726c4c7698168b02ddbc961dfbb09f95?s=32&d=identicon&r=g) jaganathan says: [October 12, 2015 at 11:05 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-20504) Thank you so much for the lesson.Really very simple to learn.Keep up the good work. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-20504) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [October 13, 2015 at 12:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-20549) Thank you 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-20549) 410. ![](https://secure.gravatar.com/avatar/65cfbcf633d28d43f6789e36bcf4f7dae376c6d21e00edb90331ff330301eec3?s=32&d=identicon&r=g) AJEESH says: [September 26, 2015 at 1:34 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-19761) this calculation possible in amibroker [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-19761) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 26, 2015 at 2:12 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-19770) Not sure, I would suggest you to check with http://www.neotradeanalytics.com/ for this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-19770) 411. ![](https://secure.gravatar.com/avatar/e1d91a666ae8edbe3b2d1b53b573564600c7bc1dec341067fec8082e27b29a72?s=32&d=identicon&r=g) Naitik says: [September 10, 2015 at 3:26 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-18883) Hi, I have one doubt. How do we find all the above mentioned calculations for a Stock which has been Split/Bonus within past year? is there any suitable change for the excel sheet calculations ? For Example : Infy has been changed from 4000 to 2000 to 1000 in just 1 last year [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-18883) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [September 11, 2015 at 5:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-18925) Yes, for this the data has to be clean and adjusted for splits and bonus. Usually data vendors such as http://www.neotradeanalytics.com/ do this for you. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-18925) - ![](https://secure.gravatar.com/avatar/0a9baf06d446526748ba5b7b4ff0717259bc8a0625dd9deef863c35a940dad5b?s=32&d=identicon&r=g) Suren says: [January 30, 2017 at 11:01 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-35040) The neotradeanalytics site seems to be shutdown. Can you explain what do you mean by cleaned and adjusted ? Can we ourselves not do it ? Please explain with an example. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-35040) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [January 30, 2017 at 11:34 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-35050) Yup, unfortunately they shut shop. Check https://www.truedata.in/ instead. Clean and adjusted usually refers to cleaning up the data for corporate actions such as – splits, bonus, special dividends etc. Doing it yourself can be quite challenging considering these things happen everyday…for some stock or the other. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-35050) 412. ![](https://secure.gravatar.com/avatar/2eff9f41bc4f8712271450b06816ee31986fd41cd350327c0cdc2b6d477ded8b?s=32&d=identicon&r=g) raj says: [August 25, 2015 at 6:03 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-18070) karthik, i just calculated the daily volatility of glenmark. i found that there is a difference of 1 % between my calculation and that published on NSE…could this be because i extracted data for the last 6 months(closing price) and the NSE probably does it on a 1 year data? i used the =STDEV() for the same. thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-18070) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 27, 2015 at 5:24 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-18139) Yes, that does make a difference. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-18139) 413. ![](https://secure.gravatar.com/avatar/f7cbbbeb1c8c3e011f9a167b4703302eed1348d5356056af50e4274840c04719?s=32&d=identicon&r=g) arun says: [August 20, 2015 at 5:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17810) How often do you calculate and update daily returns for use in trading? As these values are used for calculations in chapter after this, do we need to calculate it with new data every day [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17810) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 21, 2015 at 7:04 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17847) If you are writing options once a month it makes sense to do the calculation once that month. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17847) 414. ![](https://secure.gravatar.com/avatar/418475377ee19f8614bb7a4745fb7811480c418dc3d3c75c0f2c570d85c573f8?s=32&d=identicon&r=g) Amitvikram says: [August 20, 2015 at 1:31 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17803) How can i get the NIFTY data the way you got it for WIPRO, am typing NIFTY, but no records are shown!\! [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17803) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 21, 2015 at 6:57 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17845) Try this link – http://www.nseindia.com/products/content/equities/indices/historical\_index\_data.htm [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17845) 415. ![](https://secure.gravatar.com/avatar/2eff9f41bc4f8712271450b06816ee31986fd41cd350327c0cdc2b6d477ded8b?s=32&d=identicon&r=g) raj says: [August 15, 2015 at 7:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17551) thanks karthik, how do i drop and drag the formula? i am not proficient with the usage of excel. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17551) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 16, 2015 at 12:47 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17604) You can check the excel tutorials here – http://chandoo.org/wp/2009/08/17/rows-and-columns-excel-formulas/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17604) 416. ![](https://secure.gravatar.com/avatar/2eff9f41bc4f8712271450b06816ee31986fd41cd350327c0cdc2b6d477ded8b?s=32&d=identicon&r=g) raj says: [August 13, 2015 at 3:42 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17462) Karthik, while calculating daily return for hindustan petroleum using =LN() , the same is displayed as 0.061547 and, not in percentage points. how do i convert the same into %age? secondly, do we have to individually calculate for all the dates i.e the whole year one at a time using the above formula? or is there a formula to do the same in one go for all 365 days? calculating daily returns for all the respective 365 days individually seems to be a humongous task. do clarify. thanks. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17462) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 14, 2015 at 4:25 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17512) Raj – keep the cursor on the cell which contains \\’0.061547\\’ and then select the \\’%\\’ symbol that you can see in the Excel window. This button is placed right below the word \\’General\\’ which is somewhere in the top middle. Once you do this the figure should change to 6.1547%. Also you need not have to do this individually for all 365 day, just drag and drop the formula and it will automatically get calculated for all days. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17512) 417. ![](https://secure.gravatar.com/avatar/bc351f40c8f6c1c859529bcc17ef10c45da31b120ac274c9b61b0ea9acfbc77b?s=32&d=identicon&r=g) Shibashis says: [August 7, 2015 at 8:33 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17249) Hi Karthik, One question regarding daily return calculation. By using ((570.9-558.75)/570.9)\*100 this formula daily return is :2.12%. But we are getting 2.15% using log base e.please tell me, Why you use log base e over linear return or even log base 10. Thanks in advance. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17249) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 9, 2015 at 3:26 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17289) Check this – http://tradingqna.com/3574/why-stock-returns-are-calculated-in-log-scale?show=3574\#q3574 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17289) 418. ![](https://secure.gravatar.com/avatar/d1a0b63bc55e11e5a74c77e11d92b7027a789f240af498dd490f1a7786edfb14?s=32&d=identicon&r=g) Abhijit Haware says: [August 5, 2015 at 7:24 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17148) Hello Mr Karthik, Eagerly waiting for next chapters….kindly update the same… [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17148) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 5, 2015 at 7:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17154) In a day or 2 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17154) - ![](https://secure.gravatar.com/avatar/d1a0b63bc55e11e5a74c77e11d92b7027a789f240af498dd490f1a7786edfb14?s=32&d=identicon&r=g) Abhijit Haware says: [August 5, 2015 at 8:07 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17158) Thanks for update… I know that you would update chapters in strategies in coming days but I want to know are there any strategies for intraday option trading? and what are those? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17158) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 6, 2015 at 6:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17175) Abhijit – this is a hard query for me :). At the moment I wont be able to comment on this, so please do bear with me. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17175) 419. ![](https://secure.gravatar.com/avatar/dd44f8b627bb5a5f74439fff1d2de6b76aab4a5d252a4be0ab91017afcc3411a?s=32&d=identicon&r=g) vasanth says: [August 4, 2015 at 5:27 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16894) Today nifty index suddenly showed a huge spike at 11Hrs which may be due to the no change in rate cut/behaved due to some other issues. How the programmed index which is running through the market partcipants immediately behaving according to the current scenarios? Is there any manual feed/input to the programmed exchange? If yes, then insiders are the players whose odds are high compare to the normal traders.. can you clarify. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16894) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 5, 2015 at 7:34 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17153) No Vasanth – nothing like that happens. Index is like a car which can go at a speed dependent of the accelerating capacity of the driver….similarly the index derives its values which is dependent on the underlying stocks. No one can manipulate this. Suggest you read this chapter – http://zerodha.com/varsity/chapter/the-stock-markets-index/ [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-17153) 420. ![](https://secure.gravatar.com/avatar/cce3ca06e3b83d95e8e68ffd460784c2e79f7d39d0a97c19ac187eb96e62cf35?s=32&d=identicon&r=g) ShreyaDR says: [August 4, 2015 at 4:39 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16785) also wanted to ask, if annual volatility can be calculated with the help of a formula from a daily volatility by taking 365 days. how to calculate monthly volatility? by taking no. of days in a month i.e 30 or 31? or 20/22 i.e. actual no. of trading sessions? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16785) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 4, 2015 at 6:47 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16791) Since we are taking the full calender of 365 days, it makes sense to take the actual number of days in the month i.e 30 or 31. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16791) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 4, 2015 at 6:48 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16792) Since we are taking the full calendar days i.e 365, it makes sense to take the actual number of days in the month i.e 30 or 31. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16792) 421. ![](https://secure.gravatar.com/avatar/5a64efd57bbd7a1e85b905c7a2f093ae29c9fc50b62af93b055d746d63116406?s=32&d=identicon&r=g) sarath says: [August 3, 2015 at 3:54 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16756) karthik, how the volatility effect the option premium like delta ,theta . [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16756) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 3, 2015 at 5:26 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16762) We are getting there sarath 🙂 The idea is to understand volatility completely before understanding its effect on Options premium. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16762) 422. ![](https://secure.gravatar.com/avatar/f398e24dcc8463fa95c8ae47497403ad1b353c92b179fd80b7dece25bbb59569?s=32&d=identicon&r=g) Krish says: [August 2, 2015 at 2:59 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16737) 1\. How to determine whether volatility is high or low for a particular stock option? For certain stocks the number can be interpreted as high whereas the same number can represent low for others. So what is the indicator based on which we can say it\\’s high or low for a particular stock? Is it by comparing the annualised historical volatility number with current IV number? 2\. What is the expected time for an option volatility to raise before an event ? is it one day or five days or more than that? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16737) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 3, 2015 at 5:21 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16760) Krish – super valid questions. 1\) Yup – you are right here. To evaluate if today\\’s volatility is high or not wrt to historical vol…one of the methods is to compare today\\’s implied vol with historical vol. More on this topic in the coming chapters. 2\) Cant put a number for this – but usually about 1 trading week before the event vol starts to increase. Disclaimer – This is purely from my personal observation, could be wrong here. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16760) 423. ![](https://secure.gravatar.com/avatar/740ac1bd702bb82931e9db80a2fd7f60598de02c8515f5b2e1dd0e7c4f1c6c5b?s=32&d=identicon&r=g) Shankar says: [August 1, 2015 at 6:58 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16688) Hi Karthik Using the daily/annual volatility, can we also calculate the range of the stock/index for the next day? Shankar [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16688) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 2, 2015 at 5:45 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16718) Yes, we can do that…in fact chapter 17 (will be uploaded next week) will discuss this. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16718) 424. ![](https://secure.gravatar.com/avatar/dd44f8b627bb5a5f74439fff1d2de6b76aab4a5d252a4be0ab91017afcc3411a?s=32&d=identicon&r=g) Vasanth says: [July 31, 2015 at 2:19 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16645) Is there any resource readily available to project the Greeks value during market hours depending upon the movement? Calculating Greeks during market hours is difficult in intraday trading… [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16645) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 31, 2015 at 6:50 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16655) Not that i know of…but my experience tells me that over a period of time you will develop a sense for this and kind of start approximating the values in your mind 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16655) 425. ![](https://secure.gravatar.com/avatar/5a64efd57bbd7a1e85b905c7a2f093ae29c9fc50b62af93b055d746d63116406?s=32&d=identicon&r=g) sarath lal says: [July 29, 2015 at 2:41 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16584) hi kartik, i have a doubt what is liquidity? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16584) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 30, 2015 at 5:35 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16616) Liquidity is the ease at which you can buy or sell shares from the market – you can read more about it here – http://zerodha.com/varsity/chapter/nifty-futures/ (refer section 9.2). [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16616) 426. ![](https://secure.gravatar.com/avatar/e83b2c1666b2ac7fe602c5652862c13a28a59542aac9fd550795f326ac22ee72?s=32&d=identicon&r=g) NARSIMHA says: [July 28, 2015 at 12:11 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16536) sir,ofcourse its good but it will be applicable in reality,ithink the simpler ur the better,correct me if iam wrong [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16536) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 29, 2015 at 6:08 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16569) Simplicity is relative 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16569) 427. ![](https://secure.gravatar.com/avatar/60899cf6d796bc7a9d4c6d0869979e1d24c2ab1a126b89b360cd0bb62a269d26?s=32&d=identicon&r=g) Wannbetrader says: [July 27, 2015 at 9:00 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16482) I know there is chapter coming on option strategies, but what I read so far had following thought, can you verify if it make sense? Using the daily volatility we can predict how much can given stock move in next few days, so using this info couple of days before expiry can give us high probability trades for example, Syndicate Bank has volatility of 2.5% with CMP of 99.7, if it continues downward move its closing price on Thursday (expiry) should be minimum 92.xx, which means PUT option of SP 90 will be OTM and end up expiring worthless that means if we short it today at CMP of .40, we have high chances of earning .40 \* 2000 800 RS in 4 days. I was tempted to say we have sure shot chance , but then nothing is sure in Market 🙂 Makes sense? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16482) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 27, 2015 at 11:03 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16490) That part \\”nothing is sure in markets\\” certainly makes sense 🙂 Btw, yes you are more or less heading the right way, its just that we need to be aware of certain probabilities when it comes to such trades. I\\’m writing about this in the upcoming chapter. Please stay tuned. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16490) - ![](https://secure.gravatar.com/avatar/60899cf6d796bc7a9d4c6d0869979e1d24c2ab1a126b89b360cd0bb62a269d26?s=32&d=identicon&r=g) Wannbetrader says: [July 27, 2015 at 11:05 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16491) (y) yep, eagerly waiting for next chapters [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16491) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 29, 2015 at 5:52 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16566) The next chapter is taking a bit longer…but I\\’m hoping it will be worth the wait 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16566) - ![](https://secure.gravatar.com/avatar/60899cf6d796bc7a9d4c6d0869979e1d24c2ab1a126b89b360cd0bb62a269d26?s=32&d=identicon&r=g) Wannbetrader says: [July 29, 2015 at 8:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16578) 🙂 no worries, going thru TA section till then. - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 30, 2015 at 5:22 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16613) Awesome\! - ![](https://secure.gravatar.com/avatar/cce3ca06e3b83d95e8e68ffd460784c2e79f7d39d0a97c19ac187eb96e62cf35?s=32&d=identicon&r=g) ShreyaDR says: [August 4, 2015 at 2:10 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16782) What will be the monetary consequences, if i leave this to settle by exchange in respect of brokerage+taxes+Short term capital gain? ( talking about the example given by WANNBETRADER) [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16782) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [August 4, 2015 at 6:46 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16790) It is always advisable to close ITM options before expiry to avoid the STT trap. We have a nice article explaining this, check this – http://zerodha.com/z-connect/queries/stock-and-fo-queries/stt-options-nse-bse-mcx-sx [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16790) - ![](https://secure.gravatar.com/avatar/60899cf6d796bc7a9d4c6d0869979e1d24c2ab1a126b89b360cd0bb62a269d26?s=32&d=identicon&r=g) Wannbetrader says: [July 28, 2015 at 3:35 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16544) and marked proved again that nothing is sure in market :)… it fell more than 9% today so the OTM put is not ITM with value from .40 to 1.40 :)… [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16544) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 29, 2015 at 6:11 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16571) 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16571) 428. ![](https://secure.gravatar.com/avatar/2f94fe70226593c9f9efc7dd592649a9298a0b28445b9726163fa5251c92b289?s=32&d=identicon&r=g) Pankit Shah says: [July 27, 2015 at 5:17 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16470) Hi Nitinji, I have a query….right now the market is trading sideways,1 day it increases & few days it decreases….so my query is what option strategies should i employ for trading nifty options in such a volatile market…its very difficult to make money in such a market. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16470) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 27, 2015 at 5:58 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16478) Any strategy that involves a credit and benefiting from time decay would be a good I suppose. Example – short strangle, straddle etc. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16478) 429. ![](https://secure.gravatar.com/avatar/0f48752f37dfd675bf6db0d96a6e6eb9bd1fedf2117e0041d36b0dff19a28aa8?s=32&d=identicon&r=g) Rajdeep says: [July 26, 2015 at 7:55 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16438) Infact as i was thinking about it, i have this question for futures too, derivatives as per definition move as per the movement of the underlying, but the derivative itself is also being traded, so what determines the price of the derivative, the derivatives supply demand dynamics or the movement of the derivatives underlying or both? e.g. nifty futures is a heavily traded derivative but is the spot market single handedly determining its price ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16438) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 27, 2015 at 5:22 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16472) A derivative derives its value from its respective underlying. Its unusual for the derivative to influence the price of the spot. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16472) 430. ![](https://secure.gravatar.com/avatar/0f48752f37dfd675bf6db0d96a6e6eb9bd1fedf2117e0041d36b0dff19a28aa8?s=32&d=identicon&r=g) Rajdeep says: [July 25, 2015 at 5:32 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16416) Hi Karthik, I would like to congratulate you on your stellar effort in making such a complicated topic so easy to digest. If i ever succeed in trading it will only be because of you, varsity and zerodha, i say it from my heart. I am absolutely new to trading, i am having a confusion regarding options. What i understand is the option greeks are responsible for the change in the option prices, but there is also a separate demand-supply of each option which is created by the writers and the buyers of that particular option, so what moves the option premiums the demand supply interaction like in spot market/futures or the greeks alone(the individual options demad suppy has no role to play in setting the price) or both A 2nd question, from the current nifty option chain i see that the 8400 slightly OTM puts price have appreciated but the slightly ITM 8400 calls have fallen, does it mean the market is getting more comfortable with the idea of nifty falling below 8400 in the next 3 days, is that a case for buying slightly OTM puts, i dont have the confidence/conviction to trade, i am trying to confirm my understanding by thinking in terms of a trade. Cannot thank you enough for what you have done for me. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16416) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 27, 2015 at 5:11 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16468) Happy to read this Rajdeep…btw, if you succeed in trading (I hope you do), then its because of your heard work and nothing else. Coming to your query – Option premium are a function of many factors, the essence of which are captured by the Greeks. For example the demand supply situation causes directional movement and thats captured by Delta. Effect of time is captured by Theta, volatility by vega etc. So Greeks capture all the necessary price variable Regarding the 2nd question – Puts have appreciated due to two factors – Markets and fallen and volatility also has increased. You will understand and appreciate the effects of volatility over the next few chapter. Please stay tuned. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16468) 431. ![](https://secure.gravatar.com/avatar/60899cf6d796bc7a9d4c6d0869979e1d24c2ab1a126b89b360cd0bb62a269d26?s=32&d=identicon&r=g) Wannbetrader says: [July 24, 2015 at 10:27 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16369) Fabulous :-)… Wish I was so eager to learn during my school days ,lol. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16369) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 25, 2015 at 1:29 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16404) I wish so myself, I was never a good student 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16404) 432. ![](https://secure.gravatar.com/avatar/2eff9f41bc4f8712271450b06816ee31986fd41cd350327c0cdc2b6d477ded8b?s=32&d=identicon&r=g) raj says: [July 24, 2015 at 9:32 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16368) Hi karthik, appreciate the excel calculations. makes it very simple for all of us. as far as options concerned , for e.g a put . the stock could fall to a particular price at various times and the option premium could be different at those times. i bought a put of lupin, and at one time the stock was at 1700 and the put was trading at 5. the stock went up to 1710 and when it re tested 1700 again the put was trading at 3 this time. is there a way to determine at what premium the option could trade at same stock price points at different times of the day. will you be touching upon this? thanks a ton. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16368) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [July 25, 2015 at 1:28 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16403) Raj, what you have quoted is a very practical situation. The main reason for this would be changes in volatility. As this mini series on Volatility evolves, I\\’m sure you will get the answers yourself. Please stay tuned till then 🙂 [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-16403) - ![](https://secure.gravatar.com/avatar/6bc4ddc85e462f3dcb6cfe425a614dc0f0fea38cf9c813c89b245c09abfd0067?s=32&d=identicon&r=g) SUHAS SHRINIVAS VAZE says: [May 6, 2018 at 9:20 am](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58651) Thanks for such a in depth practical calculation. However, can we calculate intra-day volatility ? [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58651) - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 6, 2018 at 8:55 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58670) You can, this requires few higher order quantitative techniques. [Reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-58670) - ![](https://secure.gravatar.com/avatar/619a7916fc105f920a35ae491aea8663387b999bedae8177246ebeaa8f9bff30?s=32&d=identicon&r=g) Rahul Choudhary says: [May 17, 2018 at 6:10 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-59274) Hello Karthik Sir, Can you please tell me about those high quantitave techniques or provide me a link for the same if possible. Thanks Rahul - ![](https://secure.gravatar.com/avatar/f884b166877faba2d4807720c1305a8a0f15efed625eac674a0e00e005f6fac2?s=32&d=identicon&r=g) Karthik Rangappa says: [May 18, 2018 at 1:07 pm](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#comment-59316) Rahul, quants is a very broad topic, Rahul. We are discussing few techniques here – https://zerodha.com/varsity/module/trading-systems/ ### Leave a Reply [Cancel reply](https://zerodha.com/varsity/chapter/volatility-calculation-historical/#respond) © 2015 – 2026. All rights reserved. Reproduction of the Varsity materials, text and images, is not permitted. For media queries, contact [\[email protected\]](https://zerodha.com/cdn-cgi/l/email-protection#93e3e1f6e0e0d3e9f6e1fcf7fbf2bdf0fcfe) [![Download on Play store](https://zerodha.com/varsity/wp-content/themes/varsity2//images/playstore.png)](https://play.google.com/store/apps/details?id=com.zerodha.varsity) [![Download on App store](https://zerodha.com/varsity/wp-content/themes/varsity2//images/appstore.png)](https://apps.apple.com/in/app/varsity-by-zerodha/id1474610753)
Readable Markdown
## ![M5-Ch16-Cartoon](http://zerodha.com/varsity/wp-content/uploads/2015/07/M5-Ch16-Cartoon.png) ## 16\.1 – Calculating Volatility on Excel In the previous chapter, we introduced the concept of standard deviation and how it can be used to evaluate ‘Risk or Volatility’ of a stock. Before we move any further on this topic I would like to discuss how one can calculate volatility. Volatility data is not easily available, hence its always good to know how to calculate the same yourself. Of course in the previous chapter we looked into this calculation (recall the Billy & Mike example), we outlined the steps as follows – 1. Calculate the average 2. Calculate the deviation – Subtract the average from the actual observation 3. Square and add up all deviations – this is called variance 4. Calculate the square root of variance – this is called standard deviation The purpose of doing this in the previous chapter was to show you the mechanics behind the standard deviation calculation. In my opinion it is important to know what really goes beyond a formula, it only enhances your insights. In this chapter however, we will figure out an easier way to calculate standard deviation or the volatility of a given stock using MS Excel. MS Excel uses the exact same steps we outlined above, just that it happens at a click of a button. I’ll give you the border steps involved first and then elaborate on each step – 1. Download the historical data of closing prices 2. Calculate the daily returns 3. Use the STDEV function So let us get to work straight away. **Step 1** – Download the historical closing prices You can do this from any data source that you have. Some of the free and reliable data sources are NSE India website and Yahoo Finance. I will take the data from NSE India for now. At this point I must tell you that NSE’s website is quite resourceful, and in terms of information provided, I guess NSE’s website is one of the best stock exchange websites in the world. Anyway, in this chapter let us calculate Wipro’s volatility. To download the historical closing prices, visit – <http://www.nseindia.com/products/content/equities/equities/equities.htm> and click on historical data and select the search option. Here is a snapshot where I have highlighted the search option – [![Image 1\_Search](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-1_Search.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-1_Search.png) Once you hit search, a set of fields open up, filling them up is quite self explanatory – just fill in the required details and hit ‘Get Data’. Do make sure you get the data for the last 1 year. The dates that I have selected here is from 22nd July 2014 to 21st July 2015. Once you hit ‘get data’, NSE’s website will query your request and fetch you the required data. At this point you should see the following screen – [![Image 2\_Download CSV](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-2_Download-CSV.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-2_Download-CSV.png) Once you get this, click on ‘Download file in CSV format’ (highlighted in the green box), and that’s it. You now have the required data on Excel. Of course along with the closing prices, you have tons of other information as well. I usually like to delete all the other unwanted data and stick to just the date and closing price. This makes the sheet look clutter free and crisp. Here is a snapshot of how my excel sheet looks at this stage – [![Image 3\_Excel](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-3_Excel.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-3_Excel.png) Do note, I have deleted all the unnecessary information. I have retained just the date and closing prices. **Step 2** – Calculate Daily Returns We know that the daily returns can be calculated as – Return = (Ending Price / Beginning Price) – 1 However for all practical purposes and ease of calculation, this equation can be approximated to: **Return = LN (Ending Price / Beginning Price)**, where LN denotes Logarithm to Base ‘e’, note this is also called ‘Log Returns’. Here is a snap shot showing you how I’ve calculated the daily log returns of WIPRO – [![Image 4\_LN returns](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-4_LN-returns.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-4_LN-returns.png) I have used the Excel function ‘LN’ to calculate the long returns. **Step 3** – Use the STDEV Function Once the daily returns are calculated, you can use an excel function called ‘STDEV’ to calculate the standard deviation of daily returns, which if you realize is the daily Volatility of WIPRO. Note – In order to use the STDEV function all you need to do is this – 1. Take the cursor an empty cell 2. Press ‘=’ 3. Follow the = sign by the function syntax i.e STDEV and open a bracket, hence the empty cell would look like =STEDEV( 4. After the open bracket, select all the daily return data points and close the bracket 5. Press enter Here is the snapshot which shows the same – [![Image 5\_STDEV](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-5_STDEV.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-5_STDEV.png) Once this is done, Excel will instantly calculate the daily standard deviation aka volatility of WIPRO for you. I get the answer as 0.0147 which when converted to a percentage reads as 1.47%. This means the daily volatility of WIPRO is 1.47% \! The value we have calculated is WIPRO’s daily volatility, but what about its annual volatility? Now here is a very important convention you will have to remember – in order to convert the daily volatility to annual volatility just multiply the daily volatility number with the square root of time. Likewise to convert the annual volatility to daily volatility, divide the annual volatility by square root of time. So in this case we have calculated the daily volatility, and we now need WIPRO’s annual volatility. We will calculate the same here – - Daily Volatility = 1.47% - Time = 252 - Annual Volatility = 1.47% \* SQRT (252) - \= 23.33% In fact I have calculated the same on excel, have a look at the image below – [![](https://zerodha.com/varsity/wp-content/uploads/2015/07/Screenshot_22.png)](https://zerodha.com/varsity/wp-content/uploads/2015/07/Screenshot_22.png) So with this, we know WIPRO’s daily volatility is 1.47% and its annual volatility is about 23%. Lets double-check these numbers with what the NSE has published on their website. NSE publishes these numbers only for F\&O stocks and not other stocks. Here is the snapshot of the same – [![Image 6\_NSE](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-6_NSE.png)](http://zerodha.com/varsity/wp-content/uploads/2015/07/Image-6_NSE.png) Our calculation is pretty much close to what NSE has calculated – as per NSE’s calculation Wipro’s daily volatility is about 1.34% and Annualized Volatility is about 25.5%. So why is there a slight difference between our calculation and NSE’s? – One possible reason could be that we are using spot price while NSE is using Futures price. However, I really don’t want to get into investigating why this slight difference exists. The agenda here is to know how to calculate the volatility of the security given its daily returns. Before we wrap up this chapter, let us just do one more calculation. Assume we directly get the annual volatility of WIPRO as 25.5%, how do we figure out its daily volatility? Like I mentioned earlier, to convert annual volatility to daily volatility you simply have to divide the annual volatility by the square root of time, hence in this particular case – \= 25.5% / SQRT (252) \= 1.60% So far we have understood what volatility is and how to calculate the same. In the next chapter, we will understand the practical application of volatility. Do remember we are still in the process of understanding volatility; however the final objective is to understand the options greek Vega and that really means. So please do not lose sight of our end objective. Please [**click here**](http://zerodha.com/varsity/wp-content/uploads/2015/07/Wipro.xlsx) to download the excel sheet. *** ### Key takeaways from this chapter 1. Standard Deviation represents volatility, which in turn represents risk 2. We can use NSE website to get the daily closing prices of securities 3. Daily return can be calculated as log returns 4. Log function in excel is LN 5. Daily return formula = LN (Today’s Value / Yesterday’s Value) expressed as a percentage 6. Excel function to calculate volatility is STDEV 7. Standard Deviation of daily return is equivalent of daily volatility 8. To convert daily volatility to annual volatility multiply the daily volatility by the square root of time 9. Likewise to convert annual volatility to daily volatility, divide the annual volatility by the square root of time
Shard16 (laksa)
Root Hash14872093466348894416
Unparsed URLcom,zerodha!/varsity/chapter/volatility-calculation-historical/ s443