An Even Parity Bit by Example
An even parity bit is chosen so the total number of set bits in a codeword with its parity field is even.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a word
Data 1011 has three set bits. A parity bit of one makes the combined count four. See population count.
Understand the detection condition
Flipping one bit changes parity, including when the parity bit itself changes. Flipping two bits preserves it. Checking parity after noise explains the general pattern.[1][2]
Choose a bit that makes the total count even
Data bits 1011 contain three ones. Appending parity bit one makes the complete word 10111 with four ones. On reading, the receiver uses the agreed parity and bit layout to check the count. See population count.
Data 1011 → three ones
Append even-parity bit 1 → 10111
Total four ones → check passes
Data 1001 would take parity bit zero
Test parity placement separately from its value
The check may use the same parity result regardless of position, but the decoder needs to extract the data bits correctly. Test data with even and odd original counts.