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.