Parity bits β the simplest error detection
Add one bit to make the total count of 1s even (or odd).
Parity bit is an extra bit appended to a byte to make the total number of 1s either EVEN (even parity) or ODD (odd parity).
How it's used:
- Sender counts 1s in the data, then adds a parity bit to enforce the chosen convention.
- Receiver counts 1s in the entire received byte (data + parity).
- If the count violates the convention, an error is detected.
Worked example. Data 1011010 with EVEN parity:
- Count 1s in data: 4 (already even).
- Parity bit: 0 (keep total at 4).
- Transmitted byte: 10110100 (or 01011010 if parity at start).
Worked example. Receiver gets 10101011, even parity expected:
- Count 1s: 5.
- 5 is odd β error detected.
Limitations.
- Parity detects an ODD number of bit flips (1, 3, 5...).
- It DOES NOT detect an EVEN number of bit flips (2, 4...) β they cancel out and leave parity intact.
- Cannot identify WHICH bit was flipped or correct the error. Just signals "something's wrong".
Cambridge tip. Mark schemes for parity questions ALWAYS expect (a) the convention (even/odd) stated, (b) the count, (c) the conclusion. Top-band candidates also note the multi-bit limitation.
- Even parity β total 1s must be even.
- Odd parity β total 1s must be odd.
- Detects any odd number of bit errors.
- Misses even number of bit errors.
See the full worked example for methods of error detection β