第22章付録:深層学習のための数学
22.11.7. Exercises22.11.7 練習問題
- Verify that the card examples from the first section indeed have the claimed entropy.
英語のヒント
最初の節のカードの例が、実際に主張したとおりのエントロピーをもつことを検証せよ。 - Show that the KL divergence is nonnegative for all distributions and . Hint: use Jensen’s inequality, i.e., use the fact that is a convex function.
英語のヒント
KLダイバージェンスが、すべての分布とについて非負であることを示せ。ヒント:イェンセンの不等式を使え。つまり、が凸関数であるという事実を使え。 - Let’s compute the entropy from a few data sources:
英語のヒント
いくつかのデータ源からエントロピーを計算しよう。- Assume that you are watching the output generated by a monkey at a typewriter. The monkey presses any of the keys of the typewriter at random (you can assume that it has not discovered any special keys or the shift key yet). How many bits of randomness per character do you observe?
英語のヒント
タイプライターに向かうサルが生成する出力を見ているとする。サルはタイプライターの個のキーのどれかをランダムに押す(特殊キーやシフトキーはまだ見つけていないと仮定してよい)。1文字あたり何ビットのランダムさを観測するか。 - Being unhappy with the monkey, you replaced it by a drunk typesetter. It is able to generate words, albeit not coherently. Instead, it picks a random word out of a vocabulary of words. Let’s assume that the average length of a word is letters in English. How many bits of randomness per character do you observe now?
英語のヒント
サルに不満なので、酔った植字工に替えた。植字工は、筋は通らないものの単語を生成できる。代わりに、語の語彙からランダムに単語を一つ選ぶ。英語の単語の平均の長さを文字と仮定しよう。今度は1文字あたり何ビットのランダムさを観測するか。 - Still being unhappy with the result, you replace the typesetter by a high quality language model. The language model can currently obtain a perplexity as low as points per word. The character perplexity of a language model is defined as the inverse of the geometric mean of a set of probabilities, each probability is corresponding to a character in the word. To be specific, if the length of a given word is , then Assume that the test word has 4.5 letters, how many bits of randomness per character do you observe now?
英語のヒント
結果にまだ不満なので、植字工を高品質な言語モデルに替える。この言語モデルは現在、単語あたりポイントという低いパープレキシティを得られる。言語モデルの文字パープレキシティは、確率の集合の幾何平均の逆数として定義され、各確率は単語の中の1文字に対応する。具体的には、与えられた単語の長さがなら、である。テストの単語が4.5文字だと仮定すると、今度は1文字あたり何ビットのランダムさを観測するか。
- Explain intuitively why . Then, show this is true by expressing both sides as an expectation with respect to the joint distribution.
英語のヒント
となる理由を直観的に説明せよ。それから、両辺を同時分布についての期待値として表すことで、これが正しいことを示せ。 - What is the KL Divergence between the two Gaussian distributions and ?
英語のヒント
二つのガウス分布との間のKLダイバージェンスは何か。