---
title: Equalization
heading: Undoing intersymbol interference from a dispersive channel, the zero-forcing equalizer and its noise enhancement, MMSE equalization, decision feedback, and adaptive equalizers
eyebrow: S8 · Lesson 25 · Equalization
xp: 50
---

::: hook
Real channels don't deliver clean Nyquist pulses: a telephone line, a cable or a multipath radio channel smears each symbol into the next ones. The receiver can try to undo that with a filter that inverts the channel, but where the channel's response is weak, inverting it amplifies the noise along with the signal. The best linear equalizer balances the two, and a decision-feedback equalizer does better still by subtracting interference from symbols it has already decided. All of them are adapted on the fly by the LMS algorithm of S7, which is how every high-speed modem learns its line.
:::

::: play
- The output SNR of three equalizers for a two-tap channel $h = [1, a]$ at an input SNR of S dB, against the echo strength a.
- The zero-forcing linear equalizer inverts the channel exactly and loses $10\log\frac{1}{1 - a^2}$ to noise enhancement, 7.2 dB at a = 0.9.
- The MMSE linear equalizer tolerates a little ISI to enhance less noise; the decision-feedback equalizer, with correct past decisions, removes this channel's ISI with no noise enhancement at all.
:::
:::

```sim plot
view: graph
x: a = 0..0.99
y: S = 0..32 dB
slider: s = 10..30 = 20 dB
plot: s + 10*log(1 - a^2) | samples: 400 | label: zero-forcing linear
plot: 10*log(sqrt((1 + a^2 + 10^(-s/10))^2 - 4*a^2)/10^(-s/10) - 1) | samples: 400 | color: ch2 | label: MMSE linear
plot: s | dashed | color: ch3 | label: decision feedback (correct decisions)
```

::: predict
## A channel h = [1, 0.9] is equalized by a zero-forcing linear filter. At 20 dB input SNR, what's the SNR at the decision device?

- [ ] 20 dB
- [x] About 12.8 dB
- [ ] About 19 dB
- [ ] About 3 dB

::: reveal
The ZF equalizer is $1/(1 + 0.9z^{-1})$, with taps $(-0.9)^n$, and it multiplies the noise power by $\sum0.81^n = 1/0.19$ = 5.26, 7.2 dB: the output SNR is 12.8 dB. The channel's response near ω = π is only 0.1, and the equalizer boosts it tenfold, noise included.
:::
:::

::: nameit
## The channel model

Received samples $r_k = \sum_ih_ia_{k-i} + n_k$: each symbol $a_k$ smeared by the channel's sampled impulse response h, plus white noise of variance σ² (with unit symbol energy, input SNR = 1/σ²).

## Zero-forcing linear equalizer

$C(z) = 1/H(z)$, removing ISI completely. For $h = [1, a]$ with |a| < 1, its taps are $c_n = (-a)^n$ and it enhances the noise by

$$\sum_n|c_n|^2 = \frac{1}{1 - a^2}$$

A practical equalizer is truncated to N taps, leaving residual ISI of $|a|^N$. Channels with spectral nulls make ZF useless.

## MMSE linear equalizer

$C(e^{j\omega}) = \frac{H^*(e^{j\omega})}{|H(e^{j\omega})|^2 + \sigma^2}$ minimizes the total of residual ISI and noise. Its mean-square error is $J = \frac{1}{2\pi}\int\frac{\sigma^2}{|H|^2 + \sigma^2}d\omega$, and its (unbiased) output SNR is $1/J - 1$; for $h = [1, a]$, $J = \sigma^2/\sqrt{(1 + a^2 + \sigma^2)^2 - 4a^2}$.

## Decision-feedback equalizer

A feedforward filter handles the precursor ISI and a feedback filter subtracts the postcursor ISI computed from past decisions. For a minimum-phase channel like [1, a], a single feedback tap of a removes all the ISI with no noise enhancement, as long as decisions are correct; wrong decisions propagate errors for a few symbols.

## Adaptation

Equalizers are trained on a known sequence and then track in **decision-directed** mode, using the LMS update of S7 lesson 37: $\mathbf{c} \leftarrow \mathbf{c} + \mu e_k\mathbf{r}_k$, stable for $\mu < 2/(NP_r)$ with N taps and received power $P_r$.
:::

::: example
## For h = [1, 0.9] at 20 dB, compare the three equalizers.

::: solution
1. **ZF linear.**
   $$20 - 7.2 = 12.8\ \text{dB}$$
2. **MMSE linear.**
   $$\begin{aligned} J &= \frac{0.01}{\sqrt{(1.82)^2 - 3.24}} \\ &= 0.0372 \end{aligned}$$
   so
   $$\begin{aligned} \text{SNR} &= \frac{1}{0.0372} - 1 \\ &= 25.9 \\ &= 14.1\ \text{dB} \end{aligned}$$
3. **DFE.** With correct decisions it gets the full 20 dB.
4. **Why DFEs are standard.** The DFE's 7 dB advantage is why it's standard in high-speed modems and disk-drive read channels.

**Answer:** 12.8 dB for the ZF equalizer, 14.1 dB for MMSE and 20 dB for the DFE.
:::
:::

::: example
## A ZF equalizer for h = [1, 0.5] is truncated to 4 taps. What are the taps and the residual ISI?

::: solution
1. **Taps.**
   $$c = [1, -0.5, 0.25, -0.125]$$
2. **Overall response.** Convolving with [1, 0.5] gives
   $$[1, 0, 0, 0, -0.0625]$$
3. **Residual ISI.** The leftover tap is $0.5^4$ = 0.0625, 24 dB below the main tap:
   $$20\log_{10}0.0625 = -24\ \text{dB}$$
4. **Noise enhancement.**
   $$\begin{aligned} \sum c_n^2 &= 1 + 0.25 \\ &\quad + 0.0625 + 0.0156 \\ &= 1.328 \\ &= 1.23\ \text{dB} \end{aligned}$$

**Answer:** the taps are [1, −0.5, 0.25, −0.125], leaving residual ISI of 0.0625 (24 dB below the main tap) and 1.23 dB of noise enhancement.
:::
:::

::: example
## A channel has h = [1, −0.6]. Find its zero-forcing equalizer, the noise enhancement, and the residual ISI if it is truncated to 5 taps.

::: solution
1. **Equalizer taps.**
   $$c_n = (0.6)^n$$
   that is, 1, 0.6, 0.36, 0.216, 0.130.
2. **Noise enhancement.**
   $$\begin{aligned} \sum c_n^2 &= \frac{1}{1 - 0.36} \\ &= 1.56 \\ &= 1.9\ \text{dB} \end{aligned}$$
3. **Residual ISI at 5 taps.**
   $$0.6^5 = 0.078$$
   of the main tap, −22 dB.
4. **Stronger echoes.** A channel tap closer to 1 in magnitude would need far more taps and enhance the noise far more.

**Answer:** $c_n = 0.6^n$, with a noise enhancement of 1.56 (1.9 dB) and residual ISI of 0.078 (−22 dB) at 5 taps.
:::
:::

::: check
given: a = 0.3 | 0.6 | 0.8 | 0.95
answer: 10*log(1/(1 - a^2))
unit: dB
tolerance: 0.05

## A zero-forcing equalizer inverts the channel h = [1, {a}]. How much does it enhance the noise?

::: right
Right. $\sum a^{2n} = 1/(1 - a^2)$: {answer} dB.
:::

::: misses
- [20*log(1/(1 - a))] That's the equalizer's peak gain; noise power gain sums the squared taps.
- [any] Not yet. Noise enhancement = $\sum|c_n|^2$.
:::
:::

::: check
given: a = 0.4 | 0.7 | -0.6; n = 1 | 3 | 5
answer: (-a)^n
tolerance: 0.5%

## What's tap {n} of the zero-forcing equalizer for h = [1, {a}]?

::: right
Right. $c_n = (-a)^n$ = {answer}.
:::

::: misses
- [a^n] The inverse of $1 + az^{-1}$ alternates in sign: $(-a)^n$.
- [any] Not yet. Expand $1/(1 + az^{-1})$.
:::
:::

::: check
given: a = 0.8 | 0.9 | 0.95; s = 10 | 15 | 20
answer: 10*log(sqrt((1 + a^2 + 10^(-s/10))^2 - 4*a^2)/10^(-s/10) - 1)
unit: dB
tolerance: 0.05

## What output SNR does an MMSE linear equalizer give for h = [1, {a}] at {s} dB input SNR?

::: right
Right. $1/J - 1$ with $J = \sigma^2/\sqrt{(1 + a^2 + \sigma^2)^2 - 4a^2}$: {answer} dB.
:::

::: misses
- [s + 10*log(1 - a^2)] That's the zero-forcing equalizer; MMSE does a little better.
- [any] Not yet. Evaluate J, then $1/J - 1$.
:::
:::

::: check
given: a = 0.3 | 0.5 | 0.8; N = 3 | 5 | 8
answer: 20*log(abs(a)^N)
unit: dB
tolerance: 0.05

## A ZF equalizer for h = [1, {a}] is truncated to {N} taps. How far below the main tap is the residual ISI?

::: right
Right. $|a|^N$: {answer} dB.
:::

::: misses
- [20*log(abs(a)^(N - 1))] An N-tap truncation leaves a residual of $a^N$, one tap beyond the last.
- [any] Not yet. Convolve the truncated inverse with the channel.
:::
:::

::: check
given: N = 11 | 32 | 64; P = 0.1 | 1 | 4
answer: 2/(N*P)
tolerance: 0.5%

## An adaptive equalizer has {N} taps and received power {P}. What's the LMS step-size bound?

::: right
Right. $2/(NP_r)$ = {answer}.
:::

::: misses
- [2/P] The trace of R grows with the number of taps.
- [any] Not yet. $\mu < 2/\text{tr}(R)$.
:::
:::

::: check
given: s = 12 | 18 | 24; a = 0.5 | 0.9
answer: s
unit: dB
tolerance: 0.05

## A decision-feedback equalizer (correct decisions) handles h = [1, {a}] at {s} dB input SNR. What's its output SNR?

::: right
Right. One feedback tap of {a} cancels the echo with no noise enhancement: {answer} dB.
:::

::: misses
- [s + 10*log(1 - a^2)] That's the linear zero-forcing result; feedback cancels ISI without filtering the noise.
- [any] Not yet. The feedback path uses decisions, not noisy samples.
:::
:::

::: check
kind: parts
given: a = -0.8 | -0.5 | 0.3 | 0.7; N = 3 | 6

## A zero-forcing equalizer inverts h = [1, {a}] and is truncated to {N} taps.

::: part
answer: 10*log(1/(1 - a^2))
unit: dB
tolerance: 0.5%

### How much does it enhance the noise?

::: misses
- [any] $\sum c_n^2 = 1/(1 - a^2)$.
:::
:::

::: part
answer: 20*log(abs(a)^N)
unit: dB
tolerance: 0.5%

### How large is the residual ISI relative to the main tap?

::: misses
- [any] $|a|^N$, in dB.
:::
:::
:::

::: check
kind: derivation
vars: a = -0.95..0.95, N = 1..20, s = 1..10000

## A ZF equalizer handles h = [1, a] at input SNR s (linear).

::: step
answer: 1/(1 - a^2)

### What is the noise enhancement?
:::

::: step
answer: abs(a)^N

### What residual ISI remains after N taps?
:::

::: step
answer: s*(1 - a^2)

### What output SNR does the untruncated equalizer give?
:::

::: right
Right. As |a| → 1 the channel approaches a spectral null and ZF's output SNR collapses.
:::
:::

::: explain
## Why does a linear equalizer enhance noise, and how does decision feedback avoid it?

::: model
A linear equalizer must boost the frequencies the channel attenuated in order to restore a flat response, and it can't tell signal from noise: whatever gain it applies at a weak frequency applies to the noise there too. The weaker the channel's worst frequency, the larger the boost and the more noise reaches the decision device. A decision-feedback equalizer removes the trailing interference differently. Once a symbol has been decided, its exact contribution to later samples is known from the channel response, so it can be subtracted outright, using the clean decided value rather than the noisy received samples. Nothing is amplified, so no noise is added, as long as the decisions are right.
:::
:::

::: practice

::: check
given: a = 0.4 | 0.5 | 0.6 | 0.7 | 0.85 | 0.9
answer: 10*log(1/(1 - a^2))
unit: dB
tolerance: 0.05

## ZF noise enhancement for [1, {a}]?

::: misses
- [any] $1/(1 - a^2)$.
:::
:::

::: check
given: a = 0.6 | 0.95; s = 20 | 30
answer: 10*log(sqrt((1 + a^2 + 10^(-s/10))^2 - 4*a^2)/10^(-s/10) - 1)
unit: dB
tolerance: 0.05

## MMSE-LE SNR: [1, {a}], {s} dB?

::: misses
- [any] $1/J - 1$.
:::
:::

::: check
given: a = 0.4 | 0.7; N = 4 | 6
answer: 20*log(abs(a)^N)
unit: dB
tolerance: 0.05

## Residual ISI: [1, {a}], {N} taps?

::: misses
- [any] $20\log|a|^N$.
:::
:::
:::
