I looked into using xcov
to calculate auto-covariances of a Tx1
time series vector. Using xcov
in the first instance, it seemed as if this function would not devide by T
as opposed to what the general formula for sample autocovariance would suggest: ?
Can someone confirm whether I need to devide by T
to get a vector of sample auto-covariances? If I do not devide by T
, the covariances seem to explode, as more and more terms are added. It is also not clear from the documentation of xcov
.
For instance:
test = randn(10,1);
xcov(test)
Best Marcel