- Relative entropy is not symmetric: Let the random variable X have three
possible outcomes
. Consider two distributions on this random variable
Calculate H(p), H(q), D(p||q) and D(q||p).
Verify that in this case
.
- Symmetric relative entropy: Though, as the previous example shows,
in general, there could be distributions for which equality
holds. Give an example of two distributions p and q on a binary alphabet
such that D(p||q) = D(q||p) (other than the
trivial case when p = q).
- Relative entropy is cost of miscoding: Let the random variable X have
five possible outcomes
. Consider two distributions on
this random variable
- Calculate H(p), H(q), D(p||q) and D(q||p).
- The last two columns above represent codes for the random variable. Verify that the
average length of
under p is equal to the entropy H(p). Thus
is optimal for p. Verify that
is optimal for q.
- Now assume that we use code
when the distribution is p.
What is the average length of the codewords. By how much does it exceed the entropy p?
- What is the loss if we use code
when the distribution is q?
- Another proof of non-negativity of relative entropy. In view of the fundamental
nature of the result
, we will give another proof.
- Show that
for
.
- Justify the following steps:
- What are the conditions for equality?
- Grouping rule for entropy: Let
be a probability distribution on m
elements, i.e,
, and
. Define a new distribution
on m-1 elements as
,
,...,
, and
, i.e., the distribution
is the same as
on
, and the
probability of the last element in
is the sum of the last two
probabilities of
. Show that
where
.
- Relative Entropy: Let X,Y,Z be three random variables with
a joint probability mass function p(x,y,z). The relative
entropy between the joint distribution and the product of the marginals is
Expand this in terms of entropies. When is this quantity zero?
- The value of a question Let
,
. We are given a
set
. We ask whether
and receive the answer
Suppose
. Find the decrease in uncertainty H(X)-H(X|Y).
Apparently any set S with a given
is as good as any other.
- Entropy and pairwise independence.
Let X,Y,Z be three binary Bernoulli
random variables
that are pairwise independent, that is, I(X;Y)=I(X;Z)=I(Y;Z)=0.
- Under this constraint, what is the minimum value for H(X,Y,Z)?
- Give an example achieving this minimum.
- Discrete entropies
Let X and Y be two independent
integer-valued random variables. Let X be uniformly distributed over
, and let
,
- Find H(X)
- Find H(Y)
- Find H(X+Y, X-Y).
- Random questions
One wishes to identify a random object
. A
question
is asked at random according to r(q). This
results in a deterministic answer
. Suppose X and Q
are independent. Then I(X;Q,A) is the uncertainty in X
removed by the question-answer (Q,A).
- Show I(X;Q,A)=H(A|Q). Interpret.
- Now suppose that two i.i.d. questions
are asked, eliciting answers
and
. Show that two questions are
less valuable than twice a single question in the sense that
.
- Inequalities. Which of the following inequalities are generally
?
Label each with
or
.
- H(5X) vs. H(X)
- I(g(X);Y) vs. I(X;Y)
vs.
vs.
, where
is the
Huffman codeword assigned to
.
- H(X,Y)/(H(X)+H(Y)) vs. 1
- Mutual information of heads and tails.
- Consider a fair coin flip. What is the mutual information between the top side and the
bottom side of the coin?
- A 6-sided fair die is rolled. What is the mutual information between the top side and
the front face (the side most facing you)?
- Conditional probability and relative entropy: Let
be the conditional
probability of X given that X is in the set B. Show that
- Pure randomness
We wish to use a 3-sided coin to generate a fair coin toss.
Let the coin X have probability mass function
where
are unknown.
- How would you use 2 independent flips
to generate (if possible) a
Bernoulli(
) random variable Z?
- What is the resulting maximum expected number of fair bits generated?
- Finite entropy. Show that for a discrete random variable
, if
, then
.
- The entropy of a missorted file.
A deck of n cards in order
is provided. One card is removed
at random then replaced at random. What is the entropy of the resulting deck?