Estimate autocovariance and cross-covariances operators
Estimate autocovariance and cross-covariances operators
This function is used to estimate a collection of cross-covariances operators of two stationary functional series.
fts.cov.structure(X, Y = X, lags =0)
Arguments
X: an object of class fd containing T functional observations.
Y: an object of class fd containing T functional observations.
lags: an integer-valued vector (ℓ1,…,ℓK) containing the lags for which covariances are calculated.
Returns
An object of class fts.timedom. The list contains the following components:
operators an array. Element [,,k] contains the covariance matrix of the coefficient vectors of the two time series related to lag ℓk.
lags the lags vector from the arguments.
basisXX$basis, an object of class basis.fd (see create.basis)
basisYY$basis, an object of class basis.fd (see create.basis)
Details
Let X1(u),…,XT(u) and Y1(u),…,YT(u) be two samples of functional data. This function determines empirical lagged covariances between the series (Xt(u)) and (Yt(u)). More precisely it determines
(chXY(u,v):h∈lags),
where chXY(u,v) is the empirical version of the covariance kernel Cov(Xh(u),Y0(v)). For a sample of size T we set μ^X(u)=T1∑t=1TXt(u) and μ^Y(v)=T1∑t=1TYt(v). Now for h≥0
T1t=1∑T−h(Xt+h(u)−μ^X(u))(Yt(v)−μ^Y(v))
and for h<0
T1t=∣h∣+1∑T(Xt+h(u)−μ^X(u))(Yt(v)−μ^Y(v)).
Since Xt(u)=b1′(u)xt and Yt(u)=yt′b2(u) we can write
chXY(u,v)=b1′(u)Cxyb2(v),
where Cxy is defined as for the function ``cov.structure'' for series of coefficient vectors (xt:1≤t≤T) and (yt:1≤t≤T).
Examples
# Generate an autoregressive processfts = fts.rar(d=3)# Get covariance at lag 0fts.cov.structure(fts, lags =0)# Get covariance at lag 10fts.cov.structure(fts, lags =10)# Get entire covariance structure between -20 and 20fts.cov.structure(fts, lags =-20:20)# Compute covariance with another processfts0 = fts + fts.rma(d=3)fts.cov.structure(fts, fts0, lags =-2:2)
See Also
The multivariate equivalent in the freqdom package: cov.structure