第3章回帰のための線形ニューラルネットワーク
3.1.6. Exercises3.1.6 練習問題
- Assume that we have some data . Our goal is to find a constant such that is minimized.
英語のヒント
データがあるとする。目標は、が最小になるような定数を見つけることである。- Find an analytic solution for the optimal value of .
英語のヒント
の最適値の解析解を求めよ。 - How does this problem and its solution relate to the normal distribution?
英語のヒント
この問題とその解は正規分布とどう関係するか。 - What if we change the loss from to ? Can you find the optimal solution for ?
英語のヒント
損失をからに変えたらどうなるか。の最適解を見つけられるか。
- Prove that the affine functions that can be expressed by are equivalent to linear functions on .
英語のヒント
で表せるアフィン関数が、上の線形関数と同等であることを証明せよ。 - Assume that you want to find quadratic functions of , i.e., . How would you formulate this in a deep network?
英語のヒント
の2次関数、つまりを見つけたいとする。これを深いネットワークでどう定式化するか。 - Recall that one of the conditions for the linear regression problem to be solvable was that the design matrix has full rank.
英語のヒント
線形回帰問題が解けるための条件の一つが、計画行列が最大階数をもつことだったのを思い出そう。- What happens if this is not the case?
英語のヒント
そうでない場合はどうなるか。 - How could you fix it? What happens if you add a small amount of coordinate-wise independent Gaussian noise to all entries of ?
英語のヒント
それをどう直せるか。のすべての成分に、座標ごとに独立な小さなガウスノイズを加えたらどうなるか。 - What is the expected value of the design matrix in this case?
英語のヒント
この場合、計画行列の期待値は何か。 - What happens with stochastic gradient descent when does not have full rank?
英語のヒント
が最大階数をもたないとき、確率的勾配降下法では何が起きるか。
- Assume that the noise model governing the additive noise is the exponential distribution. That is, .
英語のヒント
加法的なノイズを支配するノイズのモデルが指数分布だとする。つまりである。- Write out the negative log-likelihood of the data under the model .
英語のヒント
モデルのもとで、データの負の対数尤度を書き出せ。 - Can you find a closed form solution?
英語のヒント
閉じた形の解を見つけられるか。 - Suggest a minibatch stochastic gradient descent algorithm to solve this problem. What could possibly go wrong (hint: what happens near the stationary point as we keep on updating the parameters)? Can you fix this?
英語のヒント
この問題を解くミニバッチ確率的勾配降下法のアルゴリズムを提案せよ。何がまずくなりうるか(ヒント:パラメータを更新し続けると、停留点の近くで何が起きるか)。それを直せるか。
- Assume that we want to design a neural network with two layers by composing two linear layers. That is, the output of the first layer becomes the input of the second layer. Why would such a naive composition not work?
英語のヒント
二つの線形層を合成して、2層のニューラルネットワークを設計したいとする。つまり、1層目の出力が2層目の入力になる。このような素朴な合成がうまくいかないのはなぜか。 - What happens if you want to use regression for realistic price estimation of houses or stock prices?
英語のヒント
住宅の価格や株価の現実的な推定に回帰を使いたいとしたら、どうなるか。- Show that the additive Gaussian noise assumption is not appropriate. Hint: can we have negative prices? What about fluctuations?
英語のヒント
加法的なガウスノイズの仮定が適切でないことを示せ。ヒント:価格が負になりうるか。変動についてはどうか。 - Why would regression to the logarithm of the price be much better, i.e., ?
英語のヒント
価格の対数への回帰、つまりのほうがずっとよいのはなぜか。 - What do you need to worry about when dealing with pennystock, i.e., stock with very low prices? Hint: can you trade at all possible prices? Why is this a bigger problem for cheap stock? For more information review the celebrated Black–Scholes model for option pricing (Black and Scholes, 1973).
英語のヒント
ペニーストック、つまり非常に価格の低い株を扱うときは、何を心配する必要があるか。ヒント:あらゆる価格で取引できるか。なぜこれは安い株でいっそう大きな問題になるのか。詳しくは、オプションの価格付けについての有名なブラック–ショールズモデルを調べよ(Black and Scholes, 1973)。
- Suppose we want to use regression to estimate the number of apples sold in a grocery store.
英語のヒント
食料品店で売れたリンゴの数を、回帰を使って推定したいとする。- What are the problems with a Gaussian additive noise model? Hint: you are selling apples, not oil.
英語のヒント
ガウスの加法的ノイズのモデルにはどんな問題があるか。ヒント:売っているのはリンゴであって、油ではない。 - The Poisson distribution captures distributions over counts. It is given by . Here is the rate function and is the number of events you see. Prove that is the expected value of counts .
英語のヒント
ポアソン分布は、回数の上の分布をとらえる。それはで与えられる。ここでは率関数で、は見た事象の回数である。が回数の期待値であることを証明せよ。 - Design a loss function associated with the Poisson distribution.
英語のヒント
ポアソン分布に対応する損失関数を設計せよ。 - Design a loss function for estimating instead.
英語のヒント
代わりにを推定するための損失関数を設計せよ。