CCJ PRML Study Note - Chapter 1.6 : Information Theory

时间:2022-03-07 07:55:01

Chapter 1.6 : Information Theory

 
 

Chapter 1.6 : Information Theory

Christopher M. Bishop, PRML, Chapter 1 Introdcution

1. Information h(x)

Given a random variable CCJ PRML Study Note -  Chapter 1.6 : Information Theory and we ask how much information is received when we observe a specific value for this variable.

  • The amount of information can be viewed as the “degree of surprise” on learning the value of CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
  • information CCJ PRML Study Note -  Chapter 1.6 : Information Theory: CCJ PRML Study Note -  Chapter 1.6 : Information Theory where the negative sign ensures that information is positive or zero.
  • the units of CCJ PRML Study Note -  Chapter 1.6 : Information Theory:
    • using logarithms to the base of 2: the units of CCJ PRML Study Note -  Chapter 1.6 : Information Theory are bits (‘binary digits’).
    • using logarithms to the base of CCJ PRML Study Note -  Chapter 1.6 : Information Theory, i.e., natural logarithms: the units of CCJ PRML Study Note -  Chapter 1.6 : Information Theory are nats.

2. Entropy H(x): average amount of information

2.1 Entropy H(x)

Firstly we interpret the concept of entropy in terms of the average amount of information needed to specify the state of a random variable.

Now suppose that a sender wishes to transmit the value of a random variable to a receiver. The average amount of information that they transmit in the process is obtained by taking the expectation of (1.92) with respect to the distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory and is given as

  • discrete entropy for discrete random variable byCCJ PRML Study Note -  Chapter 1.6 : Information Theory
  • or differential/continuous entropy for continuous random variable by CCJ PRML Study Note -  Chapter 1.6 : Information Theory
  • Note that CCJ PRML Study Note -  Chapter 1.6 : Information Theory and so we shall take CCJ PRML Study Note -  Chapter 1.6 : Information Theory whenever we encounter a value for CCJ PRML Study Note -  Chapter 1.6 : Information Theory such that CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
  • The nonuniform distribution has a smaller entropy than the uniform one.

2.2 Noiseless coding theorem (Shannon, 1948)

The noiseless coding theorem states that the entropy is a lower bound on the number of bits needed to transmit the state of a random variable.

2.3 Alternative view of entropy H(x)

Secondly, let us introduces the concept of entropy in physics in the context of equilibrium thermodynamics and later given a deeper interpretation as a measure of disorder through developments in statistical mechanics.

Consider a set of CCJ PRML Study Note -  Chapter 1.6 : Information Theory identical objects that are to be divided amongst a set of bins, such that there are CCJ PRML Study Note -  Chapter 1.6 : Information Theory objects in the CCJ PRML Study Note -  Chapter 1.6 : Information Theory bin. Consider the number of different ways of allocating the objects to the bins.

  • There are CCJ PRML Study Note -  Chapter 1.6 : Information Theory ways to choose the first object, CCJ PRML Study Note -  Chapter 1.6 : Information Theory ways to choose the second object, and so on, leading to a total of CCJ PRML Study Note -  Chapter 1.6 : Information Theory ways to allocate all CCJ PRML Study Note -  Chapter 1.6 : Information Theory objects to the bins.
  • However, we don’t wish to distinguish between rearrangements of objects within each bin. In the CCJ PRML Study Note -  Chapter 1.6 : Information Theory bin there are CCJ PRML Study Note -  Chapter 1.6 : Information Theory ways of reordering the objects, and so the total number of ways of allocating the CCJ PRML Study Note -  Chapter 1.6 : Information Theory objects to the bins is given by CCJ PRML Study Note -  Chapter 1.6 : Information Theory which is called the multiplicity.
  • The entropy is then defined as the logarithm of the multiplicity scaled by an appropriate constant CCJ PRML Study Note -  Chapter 1.6 : Information Theory
  • We now consider the limit CCJ PRML Study Note -  Chapter 1.6 : Information Theory, in which the fractions CCJ PRML Study Note -  Chapter 1.6 : Information Theory are held fixed, and apply Stirling’s approximation CCJ PRML Study Note -  Chapter 1.6 : Information Theory
  • which gives
    CCJ PRML Study Note -  Chapter 1.6 : Information Theory

    i.e., CCJ PRML Study Note -  Chapter 1.6 : Information Theory

  • where we have used CCJ PRML Study Note -  Chapter 1.6 : Information Theory, and CCJ PRML Study Note -  Chapter 1.6 : Information Theory is the probability of an object being assigned to the CCJ PRML Study Note -  Chapter 1.6 : Information Theory bin.
  • microstate: In physics terminology, the specific arrangements of objects in the bins is called a microstate,
  • macrostate: the overall distribution of occupation numbers, expressed through the ratios CCJ PRML Study Note -  Chapter 1.6 : Information Theory , is called macrostate.
  • The multiplicity CCJ PRML Study Note -  Chapter 1.6 : Information Theory is also known as the weight of the macrostate.
  • We can interpret the bins as the states CCJ PRML Study Note -  Chapter 1.6 : Information Theory of a discrete random variable CCJ PRML Study Note -  Chapter 1.6 : Information Theory, where CCJ PRML Study Note -  Chapter 1.6 : Information Theory . The entropy of the random variable X is then CCJ PRML Study Note -  Chapter 1.6 : Information Theory

2.4 Comparison between discrete entropy and continuous entropy

H(x) Discrete Distribution X Continuous Distribution X
Maximum Uniform X Gaussian X
+/- CCJ PRML Study Note -  Chapter 1.6 : Information Theory could be negative
  • Maximum entropy H(x) :
    • In the case of discrete distributions, the maximum entropy configuration corresponded to an equal distribution of probabilities across the possible states of the variable.
    • For a continuous variable, the distribution that maximizes the differential entropy is the Gaussian [see Page 54 in PRML].
  • Is Negative or Positive?
    • The discrete entropy in (1.93) is always CCJ PRML Study Note -  Chapter 1.6 : Information Theory, because CCJ PRML Study Note -  Chapter 1.6 : Information Theory. It will equal its minimum value of CCJ PRML Study Note -  Chapter 1.6 : Information Theory when one of the CCJ PRML Study Note -  Chapter 1.6 : Information Theory and all other CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
    • The differential entropy can be negative, because CCJ PRML Study Note -  Chapter 1.6 : Information Theory in (1.110) for CCJ PRML Study Note -  Chapter 1.6 : Information Theory.

      If we evaluate the differential entropy of the Gaussian, we obtain CCJ PRML Study Note -  Chapter 1.6 : Information Theory This result also shows that the differential entropy, unlike the discrete entropy, can be negative, because CCJ PRML Study Note -  Chapter 1.6 : Information Theory in (1.110) for CCJ PRML Study Note -  Chapter 1.6 : Information Theory.

2.5 Conditional entropy H(y|x)

  • Conditional entropy:
    Suppose we have a joint distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory from which we draw pairs of values of CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory. If a value of CCJ PRML Study Note -  Chapter 1.6 : Information Theory is already known, then the additional information needed to specify the corresponding value of CCJ PRML Study Note -  Chapter 1.6 : Information Theory is given by CCJ PRML Study Note -  Chapter 1.6 : Information Theory. Thus the average additional information needed to specify y can be written as CCJ PRML Study Note -  Chapter 1.6 : Information Theory
    which is called the conditional entropy of y given x.
  • It is easily seen, using the product rule, that the conditional entropy satisfies the relation CCJ PRML Study Note -  Chapter 1.6 : Information Theory where CCJ PRML Study Note -  Chapter 1.6 : Information Theory is the differential entropy (i.e., continuous entropy) of CCJ PRML Study Note -  Chapter 1.6 : Information Theory, and CCJ PRML Study Note -  Chapter 1.6 : Information Theory is the differential entropy of the marginal distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
  • From (1.112) we get to know that

    the information needed to describe CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory is given by the sum of the information needed to describe CCJ PRML Study Note -  Chapter 1.6 : Information Theory alone plus the additional information required to specify CCJ PRML Study Note -  Chapter 1.6 : Information Theory given CCJ PRML Study Note -  Chapter 1.6 : Information Theory.

3. Relative entropy or KL divergence

3.1 Relative entropy or KL divergence

Problem: How to relate the notion of entropy to pattern recognition?
Description: Consider some unknown distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory, and suppose that we have modeled this using an approximating distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory.

  • Relative entropy or Kullback-Leibler divergence, or KL divergence between the distributions CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory: If we use CCJ PRML Study Note -  Chapter 1.6 : Information Theory to construct a coding scheme for the purpose of transmitting values of CCJ PRML Study Note -  Chapter 1.6 : Information Theory to a receiver, then the average additional amount of information (in nats) required to specify the value of CCJ PRML Study Note -  Chapter 1.6 : Information Theory (assuming we choose an efficient coding scheme) as a result of using CCJ PRML Study Note -  Chapter 1.6 : Information Theory instead of the true distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory is given by
    CCJ PRML Study Note -  Chapter 1.6 : Information Theory and

CCJ PRML Study Note -  Chapter 1.6 : Information Theory

  • It can be rewritten as [see Ref-1]CCJ PRML Study Note -  Chapter 1.6 : Information Theory

  • Cross Entropy: where CCJ PRML Study Note -  Chapter 1.6 : Information Theory is called the cross entropy, CCJ PRML Study Note -  Chapter 1.6 : Information Theory

    • Understanding of Cross Entropy: One can show that the cross entropy is the average number of bits (or nats) needed to encode data coming from a source with distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory when we use model CCJ PRML Study Note -  Chapter 1.6 : Information Theory to define our codebook.
    • Understanding of (“Regular”) Entropy: Hence the “regular” entropy CCJ PRML Study Note -  Chapter 1.6 : Information Theory, is the expected number of bits if we use the true model.
    • Understanding of Relative Entropy: So the KL divergence is the difference between these (shown in 2.111). In other words, the KL divergence is the average number of extra bits (or nats) needed to encode the data, due to the fact that we used approximation distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory to encode the data instead of the true distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
  • Asymmetric: Note that KL divergence is not a symmetrical quantity, that is to say CCJ PRML Study Note -  Chapter 1.6 : Information Theory.

  • KL divergence is a way to measure the dissimilarity of two probability distributions, CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory [see Ref-1].

3.2 Information inequality [see Ref-1]

The “extra number of bits” interpretation should make it clear that CCJ PRML Study Note -  Chapter 1.6 : Information Theory, and that the KL is only equal to zero i.f.f. CCJ PRML Study Note -  Chapter 1.6 : Information Theory. We now give a proof of this important result. CCJ PRML Study Note -  Chapter 1.6 : Information Theory

Proof:

  • 1) Convex functions: To do this we first introduce the concept of convex functions. A function CCJ PRML Study Note -  Chapter 1.6 : Information Theory is said to be convex if it has the property that every chord lies on or above the function, as shown in Figure 1.31. CCJ PRML Study Note -  Chapter 1.6 : Information Theory
    • Convexity then implies CCJ PRML Study Note -  Chapter 1.6 : Information Theory
  • 2) Jensen’s inequality:
    • Using the technique of proof by induction(数学归纳法), we can show from (1.114) that a convex function CCJ PRML Study Note -  Chapter 1.6 : Information Theory satisfies CCJ PRML Study Note -  Chapter 1.6 : Information Theory where CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory, for any set of points CCJ PRML Study Note -  Chapter 1.6 : Information Theory. The result (1.115) is known as Jensen’s inequality.
    • If we interpret the CCJ PRML Study Note -  Chapter 1.6 : Information Theory as the probability distribution over a discrete variable CCJ PRML Study Note -  Chapter 1.6 : Information Theory taking the values CCJ PRML Study Note -  Chapter 1.6 : Information Theory, then (1.115) can be written CCJ PRML Study Note -  Chapter 1.6 : Information Theory For continuous variables, Jensen’s inequality takes the form CCJ PRML Study Note -  Chapter 1.6 : Information Theory
  • 3) Apply Jensen’s inequality in the form (1.117) to the KL divergence (1.113) to give CCJ PRML Study Note -  Chapter 1.6 : Information Theory where we have used the fact that CCJ PRML Study Note -  Chapter 1.6 : Information Theory is a convex function (In fact, CCJ PRML Study Note -  Chapter 1.6 : Information Theory is a strictly convex function, so the equality will hold if, and only if, CCJ PRML Study Note -  Chapter 1.6 : Information Theory for all CCJ PRML Study Note -  Chapter 1.6 : Information Theory), together with the normalization condition CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
  • 4) Similarly, Let CCJ PRML Study Note -  Chapter 1.6 : Information Theory be the support of CCJ PRML Study Note -  Chapter 1.6 : Information Theory, and apply Jensen’s inequality in the form (1.115) to the discrete form KL divergence (2.110) to get [see Ref-1] CCJ PRML Study Note -  Chapter 1.6 : Information Theory where the first inequality follows from Jensen’s. Since CCJ PRML Study Note -  Chapter 1.6 : Information Theory is a strictly concave (i.e., the inverse of convex) function, we have equality in Equation (2.115) iff CCJ PRML Study Note -  Chapter 1.6 : Information Theory for some CCJ PRML Study Note -  Chapter 1.6 : Information Theory. We have equality in Equation (2.116) iff CCJ PRML Study Note -  Chapter 1.6 : Information Theory, which implies CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
  • 5) Hence CCJ PRML Study Note -  Chapter 1.6 : Information Theory iff CCJ PRML Study Note -  Chapter 1.6 : Information Theory for all CCJ PRML Study Note -  Chapter 1.6 : Information Theory.

3.3 How to use KL divergence

Note that:

  • we can interpret the KL divergence as a measure of the dissimilarity of the two distributions CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
  • If we use a distribution that is different from the true one, then we must necessarily have a less efficient coding, and on average the additional information that must be transmitted is (at least) equal to the Kullback-Leibler divergence between the two distributions.

Problem description:

  • Suppose that data is being generated from an unknown distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory that we wish to model.
  • We can try to approximate this distribution using some parametric distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory, governed by a set of adjustable parameters CCJ PRML Study Note -  Chapter 1.6 : Information Theory, for example a multivariate Gaussian.
  • One way to determine CCJ PRML Study Note -  Chapter 1.6 : Information Theory is to minimize the KL divergence between CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory with respect to CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
  • We cannot do this directly because we don’t know CCJ PRML Study Note -  Chapter 1.6 : Information Theory. Suppose, however, that we have observed a finite set of training points CCJ PRML Study Note -  Chapter 1.6 : Information Theory , for CCJ PRML Study Note -  Chapter 1.6 : Information Theory, drawn from CCJ PRML Study Note -  Chapter 1.6 : Information Theory. Then the expectation with respect to CCJ PRML Study Note -  Chapter 1.6 : Information Theory can be approximated by a finite sum over these points, using CCJ PRML Study Note -  Chapter 1.6 : Information Theory(1.35), so that (???don’t know how to derive it)CCJ PRML Study Note -  Chapter 1.6 : Information Theory
  • the first term is the negative log likelihood function for CCJ PRML Study Note -  Chapter 1.6 : Information Theory under the distribution CCJ PRML Study Note -  Chapter 1.6 : Information Theory evaluated using the training set.
  • Thus we see that minimizing this KL divergence is equivalent to maximizing the likelihood function.

3.4 Mutual information

Now consider the joint distribution between two sets of variables CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory given by CCJ PRML Study Note -  Chapter 1.6 : Information Theory.

Mutual information between the variables CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory:

  • If CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory are independent, p(x, y) = p(x)p(y).
  • If CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory are not independent, we can gain some idea of whether they are “close” to being independent by considering the KL divergence between the joint distribution and the product of the marginals, given by CCJ PRML Study Note -  Chapter 1.6 : Information Theory which is called the mutual information between the variables CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory.
  • Using the sum and product rules of probability, we see that the mutual information is related to the conditional entropy
    through CCJ PRML Study Note -  Chapter 1.6 : Information Theory

Understanding of Mutual information:

  • Thus we can view the mutual information as the reduction in the uncertainty about CCJ PRML Study Note -  Chapter 1.6 : Information Theory by virtue of being told the value of CCJ PRML Study Note -  Chapter 1.6 : Information Theory (or vice versa).
  • From a Bayesian perspective, we can view CCJ PRML Study Note -  Chapter 1.6 : Information Theory as the prior distribution for CCJ PRML Study Note -  Chapter 1.6 : Information Theory and CCJ PRML Study Note -  Chapter 1.6 : Information Theory as the posterior distribution after we have observed new data CCJ PRML Study Note -  Chapter 1.6 : Information Theory. The mutual information therefore represents the reduction in uncertainty about CCJ PRML Study Note -  Chapter 1.6 : Information Theory as a consequence of the new observation CCJ PRML Study Note -  Chapter 1.6 : Information Theory.

Reference

[1]: Section 2.8.2, Page 57, Kevin P. Murphy. 2012. Machine Learning: A Probabilistic Perspective. The MIT Press.

 

CCJ PRML Study Note - Chapter 1.6 : Information Theory的更多相关文章

  1. 信息熵 Information Theory

    信息论(Information Theory)是概率论与数理统计的一个分枝.用于信息处理.信息熵.通信系统.数据传输.率失真理论.密码学.信噪比.数据压缩和相关课题.本文主要罗列一些基于熵的概念及其意 ...

  2. Tree - Information Theory

    This will be a series of post about Tree model and relevant ensemble method, including but not limit ...

  3. information entropy as a measure of the uncertainty in a message while essentially inventing the field of information theory

    https://en.wikipedia.org/wiki/Claude_Shannon In 1948, the promised memorandum appeared as "A Ma ...

  4. Better intuition for information theory

    Better intuition for information theory 2019-12-01 21:21:33 Source: https://www.blackhc.net/blog/201 ...

  5. 信息论 | information theory | 信息度量 | information measures | R代码(一)

    这个时代已经是多学科相互渗透的时代,纯粹的传统学科在没落,新兴的交叉学科在不断兴起. life science neurosciences statistics computer science in ...

  6. Beginning Scala study note(5) Pattern Matching

    The basic functional cornerstones of Scala: immutable data types, passing of functions as parameters ...

  7. TIJ——Chapter Fourteen:Type Information

    Runtime type information(RTTI) allows you to discover and use type information while a program is ru ...

  8. Beginning Scala study note(9) Scala and Java Interoperability

    1. Translating Java Classes to Scala Classes Example 1: # a class declaration in Java public class B ...

  9. Beginning Scala study note(8) Scala Type System

    1. Unified Type System Scala has a unified type system, enclosed by the type Any at the top of the h ...

随机推荐

  1. APP性能测试

    方法一: 本地安装安卓模拟器,用LR选择模拟器录制方式录制 方法二: 手机真机需要root,可以在电脑上下载一键root工具(如卓大师),然后手机和电脑用数据线连接,然后root. 在手机上运行 Mo ...

  2. 2014 UESTC暑前集训搜索专题解题报告

    A.解救小Q BFS.每次到达一个状态时看是否是在传送阵的一点上,是则传送到另一点即可. 代码: #include <iostream> #include <cstdio> # ...

  3. AndroidStudio创建新项目报错

    创建新项目自动执行时报错: Failed to import new Gradle project: failed to find Build Tools revision 17.0.0 Consul ...

  4. dip的全称

    dip的全称是Density-independent pixel,密度无关像素.很多地方误认为是device independent pixel,即设备无关像素.这是错误的. 因为dip也就是dp只能 ...

  5. 18SpringMvc&lowbar;在业务控制方法中收集数组参数

    这篇文章我们要解决的问题的多选框选中,并批量删除. 比如:

  6. JS学习笔记(一) 概述

    参考资料: 1. http://www.w3school.com.cn/js/ 2. http://www.liaoxuefeng.com/wiki/001434446689867b27157e896 ...

  7. UVA 10896 Sending Email

    这个题目真是伤透脑筋了,一直RE,连着改了好几个版本,又是spfa,又是单调队列dijkstra+单调队列,总是不过,后来发现M开小了,双向边应该开m的两倍,悲剧啊!!!以后不管怎样,数组一定要尽量开 ...

  8. SQL点滴25—T-SQL面试语句,练练手

    原文:SQL点滴25-T-SQL面试语句,练练手 1. 用一条SQL语句查询出每门课都大于80分的学生姓名 name   kecheng    fenshu 张三     语文     81张三    ...

  9. C&plus;&plus;—动态内存管理之深入探究new和delete

    C++中程序存储空间除栈空间和静态区外,每个程序还拥有一个内存池,这部分内存被称为*空间(free store)或堆(heap).程序用堆来存储动态分配的对象,即,那些程序运行时分配的对象.动态对象 ...

  10. 配置rpm包安装的jdk环境变量

    最近在搭建james邮件服务的时候,由于这个服务是用Java开发的,之前这台服务器跑过tomcat服务,故有Java环境,就没在意有无配置环境变量,但在启动james的时候报没有配置环境变量: 那么问 ...