human
I have a question about error-correcting codes. Why do we need to add a parity bit to a message?
assistant
The parity bit is added to ensure that the number of 1 bits in the message is even. If the number of 1 bits is odd, then the message is corrupted.