Even parity / A worked example

One extra bit.
One limited check.

Data: 1011 / three 1sAppend parity bit 1

The protected word has four 1s in five bits. Even parity means the total number of 1s is even.

Worked even-parity example · Static bits, not a production protocol1 / 4

Flip the third data bit: 1 becomes 0

One flipped bit
changes even to odd.

Sent1011 | 1

ReceivedAmber outlines the change

3 ones / Odd

The even-parity check flags a change.

The check does not locate or correct the changed bit.

Worked even-parity example · Static bits, not a production protocol2 / 4

From the original word / Flip first and third data bits

Two flips can
pass the check.

Sent1011 | 1

ReceivedBoth outlined bits changed

2 ones / Even

The check passes. The data changed.

A passing check alone is not proof that the data is unchanged.

Worked even-parity example · Static bits, not a production protocol3 / 4

The parity bit is included in every count

Count all protected bits.
Keep the limit in view.

Unchanged

4 onesEven / Pass

One flip

3 onesOdd / Flag

Two flips

2 onesEven / Pass

Odd numbers of bit flips are detected, including a flipped parity bit. Even numbers can pass. This check provides no error location, correction, authentication or encryption.