H(X) vs. H(f (X))