Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
507 views
in Technique[技术] by (71.8m points)

python - Wavelet for time series forecasting

I have a time series data and I wanted to try wavelet transform to denoise the data and then apply machine learning forecasting algorithm

My forecasting problem: is to predict the next day hourly power consumption .

I am using python, pywavelets library. I have read the library documentation. Unfortunately, I didn't find any source clearly descripting how to properly do the wavelet decomposition for forecasting.

I know it needs to be done very carefully because we need to consider that, in real life, future values do not exist and hence shouldn't be considered in the data to be decomposed .. or it's a case of data leakage.

However, I still not confident in how to apply it well.

I think the procedure should be like this:

  1. Split data into training and testing
  2. Reshape data into Xs and Ys
  3. Training: for each example apply wavelet transform for the Xs and Ys separately considering the data from the beginning.
  4. reconstruct the components
  5. Build a model for each component
  6. Repeat 3 to 4 for the Testing phase
  7. predict the next value in each component using the trained model
  8. sum the components to get the prediction

Are the listed steps correct? is it true that for the prediction models we need to train the model on the components, not the coefficients?

Any help is appreciated. Thanks

question from:https://stackoverflow.com/questions/65661073/wavelet-for-time-series-forecasting

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...