7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

時系列予測手法&実装まとめ(12/10:更新)

Last updated at Posted at 2018-11-05

はじめに

よくNNや各種機械学習の手法で時系列解析をやってみたという記事をよく見かけますが、そのほとんどが予測値の算出方法を誤っているように感じます。

学習したモデルに対して元データのたった1ステップ先しか予測していないことが多いのです。

タイムステップが極めて大きい解析対象であればかまいませんが、わずか1ステップの出来事を予測してうれしい場面が果たしてあるのでしょうか。

当然、数十ステップ先を予測することに時系列予測の意義があります。

モデルの出力を加えた入力データを次の予測に利用する再帰的な計算過程を意識する必要があります。

データを時系列としてとらえることの意義は

明示的に得られていないデータの特徴をデータの並び順から見出す

この一言に尽きます。

ARIMA系

Random Forest

RNN系

Deconposable TS Model (Harvey+ ’90)

y(t) = g(t) + s(t) + h(t) + ε(t)

g(t): 成⻑関数 (growth)
s(t): 周期性 (seasonality)
h(t): 祝⽇効果 (holiday)
ε(t): 誤差 (正規分布を仮定)

実装
fbprophetというfacebook社が提供しているAPIが便利です
1.Generate Quick and Accurate Time Series Forecasts using Facebook’s Prophet (with Python & R codes) - fbprophetを利用
2.Prophet入門【Python編】Facebookの時系列予測ツール

参考
1.Prophet入門【理論編】Facebookの時系列予測ツール

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?