第9章リカレントニューラルネットワーク
9.1.1. Autoregressive Models9.1.1 自己回帰モデル
Before introducing specialized neural networks designed to handle sequentially structured data, let’s take a look at some actual sequence data and build up some basic intuitions and statistical tools. In particular, we will focus on stock price data from the FTSE 100 index (Fig. 9.1.1). At each time step , we observe the price, , of the index at that time.
英語のヒント
系列として構造化されたデータを扱うために設計された特別なニューラルネットワークを紹介する前に、実際の系列データを見て、基本的な直観と統計的な道具を身につけよう。特に、FTSE 100指数の株価データ(図9.1.1)に焦点を当てる。各時間ステップで、その時点の指数の価格を観測する。

Fig. 9.1.1図9.1.1
FTSE 100 index over about 30 years.
英語のヒント
約30年にわたるFTSE 100指数。
Now suppose that a trader would like to make short-term trades, strategically getting into or out of the index, depending on whether they believe that it will rise or decline in the subsequent time step. Absent any other features (news, financial reporting data, etc.), the only available signal for predicting the subsequent value is the history of prices to date. The trader is thus interested in knowing the probability distribution
英語のヒント
ここで、ある取引者が、次の時間ステップで指数が上がるか下がるかの見立てに応じて、戦略的に指数に入ったり出たりする短期の取引をしたいとしよう。ほかの特徴量(ニュース、財務報告のデータなど)がなければ、次の値を予測するのに使える唯一の信号は、これまでの価格の履歴である。そのため、取引者が知りたいのは、次の確率分布である。
(9.1.1)
over prices that the index might take in the subsequent time step. While estimating the entire distribution over a continuously valued random variable can be difficult, the trader would be happy to focus on a few key statistics of the distribution, particularly the expected value and the variance. One simple strategy for estimating the conditional expectation
英語のヒント
これは、次の時間ステップで指数がとりうる価格にわたる分布である。連続値の確率変数の分布全体を推定するのは難しいかもしれないが、取引者は分布のいくつかの鍵となる統計量、特に期待値と分散に注目できれば満足だろう。次の条件付き期待値を推定するには、
(9.1.2)
would be to apply a linear regression model (recall Section 3.1). Such models that regress the value of a signal on the previous values of that same signal are naturally called autoregressive models. There is just one major problem: the number of inputs, varies, depending on . In other words, the number of inputs increases with the amount of data that we encounter. Thus if we want to treat our historical data as a training set, we are left with the problem that each example has a different number of features. Much of what follows in this chapter will revolve around techniques for overcoming these challenges when engaging in such autoregressive modeling problems where the object of interest is or some statistic(s) of this distribution.
英語のヒント
線形回帰モデルを当てはめるのが単純な戦略の一つだろう(3.1節を思い出そう)。ある信号の値を、その同じ信号の過去の値に回帰させるこうしたモデルは、自然に自己回帰モデルと呼ばれる。大きな問題が一つだけある。入力の数がによって変わることである。言い換えれば、入力の数は出会うデータの量とともに増える。そのため、過去のデータを訓練集合として扱いたいなら、各事例の特徴量の数が異なるという問題が残る。この章で以下に続くことの多くは、関心の対象がやこの分布の何らかの統計量であるような自己回帰のモデリングの問題に取り組むときに、こうした難題を乗り越えるための手法をめぐって展開する。
A few strategies recur frequently. First of all, we might believe that although long sequences are available, it may not be necessary to look back so far in the history when predicting the near future. In this case we might content ourselves to condition on some window of length and only use observations. The immediate benefit is that now the number of arguments is always the same, at least for . This allows us to train any linear model or deep network that requires fixed-length vectors as inputs. Second, we might develop models that maintain some summary of the past observations (see Fig. 9.1.2) and at the same time update in addition to the prediction . This leads to models that estimate not only with but also updates of the form . Since is never observed, these models are also called latent autoregressive models.
英語のヒント
いくつかの戦略がよく繰り返し使われる。まず、長い系列が手に入るとしても、近い将来を予測するのに履歴をそれほど遠くまでさかのぼる必要はないかもしれないと考えることがある。この場合、長さのある窓を条件とすることで満足し、の観測だけを使うことにするかもしれない。直接の利点は、少なくともでは、引数の数がいつも同じになることである。これにより、固定長のベクトルを入力として必要とするどんな線形モデルや深いネットワークも訓練できる。第二に、過去の観測の何らかの要約を保持し(図9.1.2を参照)、予測に加えても同時に更新するモデルを作ることがある。これは、によってを推定するだけでなく、の形の更新も推定するモデルにつながる。は決して観測されないので、こうしたモデルは潜在自己回帰モデルとも呼ばれる。
Fig. 9.1.2図9.1.2
A latent autoregressive model.
英語のヒント
潜在自己回帰モデル。
To construct training data from historical data, one typically creates examples by sampling windows randomly. In general, we do not expect time to stand still. However, we often assume that while the specific values of might change, the dynamics according to which each subsequent observation is generated given the previous observations do not. Statisticians call dynamics that do not change stationary.
英語のヒント
過去のデータから訓練データを作るには、ふつう窓をランダムにサンプリングして事例を作る。一般に、時間が止まっているとは考えない。しかし、の具体的な値は変わるかもしれないが、それまでの観測が与えられたときに次の各観測が生成される動態そのものは変わらない、と仮定することは多い。統計学者は、変わらない動態を定常的と呼ぶ。