3.3.1 Information And Entropy
To quantify information content, consider how unexpected a message is. The information I conveyed by a message is given by:
(3.6)
where P is the probability that the message will be transmitted. Messages that occur more frequently carry less information.
Suppose a source transmits one of four weather conditions—Fine, Cloudy, Rain and Snow—which are not equally probable. Figure 3.10 lists their probabilities, corresponding information content, and example binary representations.

This average information of the source is known as its entropy is:
(3.7)
where M is the number of different messages produced by the source and Pi is the probability of transmitting the ith message. For the example in Figure 3.10, the entropy of the source is:
(3.8)
