Google

main
dspblog
cyclic_signals
FFT_interpolation
FFT_interpolation_how_does_it_work
FFT_smoothness_cyclic
discrete_time_reconstruction
discrete_time_reconstruction2
Nyquist_on_the_edge
FFT_delay_special_case
Fourier_reconstruction
pulse_and_Nyquist
FFT_complexError
matlabOctave
matlab_upsampling
matlab_downsampling
FFT_delay
FFT_filter_example
FFT_interpolation_example
FFT_bin_frequencies
fit_signal
FFT_peaksearch_audio_example
matlab_binary_readwrite
Octavesvg
C
FFTW_example
looprecord
SNR
SNR3
SNR_example_96kAudio
SNR_FFT_correlation_example
lua
luagpib
luasplit
luadump
mnoofltk
wxLuaDll
wxLua_loadAsDll
wxLua_HelloWorld
wxLua_simpleButton
wxLua_resourceManagement
wxLua_XMLparser
DSP
IQ_LO
IQ_LO_2
optimum_receiver
DSP_basics
sampleRateChange_terms
dirac_pulse
freqresp_s
zfilter_example
freqresp_z
freqresp_z_sign
misc
zero_forcing_equalizer_example
nonminphase_inverse
periodic_spectrum
lagrange_multipliers
Entropy
RC_chopper
TRex450_setup
EP100
EP100SE
EP100Gremlins
essential_spares
tail_rotor
motoradjustment
blade_balancing
blade_repair
GAUI_SAE12A
Walkera43


valid html (click to verify)



prevupnextdisable ads

Entropy

Summary

Entropy is the average uncertainty in the outcome of an experiment.
It sets the limit, how far data can be compressed.

Introduction

Consider the following game:
We place a bet on a sequence of ten coin throws. If the sequence was predicted correctly, the player wins.
Each throw - heads or tails - adds one bit of uncertainty.
The sequence of throws is described by a random variable X.

Entropy

X can take one out of 2^{10}=1024 different results that are equally probable, and the chance to guess the correct sequence is \frac{1}{1024}.
The entropy H(X) is 10 bits, as shown in figure 1, boxes representing bits:

Figure 1: Entropy of a sequence of coin throws

Conditional Entropy

The game has changed: Now, the player knows the outcome of the first three coin throws beforehand, denoted as random variable Y.
This is shown in figure 2.

Figure 2: Conditional Entropy: The first three coin throws are known

When Y is known, the remaining uncertainty - or Entropy - reduces from 10 bits to 7 bits.
This is called Conditional Entropy H(X|Y) (read “Entropy of X given Y”). Only 2^7=128 sequences remain.

Mutual information

A different game:
Two players know different parts of a sequence of coin throws.
Player A knows the first four coin throws, and player B the eight last ones. This is shown in figure 3.

Figure 3: Two players observe different parts of the sequence of coin throws

Player A has 4 bits worth of information by knowing X, and player B 8 bits by knowing Y.

Two bits are known by both, and that is the so-called mutual information I(X, Y) between X and Y (figure 4).

Figure 4: Mutual information: Overlapping knowledge by both players

The mutual information tells, how much information is known to both players.
In other words, it tells how much player A knows about player B and vice versa.

Mutual information is the loss of uncertainty in X, when Y becomes known:
I(X, Y)=H(X)-H(X|Y)
I(X, Y)=H(Y)-H(Y|X)
I(X, Y)=I(Y, X)

Joint Entropy

Assume we know nothing about X and Y. The uncertainty H(X) about player A's sequence is four bits, and H(Y) is 8 bits towards player B.
However, the total uncertainty regarding both is only 10 bits (not 12), because two coin throws are known to both.
The total uncertainty is called the Joint Entropy H(X, Y).
It can never exceed H(X)+H(Y) (figure 5).

Figure 5: Joint Entropy

Redundancy

Player A knows four bits through X, and player B 8 bits through Y. Their total knowledge is 12 bits. But it can be reduced to ten bits - two bits are redundant.
Redundancy is calculated as the “compressed amount of data” (10 bits) relative to the “uncompressed amount” (12 bits).
R(X, Y)=\frac{H(X, Y)}{H(X)+H(Y)}
Note, that in case of independent X and Y, the redundancy is 50 %. One of them could be thrown away, without losing information!


prevupnextdisable ads

© Markus Nentwig 2007-2008
The content of this page is provided without any warranty and may not be reproduced without permission.

Comments? Questions?

Please send me a mail! mnentwig@elisanet.fi