Function returns the Realized Outlyingness Weighted Covariance, defined in Boudt et al. (2008).
Let \(r_{t,i}\), for \(i=1,...,M\) be a sample
of \(M\) high-frequency \((N x 1)\) return vectors and \(d_{t,i}\)
their outlyingness given by the squared Mahalanobis distance between
the return vector and zero in terms of the reweighted MCD covariance
estimate based on these returns.
Then, the rOWCov is given by
$$
\mbox{rOWCov}_{t}=c_{w}\frac{\sum_{i=1}^{M}w(d_{t,i})r_{t,i}r'_{t,i}}{\frac{1}{M}\sum_{i=1}^{M}w(d_{t,i})},
$$
The weight \(w_{i,\Delta}\) is one if the multivariate jump test statistic for \(r_{i,\Delta}\) in Boudt et al. (2008) is less
than the 99.9% percentile of the chi-square distribution with \(N\) degrees of freedom and zero otherwise.
The scalar \(c_{w}\) is a correction factor ensuring consistency of the rOWCov for the Integrated Covariance,
under the Brownian Semimartingale with Finite Activity Jumps model.