VKVlad KulikovPublic / lectures
Information Theory for ML2 / 16

Module 2. Entropy

Choose your answers and select “Check”. Numbers accept a decimal point, comma, or simple fraction. Answers and drafts are saved in this browser and shared between RU/EN.

Checked: 0 / 20 · Correct: 0

Question 2.1.1

2.1. Definition and properties

Which quantity is the surprisal of a particular outcome xx relative to a distribution PP?

One correct option

Question 2.1.2

2.1. Definition and properties

A random variable has an alphabet of nn symbols, but only m<nm<n have positive probability. What is the sharpest general upper bound on its entropy?

One correct option

Question 2.1.3

2.1. Definition and properties

Which inequality correctly states concavity of entropy?

One correct option

Question 2.2.1

2.2. Joint and conditional entropy

What is the chain rule for three random variables?

One correct option

Question 2.2.2

2.2. Joint and conditional entropy

Which statement about conditional entropy is correct?

One correct option

Question 2.2.3

2.2. Joint and conditional entropy

When does

H(X,Y)=H(X)+H(Y)H(X,Y)=H(X)+H(Y)

hold?

One correct option

Question 2.2.4

2.2. Joint and conditional entropy

Suppose data are generated by a distribution PP, while an autoregressive model defines QθQ_\theta. What does

EX1:n∼P ⁣[−log⁡2qθ(X1:n)]\mathbb E_{X_{1:n}\sim P}\!\left[-\log_2q_\theta(X_{1:n})\right]

compute?

One correct option

Question 2.3.2

2.3. A coin, entropy rate, and English text

For a stationary process on a finite alphabet, the entropy rate can be written as

One correct option

Question 2.3.3

2.3. A coin, entropy rate, and English text

What is the most accurate reading of Shannon's 1951 result for English text?

One correct option

Question 2.3.4

2.3. A coin, entropy rate, and English text

What does bits per character computed from a particular LLM on a fixed corpus primarily measure?

One correct option

Question 2.4.1

2.4. Applications in ML/NLP/LLMs

Low predictive entropy of an LLM at a fixed context means that

One correct option

Question 2.4.4

2.4. Applications in ML/NLP/LLMs

What is the general relationship between mean loss L^b\widehat L_b and perplexity?

One correct option

Question 2.1.4

Optional mathematical and engineering deepening

Why is it convenient to restrict to the support S={x:p(x)>0}\mathcal S=\{x:p(x)>0\} in the Jensen proof of H(X)≤log⁡2nH(X)\le\log_2n?

One correct option

Question 2.3.1

Optional mathematical and engineering deepening

Why does the module denote binary entropy by h2(p)h_2(p) rather than H2(p)H_2(p)?

One correct option

Question 2.4.2

Optional mathematical and engineering deepening

Let qT(v)∝exp⁡(zv/T)q_T(v)\propto\exp(z_v/T) for fixed logits. How does entropy vary with TT?

One correct option

Question 2.4.3

Optional mathematical and engineering deepening

In basic one-step exact speculative decoding, the mean probability of accepting a draft token is

One correct option

Question 2.C.1

Computational block

Compute the entropy of qB=(0.40,0.30,0.20,0.10)q_B=(0.40,0.30,0.20,0.10) in bits. (tolerance 0.002)

Question 2.C.2

Computational block

For the same qBq_B, compute the effective number of alternatives 2H2^{H}. (tolerance 0.005)

Question 2.C.3

Computational block

A biased die has p=(1/2,1/4,1/8,1/16,1/32,1/32)p=(1/2,1/4,1/8,1/16,1/32,1/32). Compute its entropy in bits. (tolerance 0.002)

Question 2.C.4

Computational block

(optional)

A target distribution is p=(0.9,0.1)p=(0.9,0.1) and a draft is q=(0.1,0.9)q=(0.1,0.9). Compute the mean acceptance probability in one-step exact speculative decoding. (tolerance 0.005)