Hamming (7,4) encodes 4 data bits into 7 bits by adding 3 parity bits. It can detect and correct single-bit errors.
Parity bits at positions 1, 2, 4 check specific bit patterns. The syndrome identifies error position.