Entropy and Conditional Entropy
Given a discrete random variable X with possible values {T1, Tn} and probability mass function P(X), the formula to compute entropy is:
H(X) = - Σ P(X = xi) ln P(X = xi)
For Y with possible values {91, - Ym}, the conditional entropy of X conditioned on random variable Y is defined as:
H(X|Y) = - Σ Σ P(X = xi, Y = yj) ln P(Y = yj)
The joint probability mass function of the random variables X and Y is given by the following table:
X=r|X=T2 X=T3 16=A 0.2 0.1 0.1 YEU2 0.3 0.2 0.1
Compute H(X)
Compute H(X|Y)
Compute H(X|Y = 91). Note that the entropy of X knowing Y = 91 is defined as: H(X|Y = y1) = - Σ P(X = xi, Y = y1) ln P(X = xi)