Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


highfrequency (version 0.7.0.1)

MRC: Modulated Realized Covariance (MRC): Return univariate or multivariate preaveraged estimator.

Description

Function returns univariate or multivariate preaveraged estimator, as defined in Hautsch and Podolskij (2013).

Usage

MRC(pData, pairwise = FALSE, makePsd = FALSE)

Arguments

pData

a list. Each list-item contains an xts object with the intraday price data of a stock.

pairwise

boolean, should be TRUE when refresh times are based on pairs of assets. FALSE by default.

makePsd

boolean, in case it is TRUE, the positive definite version of MRC is returned. FALSE by default.

Value

an dxd matrix

Details

In practice, market microstructure noise leads to a departure from the pure semimartingale model. We consider the process Y in period τ: Yτ=Xτ+ϵτ where, the observed d dimensional log-prices are the sum of underlying Brownian semimartingale process X and a noise term ϵτ.

ϵτ is an i.i.d process with X.

It is intuitive that under mean zero i.i.d. microstructure noise some form of smoothing of the observed log-price should tend to diminish the impact of the noise. Effectively, we are going to approximate a continuous function by an average of observations of Y in a neighborhood, the noise being averaged away.

Assume there is N equispaced returns in period τ of a list (after refeshing data). Let rτi be a return (with i=1,,N) of an asset in period τ. Assume there is d assets.

In order to define the univariate pre-averaging estimator, we first define the pre-averaged returns as r¯τj(k)=h=1kN1g(hkN)rτj+h(k) where g is a non-zero real-valued function g:[0,1] R given by g(x) = min(x,1x). kN is a sequence of integers satisfying kN=θN1/2. We use θ=0.8 as recommended in Hautsch & Podolskij (2013). The pre-averaged returns are simply a weighted average over the returns in a local window. This averaging diminishes the influence of the noise. The order of the window size kn is chosen to lead to optimal convergence rates. The pre-averaging estimator is then simply the analogue of the Realized Variance but based on pre-averaged returns and an additional term to remove bias due to noise C^=N1/2θψ2i=0NkN+1(r¯τi)2ψ1kNN12θ2ψ2kNi=0Nrτi2 with ψ1kN=kNj=1kN(g(j+1kN)g(jkN))2, ψ2kN=1kNj=1kN1g2(jkN). ψ2=112 The multivariate counterpart is very similar. The estimator is called the Modulated Realized Covariance (MRC) and is defined as MRC=NNkN+21ψ2kNi=0NkN+1r¯τir¯τiψ1kNθ2ψ2kNΨ^ where Ψ^N=12Ni=1Nrτi(rτi). It is a bias correction to make it consistent. However, due to this correction, the estimator is not ensured PSD. An alternative is to slightly enlarge the bandwidth such that kN=θN1/2+δ. δ=0.1 results in a consistent estimate without the bias correction and a PSD estimate, in which case: MRCδ=NNkN+21ψ2kNi=0NkN+1r¯ir¯i

References

Hautsch, N., & Podolskij, M. (2013). Preaveraging-Based Estimation of Quadratic Variation in the Presence of Noise and Jumps: Theory, Implementation, and Empirical Evidence. Journal of Business & Economic Statistics, 31(2), 165-183.

Examples

Run this code
# NOT RUN {
a <- list(sample5MinPricesJumps["2010-01-04",1], sample5MinPricesJumps["2010-01-04",2])
MRC(a, pairwise = TRUE, makePsd = TRUE)

# }

Run the code above in your browser using DataLab