50
1896 1920 1987 2006 Computing and Communications 2. Information Theory -Entropy Ying Cui Department of Electronic Engineering Shanghai Jiao Tong University, China 2018, Autumn 1

Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

1896 1920 1987 2006

ComputingandCommunications2.InformationTheory

-EntropyYingCui

DepartmentofElectronicEngineeringShanghaiJiaoTongUniversity,China

2018,Autumn

1

Page 2: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Outline

• Entropy• Jointentropyandconditionalentropy• Relativeentropyandmutualinformation• Relationshipbetweenentropyandmutualinformation

• Chainrulesforentropy,relativeentropyandmutualinformation

• Jensen’sinequalityanditsconsequences

2

Page 3: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Reference

• Elementsofinformationtheory,T.M.CoverandJ.A.Thomas,Wiley

3

Page 4: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

OVERVIEW

4

Page 5: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

InformationTheory

• Informationtheoryanswerstwofundamentalquestionsincommunicationtheory– whatistheultimatedatacompression?-- entropyH

– whatistheultimatetransmissionrateofcommunication?-- channelcapacityC

• Informationtheoryisconsideredasasubsetofcommunicationtheory

5

Page 6: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

InformationTheory

• Informationtheoryhasfundamentalcontributionstootherfields

6

Page 7: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

AMathematicalTheoryofCommun.

• In1948,Shannonpublished“AMathematicalTheoryofCommunication”,foundingInformationTheory

• Shannonmadetwomajormodificationshavinghugeimpactoncommunicationdesign– thesourceandchannelaremodeledprobabilistically– bitsbecamethecommoncurrencyofcommunication

7

Page 8: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

AMathematicalTheoryofCommun.

• Shannonprovedthefollowingthreetheorems– Theorem1.Minimumcompressionrateofthesourceisitsentropy

rateH– Theorem2.Maximumreliablerateoverthechannelisitsmutual

informationI– Theorem3.End-to-endreliablecommunicationhappensifandonlyif

H<I,i.e.thereisnolossinperformancebyusingadigitalinterfacebetweensourceandchannelcoding

• ImpactsofShannon’sresults– afteralmost70years,allcommunicationsystemsaredesignedbased

ontheprinciplesofinformationtheory– thelimitsnotonlyserveasbenchmarksforevaluatingcommunication

schemes,butalsoprovideinsightsondesigninggoodones– basicinformationtheoreticlimitsinShannon’stheoremshavenow

beensuccessfullyachievedusingefficientalgorithmsandcodes8

Page 9: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

ENTROPY

9

Page 10: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Definition

• Entropyisameasureoftheuncertaintyofar.v.• Considerdiscrete r.v.Xwithalphabet andp.m.f.

– logistothebase2,andentropyisexpressedinbits• e.g.,theentropyofafaircointossis1bit

– define,since• addingtermsofzeroprobabilitydoesnotchangetheentropy

10

X( ) Pr[ ], p x X x x= = ÎX

log 0 as 0x x x® ®0log0 0=

Page 11: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Properties

– entropyisnonnegative

– baseoflogcanbechanged

11

Page 12: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Example

– H(X)=1bitwhenp=0.5• maximumuncertainty

– H(X)=0bitwhenp=0 or1• minimumuncertainty

– concavefunctionofp

12

Page 13: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Example

13

Page 14: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

JOINTENTROPYANDCONDITIONALENTROPY

14

Page 15: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

JointEntropy

• Jointentropyisameasureoftheuncertaintyofapairofr.v.s

• Considerapairofdiscreter.v.s (X,Y)withalphabetandp.m.f.s

15

,X Y( ) Pr[ ], ( ) Pr[ ], p x X x x p y Y y y= = Î = = Î,X Y

Page 16: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

ConditionalEntropy

• Conditionalentropyofar.v.(Y)givenanotherr.v.(X)– expectedvalueofentropiesofconditionaldistributions,averagedoverconditioningr.v.

16

Page 17: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

ChainRule

17

Page 18: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

ChainRule

18

Page 19: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Example

19

Page 20: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Example

20

Page 21: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

RELATIVEENTROPYANDMUTUALINFORMATION

21

Page 22: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

RelativeEntropy

• Relativeentropyisameasureofthe“distance”betweentwodistributions

– convention:– ifthereisany

22

0 00log 0, 0 log 0 and log0 0

ppq

= = = ¥

such that ( ) 0 and ( ) 0, then ( || ) .x p x q x D p qÎ > = = ¥X

Page 23: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Example

23

Page 24: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

MutualInformation

• Mutualinformationisameasureoftheamountofinformationthatoner.v.containsaboutanotherr.v.

24

Page 25: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

RELATIONSHIPBETWEENENTROPYANDMUTUALINFORMATION

25

Page 26: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Relation

26

Page 27: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Proof

27

chainruleforentropy

Page 28: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Illustration

28

Page 29: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

CHAINRULESFORENTROPY,RELATIVEENTROPY,ANDMUTUALINFORMATION

29

Page 30: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

ChainRuleforEntropy

30

Page 31: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Proof

31

Page 32: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

AlternativeProof

32

Page 33: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

ChainRuleforMutualInformation

33

Page 34: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Proof

34

chainruleforentropy chainruleforconditionalentropy

Page 35: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

ChainRuleforRelativeEntropy

35

relativeentropybetweenconditionalp.m.f.s

Page 36: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Proof

36

Page 37: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

JENSEN'SINEQUALITYANDITSCONSEQUENCES

37

Page 38: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Convex&ConcaveFunctions

• Examples:

38

2convex functions: , | |, , log (for 0)xx x e x x x ³

concave functions: log and (for 0)x x x ³

linear functions are both convex and concaveax b+

Page 39: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Convex&ConcaveFunctions

39

Page 40: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Jensen’sInequality

40

Page 41: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

InformationInequality

41

Page 42: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Proof

42

Page 43: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

NonnegativityofMutualInformation

43

Page 44: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Max.EntropyDist.– UniformDist.

44

Page 45: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

ConditioningReducesEntropy

45

Page 46: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

IndependenceBoundonEntropy

46

Page 47: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Summary

47

Page 48: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Summary

48

Page 49: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

Summary

49

Page 50: Computing and Communications 2. Information Theory -Entropyiwct.sjtu.edu.cn/personal/yingcui/Slides/CC/2018_comp... · 2019-08-15 · A Mathematical Theory of Commun. • Shannon

[email protected]/Personal/yingcui

50