Docsity

Estimating Beta with High Frequency Data: Optimal Sampling Interval and Trailing Window, Essays (high school) of Project Management

Toggle sidebar
bg1
Beta Estimation Using High Frequency Data*
Angela Ryu
Duke University, Durham, NC 27708
April 2011
Faculty Advisor: Professor George Tauchen
Abstract
Using high frequency stock price data in estimating financial measures often causes serious
distortion. It is due to the existence of the market microstructure noise, the lag of the ob-
served price to the underlying value due to market friction. The adverse effect of the noise
can be avoided by choosing an appropriate sampling frequency. In this study, using mean
square error as the measure of accuracy in beta estimation, the optimal pair of sampling
frequency and the trailing window was empirically found to be as short as 1 minute and 1
week, respectively. This surprising result may be due to the low market noise resulting from
its high liquidity and the econometric properties of the errors-in-variables model. Moreover,
the realized beta obtained from the optimal pair outperformed the constant beta from the
CAPM when overnight returns were excluded. The comparison further strengthens the ar-
gument that the underlying beta is time-varying.
Keywords: Beta estimation, realized beta, high frequency data, market microstructure
noise, optimal sampling interval, beta trailing window
JEL Classfications: C51; C58; G17.
*The Duke Community Standard was upheld in the completion of this thesis.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20

Partial preview of the text

Download Estimating Beta with High Frequency Data: Optimal Sampling Interval and Trailing Window and more Essays (high school) Project Management in PDF only on Docsity!

Beta Estimation Using High Frequency Data*

Angela Ryu

Duke University, Durham, NC 27708

April 2011

Faculty Advisor: Professor George Tauchen

Abstract

Using high frequency stock price data in estimating financial measures often causes serious distortion. It is due to the existence of the market microstructure noise, the lag of the ob- served price to the underlying value due to market friction. The adverse effect of the noise can be avoided by choosing an appropriate sampling frequency. In this study, using mean square error as the measure of accuracy in beta estimation, the optimal pair of sampling frequency and the trailing window was empirically found to be as short as 1 minute and 1 week, respectively. This surprising result may be due to the low market noise resulting from its high liquidity and the econometric properties of the errors-in-variables model. Moreover, the realized beta obtained from the optimal pair outperformed the constant beta from the CAPM when overnight returns were excluded. The comparison further strengthens the ar- gument that the underlying beta is time-varying. Keywords: Beta estimation, realized beta, high frequency data, market microstructure noise, optimal sampling interval, beta trailing window

JEL Classfications: C51; C58; G17.

*The Duke Community Standard was upheld in the completion of this thesis.

1 Introduction

The beta of a security represents the asset’s sensitivity to movements in the market. The beta is crucial in equity valuation and risk management. It represents the premium to induce risk-averse investors, which is proportional to the risk that cannot be diversified by adding more uncorrelated stocks in the portfolio - the systematic risk. More specifically, the beta represents the systematic risk by measuring the covariation of the portfolio return with the market return. For other things equal, the higher the risk, the more the investors should be compensated, and vice versa. For the beta being a powerful tool in measuring risk with respect to the market, the estimation of the underlying beta has been one of the most important concerns both in academic research and industry practice. Dating back to Sharpe (1963) and Lintner (1965)’s work on the Capital Asset Pricing Model, the beta is often calculated as the ratio of the market reward-to-risk ratio to an individual stock or portfolio reward-to-risk ratio. For example, a stock with postive beta indicates that it generally moves in the same direction with the market, whereas negative beta indicates that it moves in the opposite direction. When the beta is less than one, the stock moves relatively less than the market whereas with beta greater than one means that the stock price movement surpasses the movement of the market. The assumptions of the Sharpe and Lintner model forces beta to be invariant with respect to the length of the period it is calculated. The constant beta obtained from one-factor CAPM has been widely used in asset pricing and risk management for its simplicity and handiness in measuring the systematic risk of a portfolio. The CAPM has been under substantial critcism by the extensive number of studies in that the beta is actually time-varying in nature. The criticism originates from the fact that the one-factor CAPM beta does not take account of conditioning variables which may lead the beta to be time-varying. Moreover, in a statistical point of view, the beta - a ratio of time-varying covariance and variance - may be expected to fluctuate with persistency. A number of studies make application to different financial markets to show that the beta with conditioning variables captures the value of systematic risk better than the static CAPM (Faff, Hillier, and Hilier 2000; Choudhry 2002, 2004; Wang 2003) while earlier studies which attempted to use parametrized models in estimating beta (Ferson 1989; Ferson and Harvey 1991, 1993; and Ferson and Korajczyk 1995) have been outperformed by the constant beta

filtering whereas other researchers have suggested subsampling (Zhang, Mykland and At- Sahalia 2005; Andersen, Bollerslev and Meddahi 2011), correcting for overnight price changes (Hansen and Lunde 2004b), or using kernel estimators (Hansen and Lunde 2004a; Banrdorff- Nielsen, Hansen, Lunde and Shephard 2004, 2008b). Andersen, Bollerslev, Diebold and Labys (2006) introduced using the volatility signature plot, a graph of average realized volatility against the sampling intervals, to select a frequency where the average volatility stabilizes. They specifically used 20 minutes for sampling interval as a viable bias-variance tradeoff. The relevant studies generally agree that it is not recommendable to use extremely high frequency sampling like 1 or 2 minutes are not recommended. The realized beta has been studied relatively to a lesser extent than other realized mea- sures, especially in finding its optimal sampling frequency. On the one hand, because realized beta has realized variance and realized covariance component, the microstructure noise may seriously distort the accuracy of beta estimation and using extremely high frequency should hence be avoided. On the other hand, the market as a whole has significantly greater liq- uidity than an individual stock, letting the former’s price to adjust more efficiently to the underlying value than the latter. That is, the impact of the noise is expected to be less in market returns, and the optimal sampling frequency for realized beta may not be as low as that of the realized variance. Consequently, the sampling interval that is optimal for beta calculation remains ambiguous. Another critical issue in beta estimation accompanied with the sampling frequency is the optimal span of time interval taken into account for calcula- tion of realized beta, or the beta trailing window. Andersen, Bollerslev, Diebold and Wu (2003) discusses on the persistence of predictability of quarterly and monthly realized beta, but there has not been a study that examines which specific range of beta trailing window, paired with a sampling frequency, gives a relatively better estimation of true beta. In these two aspects, finding the optimal pair of sampling frequency and beta trailing window will add to the current literature on the non-parametrized beta estimation using high frequency data and present evidence on the time-varying nature of beta. The objective of this study is to empirically determine the pair of sampling frequency and beta trailing window that yields the most precise estimation of underlying beta, and compare the results with the conventional constant beta model. The mean square error (MSE) will be defined and used as a measure of accuracy of beta estimation. Before getting into empirical approach, theoretical background on stochastic models of returns, microstructure noise and

realized beta will be briefly introduced in Section 2. In Section 3, a statistical overview on errors-in-variables will be given in order to justify the possibility of extremely high frequency price data being appropriate to use in beta estimation. In Section 4, realized betas and MSE for each sampling interval and beta trailing window days is calculated and then compared with the conventional model. In the final two sections, analysis and implication of the results are discussed with a brief conclusion.

compensated as time passes. And the risk measure, beta, indicates how much they should be compensated for taking additional risk. The beta is calculated as the covariance between returns on the risky asset i and the market divided by the market variance:

βi = COV V ar^ (r(ri, rm)m ). (4)

Intuitively, a risk-free asset has a beta of zero since its covariance with the market is zero, whereas a market porfolio will have a beta of one since its covariance with itself equals the market variance. Stock market indices such as S&P 500 are often used as a proxy for the market portfolio.

2.3 Realized Beta

Andersen, Bollerslev and Diebold (2003) and Barndorff-Nielsen and Shephard (2002) have suggested using an empirical measure calculated from high frequency intraday data for volatility. As an extension, the realized beta, defined as the ratio of the realized covariance of individual stock and market to the realized market variance (Andersen, Bollerslev, Diebold and Wu 2006) can be used as an effective, non-parametric estimator of the underlying beta. First, we denote rjt as the intraday geometric return of price which is calculated as the difference of log price. For simplicity, consider time t as in days. Then,

rjt = log p(t − 1 + (^) Jj ) − log p(t − 1 + j^ − J 1 ) (5)

where J is the number of sampled data within time t with respect to sampling interval M minutes, and j = 1, 2, 3, · · · , J. For example, data sampled at 1 minute from 9:35am to 4:00pm has 385 price data points per day and correspondingly 384 intraday returns; data sampled at 5 minutes - price data at 9:35am, 9:40am, 9:45am, · · · - has 77 price points per day and 76 intraday returns, and so on. Overnight returns from time t to t+1 are calculated as the difference between the opening log price at time t + 1, log po(t + 1) and the closing log price of time t, log pc(t):

rtON = log po(t + 1) − log pc(t). (6)

Because the news during the interday period affects the overnight return, the calculation of financial measures that includes the overnight return may differ significantly from those that exclude the value. The realized market variance excluding the overnight return at time t, RVmt, with sam- pling interval M in minutes is denoted and calculated as the sum of the squared log returns:

RVmt =

∑^ J

j=

r^2 mjt (7)

where r is the log return and J is the number of sampled data in time t with respect to M. In order to obtain the realized variance including overnight returns, the overnight returns are squared and are added to RVmt:

RVmt =

∑^ J

j=

r mjt^2 + (rONt )^2 (8)

The realized variance converges to the integrated variance plus the jump component as the time between observations approaches zero. That is, as the sampling interval converges to zero,

RVmt −→

∫ (^) t t− 1 σ

(^2) (s)ds +∑^ Nt j=

κ^2 jt (9)

where

∫ (^) t t− 1 σ

(^2) (s)ds is a consistent estimator of the integrated variance and Nt is the number

of jumps. Similarly, the realized covariance of stock i and the market is calculated as

RCOVimt =

∑^ J

j=

rijtrmjt (10)

and the calculation of the realized covariance including the overnight return is analogous to the corresponding realized variance. Finally, the realized beta is the ratio of the realized covariance of stock i and market to the realized market variance:

βˆit = RCOVimt RVmt^.^ (11) The realized beta estimation in the above process may be implemented by a simple

3 Data

The calculations were implemented using the price data of 8 stocks: JP Morgan (JPM), Bank of America (BAC), Hewlett-Packard (HPQ), IBM (IBM), Johnson & Johnson (JNJ), Verizon (VZ), Wal-mart (WMT) and Exxon Mobil (XOM). They were specifically chosen for their high market capitalization and the range of representation across industries. For market reference, the price data of S&P 500 (SPY) was used. Each stock data was 1 minute price data from 9:35am to 4:00pm, obtained from an online vendor, price-data.com. Data from August 23, 2004 to January 7, 2009, a total of 1093 days was observed. Stock splits and any other inconsistencies with price data were adjusted.

3.1 Market Microstructure Noise

In a perfectly efficient market where stock prices are adjusted instantaneously to new infor- mation, the price of a stock at any point in time should be equal to the sum of all discounted future profits. By the Gordon’s growth model, assuming the required rate of return accord- ing to the CAPM is k, the constant growth rate, g, and the expected profit, Πe, the present value of the stock P is calculated as

P = Π e (k − g).^ (12)

Assuming that the market determines the price of an individual stock using the Gordon’s growth model, small changes in variables, Πe, k and g can significantly impact the resulting price. For example, consider a company with $1 profit per share, with discount rate k = 10% and constant growth rate g = 5%. According to the growth model, the true value of the stock issued by the company should be

P = (^) 10%$1 − 5% = $20. 00. (13)

If the market views the discount rate to be 13% instead of 10%, the underlying value expected from the model is 37.5% less than the result from the calculation in (13):

P = (^) 13%$1 − 5% = $12. 50. (14)

In reality, an individual stock price do not instantly adjust to the effective price due to market friction. Because small difference in values of variables may seriously divert the observed price from the true price, frequent sampling of price data may not correctly reflect the true value of the stock and is susceptible to noise. This requires particular attention and appropriate selection of data for studies using high frequency stock price data. The deviation of the observed price from the underlying price is called the market mi- crostructure noise. The noise can be modeled as the difference between the efficient log price, p∗(t) and the observed log price, p(t) at time t. That is,

p(t) = p∗(t) + (t). (15)

where (t) is the microstructure noise. The market microstructure noise is crucial in studying high frequency data. Theoreti- cally, it is possible to obtain arbitrarily accurate estimates of the integrated volatility as the sampling interval converges to 0. However, the realized variance estimators will be severely biased by the market microstructure noise with extremely short sampling interval. Consider p(t). Since p(t) is continuous, p(t + 4 t) − p(t) −→ 0 as 4 t −→ 0. However, because (t) is nonzero and is not continuous, (t + 4 t) − (t) does not converge to 0. That is, the change in the observed price, p∗(t), is increasingly dominated by the differences in the noise term as the sampling interval decreases. For example, we observe negative serial correlation of the returns due to high level of microstructure noise in jump tests, the tests that are designed to detect and distinguish the jump component from the continuous variance. The existence of the market microstructure noise leaves a serious task to the researchers to select an appropriate sampling frequency when they use high frequency data to estimate financial measures. In this respect, we will now carefully present how high frequency data may be used for better beta estimation.

to the additional noise yi, but the beta coefficient does not change. For simplicity, let ui denote the noise in the regression between the underlying market price and the observed individual stock price. That is, let

ui = u∗ i + yi, (20)

then the model becomes,

yi = x∗ i β + ui. (21)

While the impact of the noise in the dependent variable does not affect the regression, having noise in the independent variable can potentially incur a serious distortion in beta estimation. To see this problem, the observed market return, xi, is expressed as the sum of the underlying market price and the market noise, xi:

xi = x∗ i + xi (22)

and the underlying market price can be expressed as the following:

x∗ i = xi − xi. (23)

Plugging in for x∗ i ,

yi = (xi − xi)β + ui (24)

and letting vi be the sum of noises in the new regression, the regression between the observed stock price and the observed market price is finally obtained:

yi = xiβ + vi (25)

where

vi = ui − xiβ. (26)

The latter regression in equation (25) is different from the former in equation (21) in that now the noise term, vi, and the independent variable, xi, are not independent because xi is present in both terms. That is, their covariance is nonzero:

COV (xi, vi) = −σ ^2 x β. (27)

Because of the negative correlation between the error and the observed stock price, the estimated coefficient from the regression, or βˆ, does not converge to the underlying value β, but instead

βˆ −→ (^) (σ 2 σ^2 x x +^ σ^2 x )^ β. (28)

Stock and Watson (2010) presents detailed derivation process for equation (28). Note that the ratio (^) (σ (^2) x+σ^2 xσ (^2) x ) is less than 1, since the variance of the individual stock noise, σ^2 x , and the variance of underlying stock price, σ^2 x, are both positive. Thus, the estimated beta, βˆ, converges to a smaller value than the underlying beta. Especially in case where the noise level in xi is high, the coefficient (^) (σ x 2 σ+^2 xσ (^2) x ) is highly biased towards 0 and the estimation may not accurately capture the true value of the beta. The negative correlation on the regression erroneously “flats-out” the slope as visualized in Figure 1, where the regressions with and without the measurement error on 200 sample data are compared. Figure 1-(b) has a lower slope than that of Figure 1-(a) due to the existence of error. For the realized beta, however, the distortion due to the bias is expected to be small because the noise for the observed market price is significantly lower than that of the in- dividual stock. This is due to the fact that the market price adjusts more efficiently than any individual stocks do due to the former’s significantly greater liquidity. That is, the coefficient of β in the convergence, or (^) (σ (^2) x+σ^ x^2 σ (^2) x ) , may be close to 1 because σ^2 x is very low relatively to σ^2 x. Depending on how much the coefficient is biased towards zero, the beta estimation using high frequency data, or specifically those at extremely short sampling in- tervals like 1 minute, may or may not be accurate enough to be used as a viable measure for the true beta. Hence, by the property of errors-in-variables model, the level of appro- priate sampling frequency for beta estimation remains ambiguous and should be viewed in a different context from the realized variance. In this perspective, it remains uncertain up to which frequency would give a viable

5 Methods

The range of the sampling frequency - length of the time interval in between each sampled price data - and the beta trailing window days - the number of days of which data is used in beta calculation - were allowed to vary from 1 to 20 minutes adn from 1 to 200 days, de- noted M and T , respectively. The longest sampling interval was set at 20 minutes following Andersen, Bollerslev, Diebold and Labys (2003). They suggest that 20 minutes is a “reason- able tradeoff (point) between microstructual bias and minimizing sampling error”(2003) and more scarce sampling with fewer data points may not be sufficient in calculating realized measures. Moreover, the 200-day range was considered to be sufficient in length to cover enough range of data to estimate beta.

5.1 Calculating Realized Beta

Given M sampling minutes and T beta trailing window days, the corresponding realized betas were calculated. Consider calculation excluding overnight returns, and M = 5, T = 30 for simplicity. First, the market index and a stock price data was sampled at M minutes. Denote the log price data of the individual stock price for day t as X~t = (xt, 1 , xt, 2 , · · · , xt, 385 ) where xt, 1 indicates the first minute data at day t or the data at 9:35am, xt, 2 the second minute data at 9:36am, · · · , xt, 385 the last minute data at 4:00pm. Suppose X~t is sampled at M = 5 minutes. Then, X~t = (xt, 1 , xt, 6 , xt, 11 , · · · , xt, 381 ) is of length 77. By taking the difference between the log price of consecutive sampling intervals, we obtain the stock return vector for day t, ~rXt , of length 76:

~rXt = (xt, 6 , xt, 11 , xt, 16 , · · · , xt, 381 ) − (xt, 1 , xt, 6 , xt, 11 , · · · , xt, 376 ) (29)

Similarly, the log price data of the market price for day t sampled at 5 minutes is denoted S^ ~t = (st, 1 , st, 6 , st, 11 , · · · , st, 381 ), and the market return, ~rSt is obtained analogously to the stock return:

~rSt = (st, 6 , st, 11 , st, 16 , · · · , st, 381 ) − (st, 1 , st, 6 , st, 11 , · · · , st, 376 ) (30)

Then beta was obtained from the regression of the market return and the stock return for each day. Consider day 1, with stock return ~rX 1 and market return ~rS 1. Market return

vector is regressed against the stock return vector using Ordinary Least Squares to find the beta value for day 1:

β 1 = (~rS 1 ′~rS 1 )−^1 ~rS 1 ′~rX 1 (31)

where β 1 denotes the value of beta at day 1. By repeating the process for day 2, 3, · · · , 1093, the realized beta for the whole range is obtained. Next, denote β~1:T as the list of betas for day 1, 2, · · · , T. Letting T = 30, ~β1:30 = (β 1 , β 2 , · · · , β 30 ). By shifting a day while keeping the number of days in trailing window constant, ~β2:31 = (β 2 , β 2 , · · · , β 31 ) is obtained. By repeating the process trailing windows of beta for the window day (1094 − T ) to day 1093, denoted as ~β 1094 −T :1093, is calculated. In total, there are 1094 - 30 = 1064 trailing windows for T = 30. For comparison purposes, only the windows from β~ 201 −T :200 to β~1064:1093 is used for each T. It is because the maximum size of trailing window is 200 days and thus, the data for day 201 is the first set that has preceding windows for all T ranging from 1 day to 200 days. A series of beta with a specific (M, T ) later chosen in the study is compared with the conventional constant beta in Figure 5. We then proceed to determine which pair of (M, T ) yields the beta with the lowest mean square error, a measure defined and used in order to evaluate the accruracy of estimation in the following section. Moreover, it is later shown that the set of high frequency betas calculated from the pair where MSE is the lowest is a better estimation of the underlying beta than that of the CAPM.

5.2 Mean Square Error (MSE)

The next step is to calculate square error (SE) and mean square error (MSE) the measures of accuracy in beta estimation of each sampling interval M and trailing window T. The SE for each (M, T ) is calculated as the squared difference between the observed market price and individual stock price multiplied by the corresponding beta. Note that in order to have betas with different (M, T ) comparable, it is necessary to fix a specific sampling interval M for the market index and individual stock price data. In this way, only the values of beta each obtained from the corresponding pair of the sampling frequency and trailing window will vary, and all other variables are kept the same for each SE calculation. Because SE will vary only with beta values from different (M, T ), accuracy of the beta estimation for each

the estimated beta and not for the prediction of the stock returns.

5.3 Comparing MSE: High-Frequency Beta and Constant Beta

Having MSE as the measure of beta estimation accuracy, the pair of sampling interval M and beta trailing window T that yields the lowest MSE was found. Firstly, for a given stock, the pair (M, T ) that yields the lowest MSE was found for a given sampling interval, denoted as min(M, T ), a vector of length 20. min(M, T ) is a set of local minimum for each sampling interval ranging from 1 to 20 minutes. Among all pairs of min(M, T ), the pair with the lowest MSE was denoted as gmin(M, T ), gmin for “global minimum.” That is, gmin(M, T ) is the pair of sampling interval and trailing window that yields the lowest MSE level for a stock. For comparison purposes with the CAPM beta, the “median pair” of gmin(M, T ) of 8 stocks - median value for each M and T - was denoted as medmin(M, T ). Further, the level of MSE using constant beta and the level of MSE using beta from medmin(M, T ) were compared for each individual stock. For medmin(M, T ) beta, MSE was calculated in two ways, one including the overnight return and the other excluding. The daily returns in the first quarter was used to calculate the contant beta. For all three cases, 1) constant, 2) time-varying with overnight returns, and 3) time-varying without overnight returns, MSE was calculated and was compared. The comparison with the constant beta is particularly important in that 1) it provides a valid criterion on whether the empirically found “optimal” realized beta gives a viable estimation of underlying beta and 2) the time-varying nature of beta may be investigated.

6 Results

6.1 Finding the “Optimal” pair of (M, T )

Figure 3 presents a plot of mean square error vs. the trailing window days T , calculated with JPM price data at different sampling intervals. MSE level was very high at extremely short trailing window, as expected, for it had too few data points to estimate beta. For all sampling intervals, MSE was the lowest when T ranged from 5 to 60 for all sampling intervals. After a short rise starting at roughly T = 40, MSE started to drop again, but it did not recover to the lowest level. After a certain threshold number of days ranging within relatively short period, from 1 week to 6 weeks, increased T did not enhance the estimation of beta. Figure 4 presents a comprehensive view in the tendency of MSE levels for all pairs of sampling interval and trailing window days. It shows a 3-dimensional graph of MSE levels of 5 stocks, BAC, IBM, JPM, WMT and XOM, with sampling interval M on the x-axis, trailing window days T on y, and MSE on z. The outlier T = 1 was excluded because as seen in Figure 3, its MSE levels were too high to be considered as an appropriate estimation of beta. The 3-D plot visualizes the resulting gmin(M, T ), or the pair of sampling interval and trailing window that yields the global minimum value of MSE for a given stock, listed in Table 1. The values of gmin(M, T ) shows that extremely high frequency of 1 or 2 minutes paired with relatively short trailing window as short as one week yielded the lowest MSE. medmin(M, T ), the pair of median value for M and T of 8 stocks, was found to be (1, 20). Note that all stocks except for JNJ had their global minimum MSE at 1 minute sampling interval. JNJ had its global minimum MSE at 2 minutes sampling. And the number of days in the trailing window T that yielded the global minimum ranged from 7 to 36 for the observed stocks, as expected in the tendancy of MSE for given sampling intervals (Figure 3). Again, the “optimal” trailing window days is relatively short, considering that the practioners like Merrill Lynch uses 60 monthly returns, or five years of price data, for a single beta. More notably, the most accurate beta estimation using the realized method was found at the highest frequency, which diverts from the general suggestions on “optimal” sampling interval for realized measures made by the current high frequency literature. As carefully analyzed with the errors-in-variables model in Section 4, it is likely that the microstructure