找回密码
 注册
查看: 393|回复: 0

R语言 RTAQ包 RTSCov()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-28 22:37:32 | 显示全部楼层 |阅读模式
RTSCov(RTAQ)
RTSCov()所属R语言包:RTAQ

                                         Robust two time scale covariance estimation
                                         强大的双时间尺度协方差估计

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Function returns the robust two time scale covariance matrix proposed in Boudt and Zhang (2010). Unlike the ROWCov, but similarly to the thresholdCov, the RTSCov uses univariate jump detection rules  to truncate the effect of jumps on the covariance estimate. By the use of two time scales, this covariance estimate  is not only robust to price jumps, but also to microstructure noise and non-synchronic trading.
函数返回的强劲两个时间尺度的协方差矩阵在Boudt和张(2010年)提出。不像ROWCov,但同样的thresholdCov,的RTSCov采用单变量的跳检测规则,截断跳跃的协方差估计的效果。通过使用两个时间尺度,此协方差估计是不仅鲁棒价格跳跃,但也微观结构噪声和非同步交易。


用法----------Usage----------


RTSCov(pdata, cor=FALSE, startIV=NULL, noisevar = NULL,
       K = 300 , J = 1, K_cov = NULL , J_cov = NULL,
        K_var = NULL , J_var = NULL, eta = 9, makePsd = FALSE)



参数----------Arguments----------

参数:pdata
a list. Each list-item i contains an xts object with the intraday price data  of stock i for day t.
一个列表。每个目录项我包含一个XTS对象,盘中价格数据为t日股票i。


参数:cor
boolean, in case it is TRUE, the correlation is returned. FALSE by default.
布尔值,如果是TRUE,则返回相关。默认情况下,返回FALSE。


参数:startIV
vector containing the first step estimates of the integrated variance of the assets, needed in the truncation. Is NULL by default.  
向量的第一步骤估计截断所需的资产,集成方差。默认为NULL。


参数:noisevar
vector containing the estimates of the noise variance of the assets, needed in the truncation. Is NULL by default.
向量的资产,需要在截断噪声方差的估计。默认为NULL。


参数:K
positive integer, slow time scale returns are computed on prices that are K steps apart.
正整数,慢时间尺度的回报率计算K步除了价格上。


参数:J
positive integer, fast time scale returns are computed on prices that are J steps apart.
正整数,时间快的规模报酬是J步骤除了价格计算。


参数:K_cov
positive integer, for the extradiagonal covariance elements the slow time scale returns are computed on prices that are K steps apart.
正整数,为的extradiagonal的协方差元素缓慢的时间尺度回报率计算K步除了价格上。


参数:J_cov
positive integer, for the extradiagonal covariance elements the fast time scale returns are computed on prices that are J steps apart.
正整数,为的extradiagonal的协方差元素的快速规模报酬是J步骤除了价格计算。


参数:K_var
vector of positive integers, for the diagonal variance elements the slow time scale returns are computed on prices that are K steps apart.
向量的正整数,缓慢的时间尺度回报率计算K步除了价格上的斜方差元素。


参数:J_var
vector of positive integers, for the diagonal variance elements the fast time scale returns are computed on prices that are J steps apart.
正整数向量,对角方差元素的快速规模报酬是J步骤除了价格计算。


参数:makePsd
boolean, in case it is TRUE, the positive definite version of RTSCov is returned. FALSE by default.
布尔值,如果是,则返回TRUE,正定的RTSCov版本。默认情况下,返回FALSE。


参数:eta
positive real number, squared standardized high-frequency returns that exceed eta are detected as jumps.
正实数,平方标准的高频率回报超过埃塔被检测为跳跃。


Details

详细信息----------Details----------

The RTSCov requires the tick-by-tick transaction prices. (Co)variances are then computed using log-returns calculated on a rolling basis  on stock prices that are K (slow time scale) and J (fast time scale) steps apart.     
RTSCov需要刻度线刻度线交易价格。 (公司)的差异,然后采用对数收益计算的股票价格K(慢时间尺度)和J(快时间尺度)的步骤除了上滚动的基础上计算。

The diagonal elements of the RTSCov matrix are the variances, computed for log-price series X with n price observations  at times   τ_1,τ_2,…,τ_n as follows:
的RTSCov矩阵对角线元素的差异,计算价格log系列Xn的价格观察有时  τ_1,τ_2,…,τ_n如下:

where \overline{n}_K=(n-K+1)/K,  \overline{n}_J=(n-J+1)/J and
\overline{n}_K=(n-K+1)/K,\overline{n}_J=(n-J+1)/J

The constant  c_η adjusts for the bias due to the thresholding  and I_{X}^K(i;η) is a jump indicator function that is one if
的不断c_η由于阈值和偏置调整I_{X}^K(i;η)是一个跳跃的指示功能,是的,如果

and zero otherwise.  The elements in the denominator are the integrated variance (estimated recursively) and noise variance (estimated by the method in Zhang et al, 2005).
否则为零。分母中的元素是集成的方差(递归估计)和噪声方差(估计由Zhang等人,2005中的方法)。

The extradiagonal elements of the RTSCov are the covariances.  For their calculation, the data is first synchronized by the refresh time method proposed by Harris et al (1995). It uses the function refreshTime to collect first the so-called refresh times at which all assets have traded at least once  since the last refresh time point. Suppose we have two log-price series:  X and Y. Let  Γ =\{ τ_1,τ_2,…,τ_{N^{\mbox{\tiny X}}_{\mbox{\tiny T}}}\} and  Θ=\{θ_1,θ_2,…,θ_{N^{\mbox{\tiny Y}}_{\mbox{\tiny T}}}\}  be the set of transaction times of these assets.  The first refresh time corresponds to the first time at which both stocks have traded, i.e.  φ_1=\max(τ_1,θ_1). The subsequent refresh time is defined as the first time when both stocks have again traded, i.e. φ_{j+1}=\max(τ_{N^{\mbox{\tiny{X}}}_{φ_j}+1},θ_{N^{\mbox{\tiny{Y}}}_{φ_j}+1}). The complete refresh time sample grid is  Φ=\{φ_1,φ_2,...,φ_{M_N+1}\}, where M_N is the total number of paired returns.  The sampling points of asset X and Y are defined to be t_i=\max\{τ\inΓ:τ≤q φ_i\} and s_i=\max\{θ\inΘ:θ≤q φ_i\}.
的extradiagonal的RTSCov元素的协方差。他们的计算,数据是同步的刷新时间Harris等人(1995)提出的方法。它使用功能refreshTime收集第一个所谓的所有资产交易至少一次自上次刷新时间点的刷新时间。假设我们有两个系列:log价格X和Y。让我们 Γ =\{ τ_1,τ_2,…,τ_{N^{\mbox{\tiny X}}_{\mbox{\tiny T}}}\}和Θ=\{θ_1,θ_2,…,θ_{N^{\mbox{\tiny Y}}_{\mbox{\tiny T}}}\}是集这些资产的交易时间。第一次刷新时间对应于第一时间在这两只股票进行买卖,即φ_1=\max(τ_1,θ_1)。随后的刷新时间被定义为第一次当两股再次交易,即φ_{j+1}=\max(τ_{N^{\mbox{\tiny{X}}}_{φ_j}+1},θ_{N^{\mbox{\tiny{Y}}}_{φ_j}+1})。完整的刷新时间采样网格是Φ=\{φ_1,φ_2,...,φ_{M_N+1}\},M_N的总人数已配对的回报。资产的采样点X和Y被定义为t_i=\max\{τ\inΓ:τ≤q φ_i\}和s_i=\max\{θ\inΘ:θ≤q φ_i\}。

Given these refresh times, the covariance is computed as follows:
鉴于这些刷新倍,协方差的计算方法如下:

where
哪里

with  I_{X}^K(i;η) the same jump indicator function as for the variance and c_N a constant to adjust for the bias due to the thresholding.  
I_{X}^K(i;η)一样的跳转指标函数的方差和c_N恒定的偏置调整的阈值。

Unfortunately, the RTSCov is not always positive semidefinite.   By setting the argument makePsd = TRUE, the function  makePsd is used to return a positive semidefinite matrix. This function replaces the negative eigenvalues with zeroes.
不幸的是,RTSCov并不总是半正定的。通过设置参数makePsd = TRUE,函数makePsd用于返回一个半正定矩阵。此函数替换用零负本征值。


值----------Value----------

an N x N matrix
N x N矩阵


(作者)----------Author(s)----------


Jonathan Cornelissen and Kris Boudt



参考文献----------References----------


correction, and price discovery on infomationally linked security markets. Journal of Financial and Quantitative Analysis 30, 563-581.
Determining integrated volatility with noisy high-frequency data. Journal of the American Statistical Association 100, 1394-1411.
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-30 23:10 , Processed in 0.025051 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表