Skip to content

Subject 05

The core ideas of signal processing: sampling and aliasing, filters and their trade-offs, the frequency domain, and estimation under noise.

Systems Science and Signal Processing

Layered waveform and spectrum traces rendered as an abstract technical illustration

Signal processing is the discipline of extracting meaning from measurements. A sensor produces a stream of numbers containing something you want and a great deal you do not — noise, interference, distortion, artefacts of the measurement process itself. Signal processing is the mathematics and engineering of separating the two, and it underlies nearly everything else on this site.

Sampling: The Foundational Result

A digital system cannot represent a continuous signal. It takes samples at discrete instants. The obvious question — how often is often enough? — has a precise and initially surprising answer.

If a signal contains no frequency component above some limit, then sampling at more than twice that limit captures it completely. Not approximately: the original continuous signal can be reconstructed exactly from those samples. This is the sampling theorem, and the threshold is the Nyquist rate.

The result is remarkable because intuition suggests that discarding everything between samples must lose information. It does not, provided the bandwidth condition holds — because a band-limited signal cannot wiggle arbitrarily between samples. Its own smoothness constrains it, and the samples pin it down uniquely.

Aliasing, and Why It Cannot Be Fixed Later

When the condition is violated, the failure mode is specific and unrecoverable. Frequency components above half the sampling rate do not vanish and do not simply degrade. They fold back, appearing as entirely false low-frequency components indistinguishable from genuine ones.

The visual equivalent is the wagon-wheel effect in film, where a wheel spinning faster than the frame rate appears to rotate slowly backwards. The camera is not blurring the motion; it is confidently reporting a rotation that never happened.

The critical practical consequence is that aliasing cannot be removed afterwards. Once folded, a false component sits at a legitimate frequency with no marker distinguishing it. No filter, no algorithm, no amount of post-processing can separate them, because the information that would distinguish them was destroyed at the moment of sampling.

This is why an anti-aliasing filter — an analogue filter placed before the converter, removing out-of-band content while it still exists as a separable signal — is not an optional refinement. It is the only place the problem can be solved. A surprising number of measurement systems produce quietly wrong data because this filter was omitted or set incorrectly.

The Frequency Domain

Most signal processing is easier in the frequency domain, and the Fourier transform is the bridge. Its content is that any signal can be expressed as a sum of sinusoids of different frequencies, amplitudes and phases — and that this alternative description contains exactly the same information, reorganised.

The reorganisation is what matters. Operations that are awkward in time become simple in frequency. Convolution — the operation describing what any linear system does to a signal — becomes ordinary multiplication. Periodicities invisible in a time plot appear as sharp peaks. The fast Fourier transform, an efficient algorithm for computing this on sampled data, is among the most consequential algorithms ever devised, and it made real-time spectral analysis practical on ordinary hardware.

Finite Records and Spectral Leakage

A Fourier transform of a finite record implicitly assumes that the observed block repeats forever. If its beginning and end do not join smoothly, the repeated signal contains an artificial discontinuity. Energy from a single frequency then spreads into neighbouring frequency bins, a result called spectral leakage. The extra structure belongs to the observation window, not to the source.

Window functions reduce that discontinuity by tapering the record near its ends, but they introduce another trade-off. Stronger tapering suppresses distant sidelobes while widening the main spectral lobe, so closely spaced components become harder to distinguish. No window is universally correct: the choice depends on whether amplitude accuracy, separation of nearby tones or detection of a weak component beside a strong one matters most. Zero-padding can make the plotted spectrum smoother, but it does not create finer physical resolution; only a longer observation record does that.

Filters and Their Unavoidable Trade-offs

A filter passes some frequencies and attenuates others. The design space is governed by trade-offs that cannot be escaped, only positioned.

A filter with a sharper transition between passband and stopband requires either more computation or more phase distortion, or both. A filter that preserves waveform shape faithfully — linear phase, meaning all frequencies are delayed equally — necessarily introduces more delay overall. In a control loop, where delay directly consumes stability margin, that trade is often decisive: engineers accept a gentler filter specifically to keep the delay low.

The broad division is between FIR filters, which compute each output from a finite window of inputs, are unconditionally stable and can be exactly linear-phase but need more computation; and IIR filters, which feed outputs back and achieve sharp responses very cheaply, at the cost of non-linear phase and the possibility of instability if implemented carelessly in finite precision.

Estimation: Combining Imperfect Information

Beyond filtering lies estimation — inferring a quantity you cannot measure directly from quantities you can, all of which are noisy.

The Kalman filter is the canonical tool. It maintains not only an estimate of the system state but also a measure of how uncertain that estimate is. At each step it predicts forward using a model of the system's dynamics, then corrects using a new measurement — weighting the two according to their relative uncertainties. If the measurement is noisy and the model is trustworthy, it leans on the model; if the model is poor and the sensor is precise, it leans on the measurement.

This weighting is not a heuristic. Under stated assumptions it is provably optimal, and the same structure appears wherever multiple imperfect information sources must be combined: navigation systems fusing inertial sensors with satellite positioning, power grid state estimation reconciling redundant meter readings, and robot localisation merging odometry with perception.

The Practical Warning

Signal processing is unusually good at producing plausible, precise, wrong answers. An improperly sampled measurement yields a clean spectrum containing peaks that do not exist. A filter with the wrong cutoff removes the phenomenon under study and leaves a tidy trace. An estimator given an incorrect noise model converges confidently to the wrong value.

The output always looks like data. The defence is not more sophisticated processing but a clear understanding of the acquisition chain — what the instrumentation actually measures, what it filters, and what it discards before the first line of code runs. Measurement fundamentals of this kind sit within the remit of the NIST Physical Measurement Laboratory, and IEEE Spectrum regularly covers where these techniques are being applied.