generating autocorrelated time series based on data
显示 更早的评论
hello all,
i would be very grateful for advise on the following problem: i have a autocorrelated time series and i am trying to simulate another time series that shares the same autocorrelation. so far, my algorithm works as follows:
1. estimate the autocorrelation of the original time series at different lags (until negligibly small)
2. estimate an AR model on that data
3. generate a new time series using the estimated AR parameters:
timeseries_new = filter(1,parameters(2:Nparameters,randn(Ntimeseries,1));
4. estimate the autocorrelation of timeseries_new and match it with the original one.
unfortunately, the mismatch between the original autocorrelation and the ones from the simulated time series is often relatively huge, at least for some lags. e.g. in one instance, it would match well for lag = 1, but is then more than 10 % off between the values from lag = 2. i tried several polynomials (AR(1) to AR(4)), but that doesnt solve it completely. is there any way to more accurately simulate autocorrelated data?
any advise is much appreciated.
回答(2 个)
Honglei Chen
2012-8-8
0 个投票
I may not understand your statement correctly, but did you only try from first order to fourth order AR? I think you need set the order of AR process to number of lags where it becomes negligibly small, otherwise, your AR model is just not a good representation of your original time series.
类别
在 帮助中心 和 File Exchange 中查找有关 Conditional Mean Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!