What is Parity bit?
A single bit added to a bit string of data to fix whether the number of 1s is even or odd. Making the number of 1s even is even parity, making it odd is odd parity, and the value is the exclusive OR of all the data bits. Checking the parity at the receiver detects an odd number of bit errors, but not an even number, and does not show which bit is wrong. It is used in UART communication and to protect memories and registers, and combining several parity bits with overlapping coverage gives error-correcting codes such as Hamming codes.
Japanese name: パリティビット
Parity bit appears in 15 practice questions across 9 topics, including System Architecture and Reliability, Information Theory and Coding Basics, Logic circuits.
Field: Information Theory and Coding Basics
FAQ
How often do errors slip past a parity check?
If bits fail independently, the errors that slip past are mainly 2-bit errors. When the bit error rate is small, two bits failing at once is much less likely still, so parity is useful in many cases. Burst errors, in which noise hits several bits in a row, are prone to produce an even number of errors, however, and a CRC is better suited to them.
How do you choose between even and odd parity?
Their detection ability is the same. With odd parity the parity bit is 1 even when the data are all 0s, so a fault such as a broken line that leaves every bit stuck at 0 is also detected as an error. Both sides of the link agree in advance on which one to use.