Do random forest, K-means, SVM take into consideration past value in time series ?

2 Ansichten (letzte 30 Tage)
Dear all, sorry for my stupid question but I am new to machine learning.
I was wondering if I should introduce lagged variables in my series to take into consideration past information.
If it helps, I am doing a classification on stock performance forecasting (either negative, neutral or positive). Therefore, each line correspond to a month with its different observations (predictors).
After normalising them, I don't know if these algorithms take into consideration past values, in other words if they recognise that some indicators are particularly high of low, compared to previous months and take a wise decision in function of that.
I had a doubt since for a tree, decisions points are made with the "best" threshold (gini). Did it then took into consideration all past values ?
Many thanks in advance,
Pierre

Akzeptierte Antwort

Bernhard Suhm
Bernhard Suhm am 9 Apr. 2018
Your model takes into consideration whatever you provide as predictor variables with your data. None of the machine learning methods you mention "automatically" incorporate past data points from your time series in making predictions, you have to "feed" them into your algorithm, as "lagged variables" as you say.
  1 Kommentar
Pierre Lonfat
Pierre Lonfat am 9 Apr. 2018
Thank you very much for your answer. I thought that decision trees would use past values to calculate the best threshold when making decision at each node (the gini index). Is that incorrect ? I am going to lag my variables anyway :) !

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by