First, information theory basis:
Entropy:
Joint entropy: In fact, it is the amount of information needed to describe an average pair of random variables.
Conditional entropy: In the case of a given random variable X, the conditional entropy of the random variable Y is defined as:
Entropy Rate:
Relative entropy (KL distance): The relative entropy of two probability distributions P (x) and Q (x) is defined as:
Cross-entropy: If a random variable x ~ p (x), q (x) is used to approximate the probability distribution of P (x), then the cross-entropy between the random variable x and the model Q is defined as:
Thus, we can calculate the cross-entropy based on the model Q and a sample of L with a large amount of data. When designing the model Q, our aim is to minimize the cross-entropy so that the model is closest to the real probability distribution P (x).
Degree of confusion:
Mutual information:
When the correlation between the two Chinese characters X and Y is strong, the mutual information value I (x, y) >0;x and y are weak, I (x, y) ≈0, and when I (x, y) <0, x and y are called "complementary distributions". In the study of Chinese word segmentation, some scholars use the concept of two-word coupling instead of mutual information: The ci,ci+1 is two consecutive characters, the number of consecutive occurrences of ci,ci+1 in a statistical sample, and the total number of successive occurrences, the ratio of which is the double-character coupling of ci,ci+1:
Some Chinese characters appear in the actual application although more frequent, but the occurrence of the situation is relatively small, once connected together, it is likely to be a word. In this case the calculated mutual information will be relatively small, but in fact the combination of the two should be relatively high. The two-character coupling is exactly the probability of two consecutive Chinese characters appearing in a word, not considering the non-continuous occurrence of two Chinese characters.
For example: Vocabulary disambiguation:
* Derivation of probability p* (a|b) Description: