Docsity

Lecture Notes on Information Theory | ECE 599, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Information Theory
Lecture note1_taken by Ruiqing
1. Definition:
The Shannon Information Content (SIC) of an outcome with probability
p
is
p
2
log
.
Where
2
log
comes from the number of bits.
Ex1: Coin tossing
];[ TailsHeads
,
]
2
1
;
2
1
[
; because
1)
2
1
(log
2
, then
]1;1[SIC
bits.
Ex2: Is it my birthday?
,
]
365
1
;
365
364
[
,
]512.8;004.0[SIC
bits.
2. Entropy
X
T
Xx
XpEXH
22
log))]((log[)(
--
)(xH
: The average Shannon Information Content of
X
--
)(xH
: The average information gained by knowing its value
We use
)(log)log(
2
xx
and measure
)( XH
in bits.
-- If you use
e
log
it is measured in nats
-- 1 nat =
)(log
2
e
bits =
44.1
bits
)2ln(
)ln(
)(log
2
x
x
x
e
dx
xd
22
loglog
)( XH
depends only on the probability vector
X
not on the alphabet
, so
we can write
)(
X
H
.
3. Information theory answer two fundamental questions in
communication theory
1. What is the ultimate data compression
the entropy
H
2. What is the ultimate transmission rate
channel capacity
C
The entropy of a random variable
x
with a probability mass function
)(xp
is defined by
)(log)(
)]([log)(
2
2
xpxp
xpExH
The entropy of a random variable is a lower bound on the average number of bits required to
pf3

Partial preview of the text

Download Lecture Notes on Information Theory | ECE 599 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Information Theory

Lecture note1_taken by Ruiqing

1. Definition:

The Shannon Information Content (SIC) of an outcome with probability p^ is

 log 2 p.

Where log^2 comes from the number of bits.

Ex1: Coin tossing ^ [^ Heads ; Tails ],

]

;^1

 [^1

; because

log 2 ( 

, then

SIC [ 1 ; 1 ]bits.

Ex2: Is it my birthday?

 [ No ; Yes ],

]

;^1

 [^364

, SIC^ [^0.^004 ;^8.^512 ] bits.

2. Entropy

X T

H ( X ) E [log 2 ( px ( X ))] X log 2 

-- H^ ( x ): The average Shannon Information Content of X

-- H^ ( x ): The average information gained by knowing its value

We use

log( x ) log 2 ( x )

and measure

H ( X )

in bits.

-- If you use

log e

it is measured in nats

-- 1 nat =

log 2 ( e )

bits =

bits

ln( 2 )

ln( )

log 2 ( )

x

x 

x

e

dx

d log 2 x log 2

H ( X )

depends only on the probability vector

 X

not on the alphabet  , so

we can write

H (  X )

3. Information theory answer two fundamental questions in

communication theory

1. What is the ultimate data compression  the entropy H

2. What is the ultimate transmission rate  channel capacity C

The entropy of a random variable x with a probability mass function p ( x )is defined by

( )log ( )

( ) [log ( )]

2 2

px p x

H x E p x

The entropy of a random variable is a lower bound on the average number of bits required to

represent the random variable.

Information Theory

-- Lecture note

1. Joint and Conditional Entropy

--Joint Entropy: H (^ X , Y )

H ( X , Y ) E [ log ( X , Y )] p ( x , y )log p ( x , y )

x y

--conditional Entropy

H ( Y | X ) E [ log ( Y | X )] p ( x , y )log p ( y | x )

x y

Ex1.

p ( x , y ) y^ ^0 y ^1

x  0

x  10

p ( x  0 )^3 ,

p ( x  1 )^1

bits px y px y

H XY E X Y

x y

  1. 5

1 / 2 log( 1 / 2 ) 1 / 4 log( 1 / 4 ) 1 / 4 log( 1 / 4 ) 0 log( 0 ) ( , )log ( , ) ( , ) [ log ( , )] 

H ( Y | X )

p ( y | x ) y  0 y  1

x  0

x  1 0 1

Using

p x

p x y

p y x  to calculate. Eg.

p

p

p

bits px y py x

HY X E Y X

x y

  1. 689 1 / 2 log( 2 / 3 ) 1 / 4 log( 1 / 3 ) 1 / 4 log( 1 ) 0 log( 0 ) ( , )log ( | ) ( | ) [ log ( | )] 

2. Conditional Entropy – view 1