馃攳
OHLC volatility (Part 2): Rogers-Satchell and Yang-Zhang (Excel) - YouTube
Channel: NEDL
[0]
Hello everyone, and welcome again to NEDL - the best platform around for distance learning in Business, Finance, Economics and much much more!
[9]
My name is Savva,
[10]
and today we are continuing our discussion of volatility estimators that can be calculated using open, high, low, close data, or to be short, OHLC.
[20]
In the last video we have already discussed the Parkinson and the Garman and Klass volatility estimators that have been derived independently of each other in 1980,
[30]
that incorporate high and low, and high and
low, close and open prices in different ways to factor in different sources of stock market volatility.
[44]
Some criticism can be directed to those two volatility measures, as both of those do not account for opening price jumps.
[54]
Opening price jumps are very common in stock markets, when the previous day's close is not necessarily equal to next day's open.
[65]
For example, in our data set even, we can see that some of the stock price movement,
[72]
for example from the 2nd of January 2015 to 5th of January 2015,
[77]
was not incorporated in just from opening price to the closing price, some of this movement has been already there,
[89]
in the over-the-counter trading during the night hours, or it had occurred immediately because there are a lot of orders have been satisfied immediately when the market opened,
[100]
so the price actually decreased substantially, the index fell almost four full points while the market was not opened yet,
[111]
so those opening jumps are something that is not incorporated in the Garman and Klass volatility, and surely it's not incorporated in the Parkinson volatility.
[122]
It is implicitly accounted for in the close and close volatility, because we do not actually use any opening prices in here, so we implicitly assume
[136]
that the movement is from close to close not from open to close,
[140]
and that is why some people still argue for the easiest volatility measure being used,
[148]
but recently, and by recently I mean in the past 30 years, a couple of more advanced volatility estimators using OHLC have been devised that seek to incorporate all possible sources of stock market volatility,
[167]
that manifest themselves in the OHLC data, that is high divided by low chaotic intraday volatility that's useful and important for intraday high frequency traders that care about margining requirements being satisfied,
[184]
that is drift that some of the intraday volatility is just attributable to long term or medium term, at least, stock market trend,
[193]
and opening price jumps when some of the stock price movement occurs immediately from past close until the next days open,
[203]
when the markets just open for trading because of over-the-counter trading during night hours, or because of a high volume of orders being satisfied immediately when the market opens.
[217]
The first measure that sought to incorporate all three, was the Rogers and Satchell 1991 measure, or for short, it is also called the RS volatility estimate
[230]
it uses normalized measures of high, U is for up here, normalized up, normalized close and normalized down, so normalized low.
[243]
So how would we normalize open, high, low, close?
[247]
Well, for the normalized open, the only thing we need is to take the natural logarithm of this day's open divided by past day's close,
[258]
so that would on its own account for any
opening price jumps.
[267]
Then for normalized up, so normalized high, we need to take the natural logarithm of this day's high divided by this day's open.
[277]
For the normalized down, we need to take the natural logarithm of this day's low divided by this day's open, and normalized close is just the logarithm of this day's close divided by this day's open.
[292]
And having computed those, we can calculate this squared sum component for the Rogers and Satchell volatility estimator,
[304]
which is equal to normalized up times normalized up minus normalized close,
[311]
plus normalized down times the normalized down minus the normalized close.
[318]
Easy to remember, easy to digest.
[321]
Now, we can enforce all those formulas and bottom right click them all the way down, and very easily calculate the Rogers and Satchell volatility estimate, or for short RS volatility.
[333]
so to figure out the Rogers and Satchell volatility estimator, we first need to take the square root,
[339]
as this formula gives us variance, not the volatility as in standard deviation,
[344]
and then accounting for this 1/n, we can just take the average of this column that says RS, and get 0.65%.
[356]
And we can see here that this estimation is quite a bit lower than all three estimations that we investigated so far,
[367]
so again it might underestimate some of the volatility sources that are present on the market,
[374]
and surely one of the sources it doesn't take into account again,
[379]
is the opening price jump, as it doesn't use the normalized open. So what has been done later on by Yang and Zhang in the year 2000,
[393]
is that they basically strive to take best of both, worlds or even the best of four worlds, that is the close on close, Parkinson,
[403]
Garman and Klass, and Rogers and Satchell volatility estimators,
[406]
and actually they explicitly use the Rogers and Satchell, RS, volatility as one of the components of their volatility.
[413]
So if we look at the formula that has been proposed by those,
[418]
it consists of the open volatility, then weighted close volatility, weighted by some constant k,
[428]
and 1- k times the Rogers and Satchell volatility estimator. So to calculate the Yang-Zhang volatility that, as argued by those authors, perfectly accounts for all three sources of stock market volatility,
[448]
we have to first figure out the volatility of the open,
[451]
the volatility of the close, and also estimate this coefficient k,
[456]
the weighting coefficient for closing volatility, and the Rogers and Satchell volatility.
[464]
So the opening volatility, we have already got it implicitly, we've got the normalized opens. So what we need to do, is we need just to figure out the sample standard deviation of those normalized opens,
[478]
of those logarithms, of opening price jumps, and we get 0.29%. For the volatility of the closing prices,
[486]
we just need to take the sample standard deviation of the normalized closes. And then, we just need to estimate the constant k, the weighting factor.
[498]
And Yang and Zhang come up with a neat algorithm that allows them to estimate k,
[504]
so that the efficiency of the overall variance estimator is maximized,
[508]
so that this estimator is as precise as you can get,
[513]
so they argue that the weighting factor k should be dependent on the number of observations,
[518]
so it's a usual, basically degrees of freedom adjustment, sample size adjustment, and it should be equal to 0.34 in the numerator,
[529]
divided by 1.34, plus the number of observations which is 1258, plus 1,
[538]
divided by the total number of observations minus 1,
[541]
so 1258 minus 1, and close the brackets, close the denominator brackets again and get 0.15,
[549]
so that's the weighting factor that we should use for the closing price volatility,
[557]
and 1 minus that, so 1 minus 0.15, roughly is the weightening factor that we should use for the Rogers and Satchell volatility.
[565]
And now, we can estimate the Yang and Zhang volatility, finally,
[569]
and that would be equal to the square root of the opening price variance, so that squared, plus k times the closing price volatility so that squared,
[585]
plus 1, minus k times the Rogers and Satchell variance, so that squared again, and we close the brackets,
[595]
and we figure out the square root of this weighted sum, and we get 0.73%, which is precisely the Yang-Zhang volatility estimator for our S&P500 data.
[607]
So how do all of the five volatility measures we have derived and calculated during these two videos correspond with each other?
[616]
Well, the smallest are the Rogers and Satchell and Parkinson volatility estimators, that don't account for either drift, or opening price jumps, or both. The highest is the Garman and Klass volatility estimator,
[631]
that does not account for opening price jumps, and to some extent overestimates the drift and the chaotic price behavior that is occurring during the day in terms of high and low,
[645]
somewhere in the middle are the close and close volatility estimator and Yang and Zhang volatility estimators
[651]
that, I mean, first of all, first of them just doesn't actually care about any intraday movements and simply estimates the volatility of close and close daily returns, and we can see that it does a decent job,
[665]
but if we account for all of the information that we've got,
[669]
and we account for it properly, so we actually calculate all of the appropriate weighting factors, and we synthesize all three potential sources of variance,
[680]
which are high divided by low chaotic intraday stock price movement,
[685]
that is relevant for intraday high frequency traders that care about marginal requirements.
[690]
If we incorporate the close divided by open drift, that is the share price movements
[697]
that are attributable to long-term trend, not some chaotic intraday shocks,
[701]
and finally if we account for opening price jumps that is basically accounted for by this variance of the opening price, that is unaccounted for any of the previous measures,
[715]
we get a value that is relatively close to the close and close volatility estimator, no pun intended,
[723]
but a little bit lower. So what it shows, is that in this case, in case of S&P500, the close and close volatility actually overestimates the daily stock market variance, while the real variance is a little bit low at 0.73%.
[741]
And that's all there is for volatility estimation using open, high, low and closing prices.
[748]
Please leave a like under this video if you found it helpful, in the comments below I will be eager to see
[755]
any suggestions for future videos on Business, Economics,
[758]
and Finance that you want me to record, and finally,
[761]
please don't forget to subscribe to our channel! thank you very much,
[764]
and stay tuned!
Most Recent Videos:
You can go back to the homepage right here: Homepage





