View source: R/autodependence.R
autocovariance | R Documentation |
Obtain the empirical autocovariance function for the given lags
of a
functional time series, X
. Given a functional time series, the sample
autocovariance functions \hat{C}_{h}(u,v)
are given by:
\hat{C}_{h}(u,v) = \frac{1}{N} \sum_{i=1}^{N-|h|}(Y_{i}(u) -
\overline{X}_{N}(u))(Y_{i+|h|}(v) - \overline{X}_{N}(v))
where \overline{X}_{N}(u) = \frac{1}{N} \sum_{i = 1}^{N} X_{i}(t)
denotes the sample mean function and h
is the lag parameter.
autocovariance(X, lags = 0:1, center = TRUE)
X |
A dfts object or data which can be automatically converted to that
format. See |
lags |
Numeric(s) for the lags to estimate the lagged operator. |
center |
Boolean if the data should be centered. Default is true. |
Return a list or data.frame with the lagged autocovariance function(s)
estimated from the data. Each function is given by a (r
x r)
matrix, where r
is the number of points observed in each curve.
autocorrelation()
, var()
v <- seq(0, 1, length.out = 20)
lagged_autocov <- autocovariance(
X = generate_brownian_bridge(100, v = v),
lags = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.