# Back to the future (vector representation of future, an approach to analysis of time series)

Today I generated an interesting idea on analysis of

Apart from different

Some pros and cons of both models I see:

**time series**. Those are frequently used in pattern recognition, mathematical finance and forecastings (weather prediction, sales prediction, number of site visitors etc.).Apart from different

*window-based*approaches, there are two basic models that by their nature represent the sequential structure in data:- hidden Markov chain (HMC)
- recurrent neural network (RNN)

Some pros and cons of both models I see:

- HMC training is inexpensive, but requires predicted values to be binned (actually this works with continuous variables, but this is mostly related to gaussian visibles and this is not robust).
- RNN requires quite a long training, but has hard times to find stable mapping (since it should be continuous), so requires some regularizations built in its architecture. Training is usually based on prediction of one or several next points in sequence, which is not always adequate.

Apart of setting several next observation in sequence as a target, there is plenty of various targets, like
running mean over $n$ next observations. However, I'd prefer machine learning to find out these targets for me.

Possible approach I came to:

- train HMC in inverse time, so HMC predicts past, not future
- it's predictions (probabilities of hidden states) can be treated as
**vector representation of future**, because it is computed on information from future - RNN is trained to predict hidden states of HMC
- Later, some other model is used based on the output of RNN to predict the value of interest.

So the trick is that we use HMC predictions as some reliable informative target about the future, like this is
done is deep learning, for instance.