Multivariate Time Series Analysis – Predict Multiple Periods Ahead

I have spent the past few 20 months looking into different software to help me predict the opening daily stock price into the future. All software has the ability to rank/score testing data against actual data using multiple variables as inputs, however there is limited literature or discussion on actual prediction into the future when no data is avilable.

I have found Kathrin’s “Multivariate Time Series Analysis with an RNN - Training and Deployment” models. As this is one of the few examples on the internet that predict a future result when no other future variables are present it is very useful. It is only limited in that it predicts the next single output and not multiple periods ahead.

I have modified Kathrin’ model and input dataset to align with my aim of predicting the next daily “opening price” for 100 days into the future. I would however like to predict the daily opening price for the next 100 days (100 individual outputs in sequence). There is some discussion on different forum posts that a loop could be used but there are no useful examples.

I am hoping someone might have setup a project that does something similar and be able to share it, or alternatively examine the 2x workflows I have uploaded and provide some much needed advice (link below). The alternate would be to take Kathrin’s original model and add additional prediction periods to it (eg instead of predicting only the next hour, predict the next 36 hours).

Many thanks,


I have built that in python long time ago and there are basically 2 options i can think of (and you already pointed out)
Either let the model spit out 100 outputs (probably to much I would rather make it a smaller window) in one go
or predict only the next day and then add this prediction on top of your input sequence, remove the oldest data point (so you got the same amount of timesteps for your input sequence which the model expects) and then predict based on the prediction value itself (hope that was understandable)
So you probably need to wrap the loop around the creation of the new sequence and predictor node


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.