信息量和信息熵

1,信息量

https://en.wikipedia.org/wiki/Information_content

the information content(self-information) can express the length of a message needed to transmit the event given  the random variable

Claude Shannon's definition of self-information was chosen to meet several axioms:

  1. An event with probability 100% is perfectly unsurprising and yields no information.
  2. The less probable an event is, the more surprising it is and the more information it yields.
  3. If two independent events are measured separately, the total amount of information is the sum of the self-informations of the individual events.

The detailed derivation is below, but it can be shown that there is a unique function of probability that meets these three axioms, up to a multiplicative scaling factor. Broadly given an event { x} with probability { P},

the information content is defined as follows:

The base of the log is left unspecified, which corresponds to the scaling factor above. Different choices of base correspond to different units of information: if the logarithmic base is 2, the unit is named the "bit" or "shannon"; if the logarithm is the natural logarithm (corresponding to base Euler's number e ≈ 2.7182818284), the unit is called the "nat", short for "natural"; and if the base is 10, the units are called "hartleys"decimal "digits", or occasionally "dits".

 2,信息熵

https://en.wikipedia.org/wiki/Entropy_(information_theory)

 An equivalent definition of entropy is the expected value of the self-information of a variable.

Assume we have the binary sequence 001011010010010 :

our sequence consists of 15 symbols with 9 zeroes and 6 ones. we compute the Shannon entropy of this model to be 0.97 bits per symbol.
We then multiply our entropy by the number of symbols(15) in the input to realize a minimum compressed size of 15 bits(integer) for this sequence.

可做补充:

https://blog.csdn.net/king52113141314/article/details/108473360

https://blog.csdn.net/zhengudaoer/article/details/80240529

https://blog.csdn.net/hearthougan/article/details/76192381

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值