Parity checks
About this lesson: Parity checks
In short
Before sending, add one extra bit so that the total number of 1s is even (even parity) or odd (odd parity). Change the data and switch between even and odd.

What you'll explore
- The parity bit: Count the 1s
- Before sending, add one extra bit so that the total number of 1s is even (even parity) or odd (odd parity).
- Checking: Did a bit flip?
- Electrical noise can flip a bit on the way. The receiver counts the 1s again. With even parity, an odd count means something went wrong.
- Limits: What parity misses
- Parity is quick and simple, but it can't catch everything. Read what it can and can't do.
- Check yourself: Find the parity bit
- Data bits 1011001 are sent with even parity.
Also in this lesson
- Common mix-ups
- Step by step
- Card parity trick
Words to know
- parity bit
- An extra bit that makes the number of 1s even or odd.
- even parity
- The total number of 1s is even.
- odd parity
- The total number of 1s is odd.
- error detection
- Finding out that data has changed.
- interference
- Noise that can change data as it travels.
Sources
- BBC Bitesize KS3 Computer Science
- Raspberry Pi Foundation, Computing curriculum resources