All Questions
1 question
2
votes
0
answers
303
views
Use sliding window to find variance for seasonal time series in R
I would like to estimate the variance of a time series. Say, if the time series has a period of 24, and I want to estimate the variance using
$$ \sigma_t^2 = \frac{1}{2k+1} \sum^k_{-k} (y_{t+24k} - \...