Does the entropy of a symbol represent the most optimal average number of bits that can be used to represent a symbol? For example take the example of tossing a coin:
$$ H_{source} = -p_{head} log_2 p_{head} - p_{tail} log_2 p_{tail} $$
so if
$$ p_{head} = p_{tail} = \frac{1}{2} $$
then H = 1 bit, but if
$$ p_{head} = \frac{9}{10} , p_{tail} = \frac{1}{10} $$
then H = 0.468993 bits, meaning that if wanted to transmit the outcome of 10 coin tosses then I would know I use the most optimal coding scheme if my average number of bits I use to represent the outcome of the 10 coin tosses is:
$$ \text { Optimal Average Bits that would to be transmitted = Information } = NH $$
which is 10 bits in the first case but 4.7 bits in the second case.Is this right?