HY_cov(tx,ty,x,y,bl​ocksize,y_t_offset)

버전 1.0.0.0 (7.53 KB) 작성자: Brian Liswell
Implements the Hayashi-Yoshida Covariance (2005) for the two asynchronous time series x,y
다운로드 수: 39
업데이트 날짜: 2017/1/30

라이선스 보기

[CHY,rHY] = HY_cov(tx,ty,x,y,blocksize,y_t_offset)
Implements the Hayashi-Yoshida Covariance (2005) for the two asynchronous time series x,y which are respectively sampled at times tx, ty.
Returns:
CHY, the Hayashi-Yoshida Covariance
rHY, "ro HY", the HY correlation coeffecient
Suggestions:
1) Make x,tx the lower sampled time history
2) Ensure the blocksize selection does not drop a significant portion of the time history.

This method estimates the "realized" covariance of the changes in x and y (del_x, del_y). This method relies on identifying time interval vectors, Iix and Ijy, which consist of the time ranges between each sampling of their respective vectors. x and y may have different sample counts and non-periodic sampling times. The interval vectors (Iix and Ijy) are used to build an indicator function II. II has a value of 1 when there is some overlap between del_x, del_y time intervals, but 0 when there is no overlap.
The HY Covariance is:
CHY = S_i,1:n[S_j,1:m[del_x(i)*del_y(j)*II(ti,tj)]]
where S_i,1:n is the summation operator over index i from 1 to n. It should be noted that even though this formula contains 2 summation operators, it is not using two operators in the same was as a cross correlation estimate would. That is because most x and y time intervals will not overlap, meaning II will be mostly 0 for i,j, which means nothing is being summed outside the overlapped window.
CHY gives the "contemporaneous" correlations. The literature cites work by "Hoffman et al. (2010)" to extend the estimator to allow for leads and y_t_offset, which is is comparable to a cross correlation estimate. This identifies y_t_offset in reference to the y vector.

인용 양식

Brian Liswell (2024). HY_cov(tx,ty,x,y,blocksize,y_t_offset) (https://www.mathworks.com/matlabcentral/fileexchange/61343-hy_cov-tx-ty-x-y-blocksize-y_t_offset), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2014a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0