After receiving a Binary Code through a Binary Symmetric Channel (BSC), we need to decode it.
There are 3 rules we consider when decoding.
Due to the lemma at the bottom, we shall use the Minimum distance decoding rule.
Ideal Observer
The ideal observer decoding rule decodes
This is actually the most reasonable decoding rule but it assumes that the observer has information about the probability of each message being sent.
Maximum likelihood
The maximum likelihood decoding rule decodes
Lemma
If all messages are equally likely then maximum likelihood agrees with the Ideal Observer.
Proof
By Baye’s rule trivial.
Minimum distance
The minimum distance decoding rule decodes
Some convention needed in the case of a tie, eg. choose at random or ask for message to be sent again.
Lemma
If the probability of a bit being mismatched is
Proof
Suppose
Since