Using fourier analysis for time series prediction

后端 未结 4 1619
失恋的感觉
失恋的感觉 2021-01-29 22:02

For data that is known to have seasonal, or daily patterns I\'d like to use fourier analysis be used to make predictions. After running fft on time series data, I obtain coeffic

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-29 22:49

    I'm aware that this question may be not actual for you anymore, but for others that are looking for answers I wrote a very simple example of fourier extrapolation in Python https://gist.github.com/tartakynov/83f3cd8f44208a1856ce

    Before you run the script make sure that you have all dependencies installed (numpy, matplotlib). Feel free to experiment with it. enter image description here P.S. Locally Stationary Wavelet may be better than fourier extrapolation. LSW is commonly used in predicting time series. The main disadvantage of fourier extrapolation is that it just repeats your series with period N, where N - length of your time series.

提交回复
热议问题