Irregular intraday financial time-series data
조회 수: 1 (최근 30일)
이전 댓글 표시
I have intraday stock prices for a couple months and I wanted to run simple auto-correlation tests on it. The way the data is structured is I have 13 data points per day. When running the auto-correlation test, I want to ensure that the last point of day T and first point of day T+1 are not used to compute the auto-correlation at lag 1. Is there an easy way to do that in matlab ?
Currently what I do is put lag-1 data points in another column and structure the data how I want it but its very cumbersome. Plus if I want to test the significance of 2,3 or more lags, I have to manually reformat the data.
for illustration purposes, here is a test matrix. The first column represents time
a = [ 1.1 2 ; 1.2 3 ; 1.3 4; 1.4 3 ; 2.1 4; 2.2 3 ; 2.3 6 ; 2.4 7];
So I basically want to skip data point 4 and 5 when looking for auto-correlation lag 1.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Financial Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!