In information theory, the error exponent of a channel code or source code over the block length of the code is the logarithm of the error probability. For example, if the probability of error of a decoder drops as e−nα, where n is the block length, the error exponent is α. Many of the information-theoretic theorems are of asymptotic nature, for example, the channel coding theorem states that for any rate less than the channel capacity, the probability of the error of the channel code can be made to go to zero as the block length goes to infinity. In practical situations, there are limitations to the delay of the communication and the block length must be finite. Therefore, it is important to study how the probability of error drops as the block length go to infinity.
The channel coding theorem states that for any ε > 0 and for any rate less than the channel capacity, there is an encoding and decoding scheme that can be used to ensure that the probability of block error is less than ε > 0 for sufficiently long message block X. Also, for any rate greater than the channel capacity, the probability of block error at the receiver goes to one as the block length goes to infinity.
Assuming a channel coding setup as follows: the channel can transmit any of
M
=
2
n
R
messages, by transmitting the corresponding codeword (which is of length n). Each component in the codebook is drawn i.i.d. according to some probability distribution with probability mass function Q. At the decoding end, ML decoding is done.
Given that
y
1
n
is received, X(1) or first message is transmitted, the probability that X(1) is incorrectly detected as X(2) is:
P
e
r
r
o
r
1
→
2
=
∑
x
1
n
(
2
)
Q
(
x
1
n
(
2
)
)
1
(
p
(
y
1
n
|
x
1
n
(
2
)
)
>
p
(
y
1
n
|
x
1
n
(
1
)
)
)
The function
1
(
p
(
y
1
n
|
x
1
n
(
2
)
)
>
p
(
y
1
n
|
x
1
n
(
1
)
)
has upper bound
(
p
(
y
1
n
|
x
1
n
(
2
)
)
p
(
y
1
n
|
x
1
n
(
1
)
)
)
s
for
s
>
0
Thus,
P
e
r
r
o
r
1
→
2
≤
∑
x
1
n
(
2
)
Q
(
x
1
n
(
2
)
)
(
p
(
y
1
n
|
x
2
n
(
2
)
)
p
(
y
1
n
|
x
1
n
(
1
)
)
)
s
.
Since there are a total of M messages, the Probability that X(1) is confused with any other message is M times the above expression. Since each entry in the codebook is i.i.d., the notation of X(2) can be replaced simply by X. Using the Hokey union bound, the probability of confusing X(1) with any message is bounded by:
P
e
r
r
o
r
1
→
a
n
y
≤
M
ρ
∑
x
1
n
Q
(
x
1
n
)
(
p
(
y
1
n
|
x
2
n
)
p
(
y
1
n
|
x
1
n
(
1
)
)
)
s
ρ
.
Averaging over all combinations of
X
1
n
(
1
)
,
y
1
n
:
P
e
r
r
o
r
1
→
a
n
y
≤
M
ρ
∑
y
1
n
(
∑
x
1
n
(
1
)
Q
(
x
1
n
(
1
)
)
[
p
(
y
1
n
|
x
1
n
(
1
)
)
]
1
−
s
ρ
)
(
∑
x
1
n
Q
(
x
1
n
)
[
p
(
y
1
n
|
x
1
n
)
]
s
)
ρ
.
Choosing
s
=
1
−
s
ρ
and combining the two sums over
x
1
n
in the above formula:
P
e
r
r
o
r
1
→
a
n
y
≤
M
ρ
∑
y
1
n
(
∑
x
1
n
Q
(
x
1
n
)
[
p
(
y
1
n
|
x
1
n
)
]
1
1
+
ρ
)
1
+
ρ
.
Using the independence nature of the elements of the codeword, and the discrete memoryless nature of the channel:
P
e
r
r
o
r
1
→
a
n
y
≤
M
ρ
∏
i
=
1
n
∑
y
i
(
∑
x
i
Q
i
(
x
i
)
[
p
i
(
y
i
|
x
i
)
]
1
1
+
ρ
)
1
+
ρ
Using the fact that each element of codeword is identically distributed and thus stationary:
P
e
r
r
o
r
1
→
a
n
y
≤
M
ρ
(
∑
y
(
∑
x
Q
(
x
)
[
p
(
y
|
x
)
]
1
1
+
ρ
)
1
+
ρ
)
n
.
Replacing M by 2nR and defining
E
o
(
ρ
,
Q
)
=
−
ln
(
∑
y
(
∑
x
Q
(
x
)
[
p
(
y
|
x
)
]
1
1
+
ρ
)
1
+
ρ
)
,
probability of error becomes
P
e
r
r
o
r
≤
exp
(
−
n
(
E
o
(
ρ
,
Q
)
−
ρ
R
)
)
.
Q and
ρ
should be chosen so that the bound is tighest. Thus, the error exponent can be defined as
E
r
(
R
)
=
max
Q
max
ρ
ε
[
0
,
1
]
E
o
(
ρ
,
Q
)
−
ρ
R
.
The source coding theorem states that for any
ε
>
0
and any discrete-time i.i.d. source such as
X
and for any rate less than the entropy of the source, there is large enough
n
and an encoder that takes
n
i.i.d. repetition of the source,
X
1
:
n
, and maps it to
n
.
(
H
(
X
)
+
ε
)
binary bits such that the source symbols
X
1
:
n
are recoverable from the binary bits with probability at least
1
−
ε
.
Let
M
=
e
n
R
be the total number of possible messages. Next map each of the possible source output sequences to one of the messages randomly using a uniform distribution and independently from everything else. When a source is generated the corresponding message
M
=
m
is then transmitted to the destination. The message gets decoded to one of the possible source strings. In order to minimize the probability of error the decoder will decode to the source sequence
X
1
n
that maximizes
P
(
X
1
n
|
A
m
)
, where
A
m
denotes the event that message
m
was transmitted. This rule is equivalent to finding the source sequence
X
1
n
among the set of source sequences that map to message
m
that maximizes
P
(
X
1
n
)
. This reduction follows from the fact that the messages were assigned randomly and independently of everything else.
Thus, as an example of when an error occurs, supposed that the source sequence
X
1
n
(
1
)
was mapped to message
1
as was the source sequence
X
1
n
(
2
)
. If
X
1
n
(
1
)
was generated at the source, but
P
(
X
1
n
(
2
)
)
>
P
(
X
1
n
(
1
)
)
then an error occurs.
Let
S
i
denote the event that the source sequence
X
1
n
(
i
)
was generated at the source, so that
P
(
S
i
)
=
P
(
X
1
n
(
i
)
)
.
Then the probability of error can be broken down as
P
(
E
)
=
∑
i
P
(
E
|
S
i
)
P
(
S
i
)
.
Thus, attention can be focused on finding an upper bound to the
P
(
E
|
S
i
)
.
Let
A
i
′
denote the event that the source sequence
X
1
n
(
i
′
)
was mapped to the same message as the source sequence
X
1
n
(
i
)
and that
P
(
X
1
n
(
i
′
)
)
≥
P
(
X
1
n
(
i
)
)
. Thus, letting
X
i
,
i
′
denote the event that the two source sequences
i
and
i
′
map to the same message, we have that
P
(
A
i
′
)
=
P
(
X
i
,
i
′
⋂
P
(
X
1
n
(
i
′
)
)
≥
P
(
X
1
n
(
i
)
)
)
and using the fact that
P
(
X
i
,
i
′
)
=
1
M
and is independent of everything else have that
P
(
A
i
′
)
=
1
M
P
(
P
(
X
1
n
(
i
′
)
)
≥
P
(
X
1
n
(
i
)
)
)
.
A simple upper bound for the term on the left can be established as
[
P
(
P
(
X
1
n
(
i
′
)
)
≥
P
(
X
1
n
(
i
)
)
)
]
≤
(
P
(
X
1
n
(
i
′
)
)
P
(
X
1
n
(
i
)
)
)
s
for some arbitrary real number
s
>
0
.
This upper bound can be verified by noting that
P
(
P
(
X
1
n
(
i
′
)
)
>
P
(
X
1
n
(
i
)
)
)
either equals
1
or
0
because the probabilities of a given input sequence are completely deterministic. Thus, if
P
(
X
1
n
(
i
′
)
)
≥
P
(
X
1
n
(
i
)
)
,
then
P
(
X
1
n
(
i
′
)
)
P
(
X
1
n
(
i
)
)
≥
1
so that the inequality holds in that case. The inequality holds in the other case as well because
(
P
(
X
1
n
(
i
′
)
)
P
(
X
1
n
(
i
)
)
)
s
≥
0
for all possible source strings. Thus, combining everything and introducing some
ρ
∈
[
0
,
1
]
, have that
P
(
E
|
S
i
)
≤
P
(
⋃
i
≠
i
′
A
i
′
)
≤
(
∑
i
≠
i
′
P
(
A
i
′
)
)
ρ
≤
(
1
M
∑
i
≠
i
′
(
P
(
X
1
n
(
i
′
)
)
P
(
X
1
n
(
i
)
)
)
s
)
ρ
.
Where the inequalities follow from a variation on the Union Bound. Finally applying this upper bound to the summation for
P
(
E
)
have that:
P
(
E
)
=
∑
i
P
(
E
|
S
i
)
P
(
S
i
)
≤
∑
i
P
(
X
1
n
(
i
)
)
(
1
M
∑
i
′
(
P
(
X
1
n
(
i
′
)
)
P
(
X
1
n
(
i
)
)
)
s
)
ρ
.
Where the sum can now be taken over all
i
′
because that will only increase the bound. Ultimately yielding that
P
(
E
)
≤
1
M
ρ
∑
i
P
(
X
1
n
(
i
)
)
1
−
s
ρ
(
∑
i
′
P
(
X
1
n
(
i
′
)
)
s
)
ρ
.
Now for simplicity let
1
−
s
ρ
=
s
so that
s
=
1
1
+
ρ
.
Substituting this new value of
s
into the above bound on the probability of error and using the fact that
i
′
is just a dummy variable in the sum gives the following as an upper bound on the probability of error:
P
(
E
)
≤
1
M
ρ
(
∑
i
P
(
X
1
n
(
i
)
)
1
1
+
ρ
)
1
+
ρ
.
M
=
e
n
R
and each of the components of
X
1
n
(
i
)
are independent. Thus, simplifying the above equation yields
P
(
E
)
≤
exp
(
−
n
[
ρ
R
−
ln
(
∑
x
i
P
(
x
i
)
1
1
+
ρ
)
(
1
+
ρ
)
]
)
.
The term in the exponent should be maximized over
ρ
in order to achieve the tightest upper bound on the probability of error.
Letting
E
0
(
ρ
)
=
ln
(
∑
x
i
P
(
x
i
)
1
1
+
ρ
)
(
1
+
ρ
)
,
see that the error exponent for the source coding case is:
E
r
(
R
)
=
max
ρ
∈
[
0
,
1
]
[
ρ
R
−
E
0
(
ρ
)
]
.