プリンキピア

第22章付録:深層学習のための数学

22.5.6. Change of Variables in Multiple Integrals22.5.6 重積分における変数変換

As with single variables in (22.5.18), the ability to change variables inside a higher dimensional integral is a key tool. Let’s summarize the result without derivation.
英語のヒント
1変数の式(22.5.18)と同じように、高次元の積分の中で変数を変換できることは鍵となる道具である。導出なしで結果をまとめよう。
We need a function that reparametrizes our domain of integration. We can take this to be ϕ:ℝn→ℝn, that is any function which takes in n real variables and returns another n. To keep the expressions clean, we will assume that ϕ is injective which is to say it never folds over itself (ϕ(𝐱)=ϕ(𝐲)⟹𝐱=𝐲).
英語のヒント
積分の領域をパラメータづけし直す関数が必要である。これをϕ:ℝn→ℝn、つまりn個の実変数を受け取って別のn個を返す任意の関数とできる。式をすっきりさせるため、ϕは単射、つまり決して自分自身の上に折り重ならない(ϕ(𝐱)=ϕ(𝐲)⟹𝐱=𝐲)と仮定する。
In this case, we can say that
英語のヒント
この場合、次のように言える。
∫ϕ(U)f(𝐱)d𝐱=∫Uf(ϕ(𝐱))|det(Dϕ(𝐱))|d𝐱.(22.5.35)
where Dϕ is the Jacobian of ϕ, which is the matrix of partial derivatives of 𝝓=(ϕ1(x1,…,xn),…,ϕn(x1,…,xn)),
英語のヒント
ここでDϕはϕのヤコビ行列であり、これは𝝓=(ϕ1(x1,…,xn),…,ϕn(x1,…,xn))の偏導関数の行列である。
D𝝓=[∂ϕ1∂x1⋯∂ϕ1∂xn⋮⋱⋮∂ϕn∂x1⋯∂ϕn∂xn].(22.5.36)
Looking closely, we see that this is similar to the single variable chain rule (22.5.18), except we have replaced the term dudx(x) with |det(Dϕ(𝐱))|. Let’s see how we can to interpret this term. Recall that the dudx(x) term existed to say how much we stretched our x-axis by applying u. The same process in higher dimensions is to determine how much we stretch the area (or volume, or hyper-volume) of a little square (or little hyper-cube) by applying 𝝓. If 𝝓 was the multiplication by a matrix, then we know how the determinant already gives the answer.
英語のヒント
よく見ると、これは1変数の連鎖律(式(22.5.18))に似ているが、項dudx(x)を|det(Dϕ(𝐱))|に置き換えている点が違う。この項をどう解釈できるかを見よう。項dudx(x)は、uを適用することでx軸をどれだけ引き伸ばしたかを表すためにあったことを思い出そう。高次元での同じ過程は、𝝓を適用することで小さな正方形(あるいは小さな超立方体)の面積(あるいは体積、超体積)をどれだけ引き伸ばすかを決めることである。𝝓が行列による掛け算なら、行列式がすでに答えを与えることはわかっている。
With some work, one can show that the Jacobian provides the best approximation to a multivariable function 𝝓 at a point by a matrix in the same way we could approximate by lines or planes with derivatives and gradients. Thus the determinant of the Jacobian exactly mirrors the scaling factor we identified in one dimension.
英語のヒント
少し調べれば、導関数と勾配で直線や平面による近似ができたのと同じように、ヤコビ行列が、多変数関数𝝓に対するある点での行列による最良の近似を与えることを示せる。したがって、ヤコビ行列の行列式は、1次元で見つけた倍率をちょうど映し出している。
It takes some work to fill in the details to this, so do not worry if they are not clear now. Let’s see at least one example we will make use of later on. Consider the integral
英語のヒント
この詳細を埋めるには少し手間がかかるので、今はっきりしなくても心配はいらない。後で使う例を少なくとも一つ見よう。次の積分を考える。
∫−∞∞∫−∞∞e−x2−y2dxdy.(22.5.37)
Playing with this integral directly will get us no-where, but if we change variables, we can make significant progress. If we let 𝝓(r,θ)=(rcos⁡(θ),rsin⁡(θ)) (which is to say that x=rcos⁡(θ), y=rsin⁡(θ)), then we can apply the change of variable formula to see that this is the same thing as
英語のヒント
この積分を直接いじってもどこにもたどり着かないが、変数を変換すれば大きく前進できる。𝝓(r,θ)=(rcos⁡(θ),rsin⁡(θ))とおく(つまりx=rcos⁡(θ)、y=rsin⁡(θ)とする)と、変数変換の公式を適用して、これが次と同じものであることがわかる。
∫0∞∫02πe−r2|det(Dϕ(𝐱))|dθdr,(22.5.38)
where
英語のヒント
ここで、
|det(Dϕ(𝐱))|=|det[cos⁡(θ)−rsin⁡(θ)sin⁡(θ)rcos⁡(θ)]|=r(cos2⁡(θ)+sin2⁡(θ))=r.(22.5.39)
Thus, the integral is
英語のヒント
したがって、積分は次のようになる。
∫0∞∫02πre−r2dθdr=2π∫0∞re−r2dr=π,(22.5.40)
where the final equality follows by the same computation that we used in section Section 22.5.3.
英語のヒント
ここで最後の等号は、22.5.3節で使ったのと同じ計算から従う。
We will meet this integral again when we study continuous random variables in Section 22.6.
英語のヒント
この積分には、22.6節で連続確率変数を学ぶときに再び出会う。