Definition (Fixed-Length Codes for Discrete Channels)
Given positive integers n and M, an (n,M) fixed-length code for a discrete channel (X,Y,{PYn∣Xn}n=1∞) with code length n and rate Rn:=n1log2M message bits/channel use consists of:
- a message set M={1,⋯,M} intended for transmission
- an encoding function f:M→Xnyielding codewords f(1),⋯,f(M)∈Xn of length n. The set of codewords is called the codebook, written as Cn={f(1),⋯,f(M)}
- a decoding function g:Yn→M
Definition (Average probability of error)
Given a (n,M) code Cn, its average probability of error is given by Pe(Cn):=P(W^=W)=w=1∑MP(W=w)P(g(yn=w∣W=w))=M1w=1∑Mλw(Cn)where λw(Cn):=P(g(yn)=w∣W=w))=P(g(yn)=w∣Xn=f(w))=yn∈Yn:g(yn=w)∑PYn∣Xn(yn∣xn)is the code’s conditional Probability of Decoding error given that the message w is sent over the channel.