第22章付録:深層学習のための数学
22.7.3. Maximum Likelihood for Continuous Variables22.7.3 連続変数の最尤法
Everything that we have done so far assumes we are working with discrete random variables, but what if we want to work with continuous ones?
英語のヒント
ここまでしてきたことはすべて離散確率変数を扱うことを前提にしているが、連続確率変数を扱いたい場合はどうだろうか。
The short summary is that nothing at all changes, except we replace all the instances of the probability with the probability density. Recalling that we write densities with lower case , this means that for example we now say
英語のヒント
手短にまとめると、確率をすべて確率密度に置き換える以外は、何も変わらない。密度は小文字ので書くことを思い出すと、これはたとえば次のように言うことになる。
(22.7.15)
The question becomes, “Why is this OK?” After all, the reason we introduced densities was because probabilities of getting specific outcomes themselves was zero, and thus is not the probability of generating our data for any set of parameters zero?
英語のヒント
問題は、「なぜこれでよいのか」である。結局のところ、密度を導入した理由は、特定の結果を得る確率そのものが0だったからであり、そうすると、どんなパラメータの組についても、データを生成する確率は0になってしまうのではないか。
Indeed, this is the case, and understanding why we can shift to densities is an exercise in tracing what happens to the epsilons.
英語のヒント
実際にそのとおりであり、なぜ密度に移れるのかを理解することは、イプシロンに何が起きるかをたどる練習である。
Let’s first re-define our goal. Suppose that for continuous random variables we no longer want to compute the probability of getting exactly the right value, but instead matching to within some range . For simplicity, we assume our data is repeated observations of identically distributed random variables . As we have seen previously, this can be written as
英語のヒント
まず、目標を定義し直そう。連続確率変数については、ちょうど正しい値を得る確率を計算したいのではなく、ある範囲の中で一致する確率を計算したいとする。簡単にするため、データは、同じ分布に従う確率変数の繰り返しの観測だと仮定する。前に見たように、これは次のように書ける。
(22.7.16)
Thus, if we take negative logarithms of this we obtain
英語のヒント
したがって、この負の対数をとると、次が得られる。
(22.7.17)
If we examine this expression, the only place that the occurs is in the additive constant . This does not depend on the parameters at all, so the optimal choice of does not depend on our choice of ! If we demand four digits or four-hundred, the best choice of remains the same, thus we may freely drop the epsilon to see that what we want to optimize is
英語のヒント
この式を調べると、が現れる唯一の場所は加法的な定数の中である。これはパラメータにまったく依存しないので、の最適な選択はの選び方に依存しない。4桁を求めても400桁を求めても、の最善の選択は同じままなので、イプシロンを自由に落として、最適化したいのは次であることがわかる。
(22.7.18)
Thus, we see that the maximum likelihood point of view can operate with continuous random variables as easily as with discrete ones by replacing the probabilities with probability densities.
英語のヒント
したがって、確率を確率密度に置き換えることで、最尤の見方は離散確率変数と同じくらい簡単に連続確率変数でも使えることがわかる。