I need a hint on how to start solving the following problem.
Entropy of a discrete variable X is $H(X) = −\sum_{x\in \{x:P(X=x)>0\}}P(X=x)logP(X=x)$. Let $f:R → R$ be any function.\
a) Show that entropy of a discrete variable X is greater than or equal to entropy of a discrete variable f(X).\
b) Show that equality occurs if and only if function f is injective on {x : P(X = x) > 0}