electronics engineering
Course handbook · Third year
Signal Theory
Signal theory: continuous and discrete signals, Fourier series and transform, sampling, linear systems and an introduction to random processes.
- 10Topics
- 0Solved exercises
- 52Formula sheet
Free handbook generated from the lessons of the site and updated often, every time a lesson or an exercise changes: the latest version is always at www.electronics-engineering.com/handbook/signal-theory. Links work in the PDF too.
1Signals, LTI systems and convolution
A signal is a quantity that varies in time and carries information: the voltage from a microphone, the current in an antenna, the sequence of numbers read from a converter. A system is anything that turns one signal into another: a filter, an amplifier, a transmission channel, a program. Signal theory studies how to describe both and how to predict a system’s output. In this lesson we cover the basic definitions and the most important result: for linear time-invariant systems the output is a convolution.
Classifying signals
- Continuous-time
or discrete-time
, defined only at integer instants (for example the samples of a converter). - Deterministic, described by a formula, or random, of which only the statistical properties are known (noise, but also speech or transmitted data, which are not known in advance).
- Periodic, with
, or aperiodic.
Energy and power. The energy of a signal is
![]()
(the name comes from the case of a voltage across a 1 Ω resistor). A rectangular pulse of amplitude
and duration
has energy
. Signals that last forever, like a sinusoid, have infinite energy: for them the average power is used,
![Rendered by QuickLaTeX.com \[ P = \lim_{T\to\infty}\frac{1}{T}\int_{-T/2}^{T/2}|x(t)|^2\,dt \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-82b1596b1d38ebc9ca92ba482c5d4d98_l3.png)
For
,
. A signal is an “energy signal” if
is finite, a “power signal” if
is finite.
Elementary signals
- the step
, equal to 0 for
and 1 for
: a switch closing; - the rectangular pulse
, of duration
; - the exponential
, the response of first-order circuits; - the sinc,
, which appears in every band-limited problem; - the Dirac delta
, a pulse of zero duration and unit area, with the sifting property
(Mathematical Methods lesson on the delta).
System properties
A system turns an input
into an output
. The properties that matter:
- linearity: the response to
is
; - time invariance: if the input
gives
, the delayed input
gives
: the system does not change over time; - causality: the output at an instant depends only on the input up to that instant;
- stability (BIBO, bounded input bounded output): every bounded input gives a bounded output.
Linear time-invariant (LTI) systems are the most important case: circuits with resistors, capacitors, inductors and linear amplifiers, digital filters, many transmission channels.
Convolution
The impulse response
is the system’s output when the input is
.
Theorem. The output of an LTI system with impulse response
is the convolution of the input with
:
![]()
Proof. By the sifting property, the input can be written as a “sum” of shifted, weighted impulses:
![]()
By time invariance, the response to
is
. By linearity, the response to a combination (even a continuous one) of impulses is the same combination of the responses:
. ∎
The result is powerful: an LTI system is completely described by a single function, its impulse response.
Graphical computation. To find
at an instant
: flip
(
), shift it by
(
), multiply it by
and compute the area of the product. Sliding
gives the whole output.

Example. An RC circuit with the output across the capacitor has
. With a rectangular pulse of duration
at the input, the convolution gives an exponential charge for
and an exponential discharge afterwards: exactly the curve in the figure, and it matches what one gets by solving the differential equation (Electrical Engineering lesson on transients).
Properties of convolution
- commutative:
; - associative: two systems in cascade are equivalent to a single system with response
, and the order does not matter; - distributive: two systems in parallel are equivalent to
; - the identity element is the delta:
.
Causality and stability from the impulse response
Causality. An LTI system is causal if and only if
for
: in the convolution,
must vanish for
, that is it must not “look at” future input.
Theorem. An LTI system is BIBO stable if and only if its impulse response is absolutely integrable:
![]()
Proof. *Sufficiency:* if
for every
, then
![]()
which is finite. *Necessity:* if the integral diverges, choose the bounded input
; at
the output equals
. ∎
The RC circuit is stable (
); an ideal integrator, with
, is not: a step at the input produces a ramp that grows without bound.
2Spectrum and bandwidth
Convolution describes a system in time, but it is an awkward operation. Moving to frequency with the Fourier transform (Mathematical Methods lesson) it becomes a simple product, and many practical questions get an immediate answer: how much bandwidth a signal occupies, what a filter does, when a channel transmits a signal without deforming it. In this lesson we use the transform as a tool for signals.
The spectrum
The Fourier transform
![]()
tells how much of each frequency the signal contains:
is the amplitude spectrum,
the phase spectrum. For a real signal
: the magnitude is even, and it is enough to look at positive frequencies.
The convolution theorem. If
, then
. The transform of the impulse response,
, is the system’s frequency response, the same one Electrical Engineering obtains with phasors: each sinusoidal component of the input is multiplied by
and shifted by
.
Energy in frequency
Theorem (Parseval). For an energy signal
![]()
Proof. Write
and replace
with its expression as an inverse transform,
:
![]()
swapping the order of integration. ∎
The function
is the energy spectral density: it says how the energy is spread over frequencies. The energy in a band is obtained by integrating it over that band.
Bandwidth
A rectangular pulse of amplitude
and duration
has transform
![]()

The spectrum never vanishes completely: strictly speaking, no signal of finite duration has finite bandwidth. So practical definitions of bandwidth are used: the width of the main lobe (here
for positive frequencies), the −3 dB bandwidth, the band containing 99% of the energy.
Duration and bandwidth are inversely proportional. By the scaling property,
: compressing a signal in time spreads it in frequency. A pulse ten times shorter occupies a bandwidth ten times wider. This is a physical limit: sending more data per second, with shorter pulses, requires more bandwidth.
Example. A 1 Mbit/s transmission with 1 µs rectangular pulses has its main lobe up to 1 MHz. To fit in a narrower band, rounded pulses are used (the lesson on detection mentions Nyquist pulses).
Some orders of magnitude: telephone speech fits in 300 to 3400 Hz, high-fidelity music goes up to 20 kHz, a Wi-Fi channel occupies 20 to 160 MHz.
Distortionless transmission
When does a channel pass a signal “without deforming it”? The output may be larger or smaller and arrive late, but the shape must be the same:
![]()
Theorem. An LTI system transmits every signal without distortion if and only if
![]()
that is constant magnitude and linear phase in frequency.
Proof. Transforming
with the delay property gives
, and this holds for every
if and only if
has that form. ∎
In practice it is enough for the two conditions to hold within the signal’s band. If the magnitude is not constant there is amplitude distortion (some frequencies are attenuated more than others: telephone speech sounds “tinny”); if the phase is not linear, phase distortion: the components arrive with different delays and pulse edges get deformed. The delay of each component is the group delay
, constant only with linear phase.
The ideal filter does not exist
An ideal low-pass filter has
for
and 0 elsewhere. Its impulse response is the transform of a rectangle in frequency, that is a sinc in time:
. The sinc extends to
too: the ideal filter is not causal, it would respond before receiving the input. Real filters (Butterworth, Chebyshev, digital filters) are causal approximations, with a transition band and some phase distortion: designing a filter means choosing the right trade-off.
3Correlation
How similar are two signals? And how similar is a signal to itself shifted in time? Correlation answers these questions, and it is the tool with which a radar measures distance, a GPS receiver computes position, a modem synchronises and a system recognises a known signal buried in noise. In this lesson we cover autocorrelation, its properties, its link with the spectrum and cross-correlation.
Autocorrelation
For an energy signal (real, for simplicity) the autocorrelation is
![]()
Shift the signal by
, multiply it by the original and compute the area: if the two copies overlap well the product is mostly positive and the area is large, otherwise positive and negative contributions cancel.
Properties.
: at zero the autocorrelation is the energy;
: it is even;
: the maximum is at zero.
Proof of the last one. By the Cauchy-Schwarz inequality for integrals,
. With
and
, both integrals under the roots equal
, because shifting a signal does not change its energy:
. ∎
No shifted copy resembles the signal more than the signal itself. The width of the central peak says how quickly the signal “forgets” itself: narrow for signals that change quickly (wide bandwidth), wide for slow signals.
The link with the spectrum
Theorem (Wiener-Khinchin, for energy signals). The Fourier transform of the autocorrelation is the energy spectral density:
![]()
Proof. With the change of variable
one sees that
, that is the convolution of
with
. The transform of
is
for a real signal, and by the convolution theorem
. ∎
Autocorrelation loses phase information: different signals with the same amplitude spectrum have the same autocorrelation.
Power signals. For periodic and random signals the time average is used,
. Then
is the power and the transform is the power spectral density. The autocorrelation of a periodic signal is periodic with the same period: it is used to measure the pitch of a musical note (the first peak after zero) even when the signal is noisy.
Cross-correlation
Between two different signals:
![]()
If
contains a delayed copy of
,
, the cross-correlation peaks exactly at
: the first term gives
, largest where copy and original line up, while the noise, which does not resemble
, gives a small random contribution.

Radar. A pulse is transmitted and the received echo is correlated with the transmitted pulse: the peak gives the delay
, and the distance is
(there and back). The resolution depends on the width of the peak, that is on the bandwidth: a 1 µs pulse separates targets at least about 150 m apart.
Pulse compression. A short pulse gives good resolution but little energy, hence short range. So a long but “coded” signal is transmitted, for example the 13-element Barker code in the figure, whose autocorrelation has a peak of 13 and side lobes of magnitude at most 1: the energy of a long pulse with the resolution of a short one.
GPS. Each satellite transmits a different pseudo-random code, 1023 elements long. The receiver correlates the received signal with local copies of the codes: the peaks say which satellites are visible and with what delay their signals arrive, and the position is computed from the delays. The GPS signal reaches the ground below the noise level, and correlation brings it out.
Correlation and convolution
The two operations are similar: correlation is a convolution with one of the two signals flipped,
. So correlating with
is the same as passing the signal through a filter with impulse response
, or
to make it causal. This is the matched filter, which in the lesson on detection we will prove to be the best possible for recognising a known signal in white noise.
4Sampling
To process a signal with a computer it must be turned into a sequence of numbers, by taking its value at regular intervals: sampling. The natural question is whether something is lost this way. The sampling theorem gives a surprising answer: if the signal is band-limited and is sampled fast enough, nothing is lost, and the original signal can be reconstructed exactly. In this lesson we prove it and see what happens when the conditions are not met.
Ideal sampling
Sampling
with period
(sampling frequency
) gives the values
. To study them with the Fourier transform they are represented as a train of weighted impulses:
![Rendered by QuickLaTeX.com \[ x_s(t) = x(t)\sum_{n=-\infty}^{+\infty}\delta(t - nT_s) = \sum_n x(nT_s)\,\delta(t - nT_s) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-326a9db9abf525f6874ccc08c273104a_l3.png)
The sampling theorem
Theorem (Nyquist-Shannon). If
for
and
, the signal is determined by its samples and is reconstructed by
![Rendered by QuickLaTeX.com \[ x(t) = \sum_{n=-\infty}^{+\infty} x(nT_s)\,\mathrm{sinc}\!\left(\frac{t - nT_s}{T_s}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-df707dc95e1d4dfadd34befaed0ae011_l3.png)
Proof. The impulse train is periodic, with Fourier series
. Multiplying
by
shifts the spectrum by
, so
![Rendered by QuickLaTeX.com \[ X_s(f) = f_s\sum_{k=-\infty}^{+\infty} X(f - kf_s) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-76d9dcb68e367cffd40f4860a5821d2c_l3.png)
The spectrum of the sampled signal is the sum of replicas of the original spectrum, centred at all multiples of
. If
, the replicas, each
wide, do not overlap: an ideal low-pass filter with cut-off at
and gain
isolates the central replica, that is
. In time, filtering means convolving with the filter’s impulse response, which is
; convolving each impulse
with the sinc gives the formula. ∎

The frequency
is called the Nyquist rate. Each sample “carries” a sinc, and the sum of the sincs passes exactly through all the samples and interpolates between them.
Aliasing
If
, the replicas overlap and the components above
fold back into the low band, mixing with the real ones: this is aliasing, and after sampling there is no way to separate them. A component at frequency
appears at the nearest frequency
, for the appropriate integer
.
Example. Sampling a 30 kHz tone at 44.1 kHz gives the same samples as a tone at
kHz: an audible whistle that was not in the original.
It is the same phenomenon that makes carriage wheels in films seem to turn backwards: the camera samples at 24 frames per second and a rotation that is too fast is “seen” as a slow one.
Sampling in practice
- Anti-aliasing filter. Before the converter, an analogue low-pass filter removes everything above
, including unwanted noise: once sampled, it can no longer be removed. - Margin. A real filter has a transition band, so sampling is done somewhat above
. Audio CDs sample at 44.1 kHz for a signal up to 20 kHz: the filter has between 20 and 22.05 kHz to go from transparent to blocking. - Oversampling. Sampling much faster than necessary lets the analogue filter be simple, and the rest of the filtering is done digitally. Almost all modern audio converters work this way.
- Reconstruction. A digital-to-analogue converter holds each sample constant until the next (zero-order hold): the output is a staircase, which a final low-pass filter smooths.
Sampling narrowband signals
The theorem requires
where
is the highest frequency. For a bandpass signal, for example a radio channel between 100 and 101 MHz, a sampling rate tied to the width of the band (1 MHz) is actually enough, as long as the replicas fall in the right places: this is undersampling, used in software-defined radios. Alternatively the signal is first shifted around zero with a mixer and then sampled.
5Quantisation and A/D conversion
Sampling discretises time; to store a sample in a finite number of bits the amplitude must be discretised too. This is quantisation, and unlike sampling it always loses something: the rounding error. In this lesson we see how large this error is, why each extra bit gains 6 dB and how modern converters do better with processing tricks.
The uniform quantiser
An
-bit analogue-to-digital converter (ADC) divides the input range, of total width
(full scale), into
levels spaced
![]()
and assigns each sample the nearest level. The input-output characteristic is a staircase, and the quantisation error
is a sawtooth between
and
.

Example. A 12-bit ADC with a 3.3 V full scale has
mV: this is the resolution with which a microcontroller reads a sensor.
The error power
If the signal is complex enough and spans many levels, the error behaves like noise with a uniform distribution between
and
, independent of the signal.
Theorem. The quantisation noise power is
![]()
Proof. With uniform density
over the interval, the mean is zero and
![Rendered by QuickLaTeX.com \[ \sigma_e^2 = \int_{-\Delta/2}^{\Delta/2} e^2\,\frac{1}{\Delta}\,de = \frac{1}{\Delta}\left[\frac{e^3}{3}\right]_{-\Delta/2}^{\Delta/2} = \frac{1}{\Delta}\cdot\frac{2}{3}\cdot\frac{\Delta^3}{8} = \frac{\Delta^2}{12} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-1cb5bad06effb03b5c1074a6fe587b06_l3.png)
∎
Signal-to-noise ratio
Theorem. For a sinusoid spanning the whole full scale, the quantisation signal-to-noise ratio of an
-bit converter is
![]()
Proof. The sinusoid has amplitude
and power
. Dividing by
:
![]()
In decibels,
. ∎
Each extra bit is worth about 6 dB, that is it halves the error amplitude.
| Bits | Theoretical SNR | Typical use |
|---|---|---|
| 8 | 49.9 dB | video, simple sensors |
| 12 | 74.0 dB | microcontrollers, instruments |
| 16 | 98.1 dB | audio CD |
| 24 | 146.2 dB | professional recording |
Real converters do not reach these values, because the noise and nonlinearities of the analogue circuits add up. So the effective number of bits (ENOB) is defined from the measured SNR: a “24-bit” converter with 90 dB of measured SNR has about
effective bits.
The signal must also use the full scale: a sinusoid using only a tenth of the range loses 20 dB of SNR. Exceeding full scale, on the other hand, causes clipping, far more annoying than noise.
Non-uniform quantisation
Speech has a widely varying amplitude: soft syllables would fall into few levels and be very noisy. Digital telephony therefore uses logarithmic quantisation (μ-law in America and Japan, A-law in Europe): small steps for weak signals, large ones for strong signals, so that SNR stays roughly constant. With 8 bits at 8 kHz you get the classic 64 kbit/s telephone channel.
Dithering
With very weak signals, varying by less than one level, the error is no longer random but follows the signal: it shows up as harmonic distortion, very audible. Adding a small random noise before quantising (the dither, about one level in amplitude), the error becomes uniform, independent noise again. It seems paradoxical to add noise to improve the sound, but a steady hiss is much less annoying than distortion.
Oversampling and noise shaping
The quantisation noise power
is spread uniformly between 0 and
. Sampling at a rate
times higher than necessary and then digitally filtering only the useful band removes a fraction
of the noise: SNR improves by
dB. With
you gain 6 dB, one bit.
Sigma-delta converters take the idea to the extreme: they use a quantiser of a few bits (even just one) at a very high rate, inside a feedback loop that “pushes” quantisation noise towards high frequencies (noise shaping), where the digital filter removes it. This gives 20 bits and more with simple analogue circuits: it is the technique of almost all audio and precision measurement converters. For fast signals successive approximation (SAR) converters are used instead, up to a few tens of megasamples per second, and flash or pipeline converters for the highest frequencies.
How much data. A CD holds
samples per second, at 16 bits, for two channels:
Mbit/s. Compressed formats such as MP3 and AAC exist to reduce this stream, by removing what the ear does not perceive.
6Discrete-time systems and digital filters
Once sampled and quantised, a signal is a sequence of numbers
, and the systems that process it are programs: a microcontroller filtering a sensor reading, an audio processor equalising music, a modem demodulating. In this lesson we see how discrete-time systems are described, their frequency response and the two big families of digital filters, FIR and IIR.
Linear discrete-time systems
The definitions are those of continuous time with sums instead of integrals. The impulse is
, equal to 1 for
and 0 elsewhere; the impulse response
fully describes an LTI system, and the output is the convolution sum
![Rendered by QuickLaTeX.com \[ y[n] = \sum_{k=-\infty}^{+\infty} x[k]\,h[n - k] \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-9d044723fb3a5a967a477beaae3844c7_l3.png)
The proof is identical to the continuous-time one:
, then linearity and time invariance. The system is stable if and only if
.
Difference equations
In practice a digital filter is described by a difference equation: the current output is a combination of the current and past inputs and, possibly, past outputs:
![Rendered by QuickLaTeX.com \[ y[n] = \sum_{k=0}^{M} b_k\,x[n - k] - \sum_{k=1}^{N} a_k\,y[n - k] \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d6f7ff7b27fcba4b26061bf4e3d63425_l3.png)
It is literally the program: at each new sample a few multiplications and additions are done. With the Z transform (Mathematical Methods lesson), where a one-sample delay corresponds to multiplying by
, we get the transfer function
![]()
The roots of the numerator are the zeros, those of the denominator the poles.
Frequency response
A sampled sinusoid
, with
the normalised angular frequency, is an eigensignal: the output is
. The frequency response is therefore
evaluated on the unit circle,
. Two differences from continuous time:
- it is periodic with period
: angular frequencies differing by
give the same samples (aliasing seen from the other side); - it is enough to study it for
, that is from 0 to
.
Geometric reading.
is small when the point
is close to a zero, large when it is close to a pole. From the pole-zero plot one can “see” the filter’s behaviour.

FIR filters
A finite impulse response (FIR) filter uses only the inputs:
, and the impulse response is the sequence of coefficients.
Example: the moving average.
. Summing the geometric series,
![Rendered by QuickLaTeX.com \[ H(z) = \frac15\sum_{k=0}^{4} z^{-k} = \frac15\cdot\frac{1 - z^{-5}}{1 - z^{-1}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7b067b7e9e71422420724f9fb129e9c8_l3.png)
The zeros are the fifth roots of unity except
:
,
. The response vanishes at
, that is at
, and at its multiples: it is a simple low-pass that completely removes a disturbance of known frequency. With
Hz, five samples cover one period of the 50 Hz mains, which disappears from the measurement.
Advantages: they are always stable (they have no poles away from the origin) and, with symmetric coefficients, they have exactly linear phase, that is no phase distortion. Drawback: a steep transition needs many coefficients, even hundreds.
IIR filters
An infinite impulse response (IIR) filter also uses past outputs (it is recursive).
Example: the first-order filter.
, with
:
![]()
One pole at
, unity gain at DC. It is the “exponential moving average” used everywhere to smooth noisy readings, with a single multiplication per sample; with
the memory is about
samples. It is the digital equivalent of the RC circuit.
Theorem. A causal LTI system with a rational transfer function is stable if and only if all its poles lie inside the unit circle.
Proof (simple poles). Expanding
in partial fractions, the impulse response is a combination of terms
(plus possibly a finite number of impulses). The series
converges if and only if
, so
is finite if and only if all poles have magnitude less than 1. ∎
Advantages: steep transitions with few coefficients; they are designed starting from the classic analogue filters (Butterworth, Chebyshev) with the bilinear transform. Drawbacks: nonlinear phase, and the risk of instability if the coefficients, rounded in finite-precision arithmetic, move a pole outside the circle.
In practice
A digital filter is a loop of a few lines of code:
/* first-order filter with a = 0.8 */
float y = 0.0f;
float filter(float x) {
y = 0.8f * y + 0.2f * x;
return y;
}Digital signal processors (DSPs) have dedicated instructions that perform a multiply and an add in a single cycle, and modern microcontrollers have simplified versions of them. The big advantage over analogue filters is repeatability: no component tolerances, no drift with temperature, and the filter is changed by updating the program.
7Probability and random variables
The noise of an amplifier, the bits sent over a channel, the arrival times of packets in a network cannot be predicted individually, but they have precise statistical regularities. Describing them requires probability theory. In this lesson we review the essential tools for signals: conditional probability and Bayes’ theorem, random variables, mean and variance, the Gaussian distribution and the central limit theorem.
Probability and conditional probability
A probability assigns each event a number between 0 and 1, with
and
for mutually exclusive events. The conditional probability of
given that
has occurred is
![]()
Two events are independent if
, that is if knowing that one has occurred does not change the probability of the other.
Bayes’ theorem
Theorem. If
are mutually exclusive events covering all possible cases,
![]()
Proof. From the definition,
, so
. Since the
cover all cases without overlapping,
(total probability). ∎
Bayes “reverses” the conditioning: from the observed effect it goes back to the most probable cause. It is the logic of every receiver: having observed a signal, which symbol was sent?
Example. A diagnostic test detects a disease in 99% of sick people and gives a false positive in 5% of healthy people; the disease affects 1% of the population. With a positive test, the probability of being sick is
![]()
only 17%: the healthy are so numerous that their false positives outnumber the true positives. The same trap appears with an alarm triggered by rare events.
Random variables
A random variable
assigns a number to each outcome of an experiment. It is described by the probability density
, such that
![Rendered by QuickLaTeX.com \[ P(a \lt X \le b) = \int_a^b f_X(x)\,dx,\qquad \int_{-\infty}^{+\infty} f_X(x)\,dx = 1 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-04cf64e509eda5b04aa3634b51a3c203_l3.png)
The most used quantities are the expected value (mean) and the variance:
![]()
For signals they have a direct physical meaning: for a noise voltage,
is the DC component,
the power (into 1 Ω),
the power of the varying part alone and
the RMS value of the noise.
Example. Quantisation error is uniform between
and
:
,
(lesson on quantisation).
The Gaussian distribution
![]()

It is determined by mean and variance. Within
of the mean fall 68.3% of the values, within
95.4%, within
99.7%. Tails are computed with the function
![]()
the probability that a standard Gaussian exceeds
: it will be needed for the error probability of transmission systems.
Several variables together
For two variables the joint density
is used. They are independent if
. The covariance
measures how much they vary together, and the correlation coefficient
, between −1 and 1, is its normalised version. Independent implies uncorrelated (
); the converse does not hold in general, but it does for jointly Gaussian variables.
Sum of independent variables. If
with
and
independent:
- the means add, always;
- the variances add:
, because the cross term
is zero; - the density of
is the convolution of the two densities.
The second property is why the powers of independent noises add, while RMS values combine “in quadrature”: two noises of 3 µV and 4 µV give 5 µV.
The central limit theorem
Theorem (statement). The sum of many independent random variables, with finite variances and none dominating the others, has a distribution that tends to the Gaussian, whatever the distribution of the individual variables.
You can see it already by adding a few uniform variables: the convolution of two rectangles is a triangle, of three a bell curve made of parabolas, and after about ten the difference from the Gaussian is tiny. This is why the Gaussian is everywhere in engineering: thermal noise is the sum of the contributions of billions of electrons, measurement errors are the sum of many small causes. So the standard model of noise in communication systems is Gaussian noise, which we study in the next lesson as a random process.
8Random processes and noise
A random variable describes an uncertain number; a random process describes an entire uncertain signal, a random value at every instant. The noise of a circuit, speech, transmitted data are random processes. Their waveform cannot be predicted, but one can compute their power, how it is spread over frequency and how a filter changes it. In this lesson we cover these tools and apply them to thermal noise.
Random processes
A process
can be thought of as the set of all the waveforms an experiment could produce (the realisations). At a fixed instant,
is a random variable. The main quantities are
![]()
the mean and the autocorrelation, which says how closely the values at two different instants are related.
Stationarity. A process is wide-sense stationary if its mean is constant and its autocorrelation depends only on the distance between the instants:
. Its statistical properties do not change over time.
is the average power.
Ergodicity. A process is ergodic if time averages over a single long realisation coincide with ensemble averages. This is the assumption always made in practice: you measure the noise of one amplifier for a long time, not of a thousand amplifiers at the same instant.
Power spectral density
Definition (Wiener-Khinchin). For a stationary process, the power spectral density is the Fourier transform of the autocorrelation:
![]()
Inverting at
:
. The total power is the area under
, and the power in a band is the area over that band:
is measured in W/Hz (or V²/Hz).
Passing through a filter
Theorem. If a stationary process
passes through a stable LTI system with frequency response
, the output
is stationary and
![]()
Proof. The output is
. Then
![]()
which depends only on
. The expression is the convolution of
with
and with
. Transforming, convolution becomes a product and the transform of
is
(real response):
. ∎
The filter’s phase does not matter: for power only the magnitude counts.
White noise
A process with constant spectral density,
![]()
is called white noise, by analogy with white light, which contains all colours. Its autocorrelation is
: two values at different instants, however close, are uncorrelated. It is an idealisation (it would have infinite power), but an excellent model as long as the noise bandwidth is much wider than that of the system receiving it. If it is also Gaussian it is called additive white Gaussian noise (AWGN), the standard model of communication channels.

At the output of a filter the noise power is
. The noise equivalent bandwidth
is defined as the bandwidth of the ideal filter with the same peak gain that passes the same power: for an RC low-pass,
.
Thermal noise
The electrons of a resistor jiggle because of temperature, and a noise voltage appears across it. Johnson and Nyquist’s result (1928) is that, up to very high frequencies, it is white Gaussian noise with
![]()
in a bandwidth
, where
J/K is Boltzmann’s constant and
the absolute temperature.
Example. A 1 kΩ resistor at 300 K, over the 20 kHz audio band:
µV. It seems small, but it is the floor below which no microphone or sensor connected to that resistance can be amplified without noise.
Theorem (kT/C noise). The noise voltage across the capacitor of an RC circuit has power
![]()
independent of R.
Proof. The resistor noise, with density
over positive frequencies only, passes through the RC divider:
. Integrating:
![]()
using
. ∎
A larger resistance makes more noise, but it also narrows the bandwidth in the same proportion. With
pF,
µV: it is the fundamental noise of switched-capacitor circuits and of image sensor pixels, and the reason the sampling capacitors of precision converters cannot be too small.
Other noises
- Shot noise: the current in a junction is made of discrete charges crossing it at random; it is white with
. - 1/f noise (flicker): a spectral density that grows at low frequencies, due to defects in materials; it dominates in MOSFETs below a few kilohertz.
- Markov processes: in many systems (packet queues, channels with burst errors) the future depends only on the present state; Markov chains are the basic model to describe them.
9Detection and the matched filter
A digital receiver must make a decision: having observed a signal disturbed by noise, which symbol was sent? It will be wrong now and then, and the design consists of making errors as rare as possible. In this lesson we see how the decision is made, which filter maximises the signal-to-noise ratio and how to compute the error probability of a binary transmission.
Signal-to-noise ratio
The quality of a received signal is measured by the signal-to-noise ratio, the ratio of signal power to noise power:
![]()
What matters is not how strong the signal is in absolute terms, but how strong it is compared with the noise. Amplifying does not help: it amplifies both, and adds the amplifier’s own noise.
Deciding between two symbols
In an antipodal binary transmission
is sent for bit 1 and
for bit 0. The receiver observes
, with
Gaussian with zero mean and standard deviation
.

If the two bits are equally likely, the best rule (the maximum likelihood decision, which follows from Bayes’ theorem) is to choose the symbol whose density is higher at the observed value: for two equal, symmetric Gaussians, the threshold is halfway, at zero. Decide 1 if
, 0 otherwise.
Error probability. An error occurs when noise pushes the sample beyond the threshold: with
sent, when
. By the symmetry of the Gaussian,
![]()
with the
function from the probability lesson. It depends only on the ratio of signal amplitude to noise amplitude.
The matched filter
The real signal is not a single number but a pulse
of duration
, buried in white noise. Before sampling and deciding, the receiver passes it through a filter
. Which filter maximises the SNR at the sampling instant
?
Theorem (matched filter). With white noise of density
, the SNR at instant
is maximised by
![]()
and the maximum value is
, where
is the pulse energy.
Proof. At instant
the useful output signal is
, the noise power is
(lesson on random processes). So
![Rendered by QuickLaTeX.com \[ \mathrm{SNR} = \frac{\left(\int h(\tau)\,s(T - \tau)\,d\tau\right)^2}{\frac{N_0}{2}\int h^2(\tau)\,d\tau} \le \frac{\int h^2\,d\tau\int s^2(T - \tau)\,d\tau}{\frac{N_0}{2}\int h^2\,d\tau} = \frac{2E}{N_0} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f98f57e2d9a421d4e34ac2bf8d1c5e12_l3.png)
by the Cauchy-Schwarz inequality. Equality holds when
is proportional to
. ∎
The matched filter is correlation with the expected pulse (lesson on correlation): it measures how much the received signal resembles what it expects. The surprising result is that the maximum SNR depends only on the pulse energy, not on its shape: for detection, different pulses with the same energy are equivalent.
Bit error probability
Combining the two results for antipodal transmission (BPSK) with energy per bit
:
![Rendered by QuickLaTeX.com \[ P_e = Q\!\left(\sqrt{\frac{2E_b}{N_0}}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-4f248beee7c47a30ba885d7f57a5d008_l3.png)
| 4 dB | |
| 7 dB | |
| 9.6 dB |
The probability falls exponentially: a few more decibels take you from one error every hundred bits to one every hundred thousand. The ratio
, energy per bit divided by the noise density, is the right way to compare systems running at different speeds.
Errors in practice
- Error-correcting codes. By adding suitably computed redundancy bits, the receiver corrects errors. Modern codes (LDPC, polar, turbo) achieve the same error probability with several decibels less, and make it possible to approach Shannon’s theoretical limit.
- Intersymbol interference. If the channel spreads the pulses, each symbol “smears” its neighbours. Nyquist pulses (such as the raised cosine) are designed to be zero at the sampling instants of the other symbols, and allow
symbols per second in a bandwidth
. On an oscilloscope, overlaying segments of the received signal gives the eye diagram: the wider the eye is open, the easier the decision. - Synchronisation. All of this assumes knowing when to sample: the receiver must recover the symbol timing from the signal itself, one of the most delicate tasks in a modem.
10Modulation and channel capacity
An audio signal cannot be sent directly by radio: it would need antennas kilometres long, and every station would use the same frequencies. Modulation moves the signal around a chosen carrier frequency, where the antenna is small and there is room for many channels side by side. In this lesson we cover the analogue modulations AM and FM, digital modulations and the theoretical limit on the speed of any transmission: Shannon capacity.
Amplitude modulation
A message
, with bandwidth
and
, modulates the amplitude of a carrier at frequency
:
![]()
The spectrum. By the modulation property, multiplying by
shifts the spectrum by
and halves it:
. So the AM spectrum contains the carrier (a line at
) and two sidebands, copies of the message spectrum above and below the carrier. The occupied bandwidth is
![]()

AM’s strength is the receiver: with
the signal’s envelope is exactly
, and it can be recovered with a diode, a capacitor and a resistor (the envelope detector, the same circuit as the rectifier with filter). Its weakness is efficiency: with a sinusoidal message and
two thirds of the power goes into the carrier, which carries no information, and with real signals the share is even higher. More efficient variants remove the carrier (DSB) or also one of the two sidebands, which are redundant (SSB, used by radio amateurs), at the cost of a more complex receiver.
Frequency modulation
In FM the amplitude is constant and the message changes the instantaneous frequency:
, where
is the peak deviation. The occupied bandwidth is well approximated by Carson’s rule:
![]()
Example. FM broadcast radio uses
kHz for 15 kHz audio:
kHz, and indeed stations are spaced 200 kHz apart.
FM occupies much more bandwidth than AM, but in return it is much more robust to noise: disturbances mostly alter the amplitude, which the receiver ignores. It is the trade-off between bandwidth and quality that we will meet again in Shannon’s formula.
Digital modulations
To send bits, the carrier is modulated with a finite set of waveforms, the symbols. Each symbol is represented as a point in the plane of the two components
(in phase,
) and
(quadrature,
):
. The set of points is the constellation.
- ASK (on-off): carrier on or off; very simple, used in remote controls.
- FSK: two different frequencies for 0 and 1; robust, used in Bluetooth Low Energy.
- PSK: the carrier phase; BPSK carries 1 bit per symbol, QPSK 2 bits with four phases.
- QAM: amplitude and phase together; 16-QAM carries 4 bits per symbol, 256-QAM 8, 4096-QAM (Wi-Fi 7) 12.

More points mean more bits per symbol, but points closer together for the same power: a higher SNR is needed so that noise does not move the received point into a neighbour’s region. That is why Wi-Fi and 5G keep switching constellation: 256-QAM close to the router, QPSK far away.
OFDM. Modern systems (Wi-Fi, 4G, 5G, DVB-T) split the band into hundreds or thousands of narrow subcarriers, each QAM-modulated, generated and separated with the FFT (Numerical Analysis lesson). Each subcarrier is so narrow that, for it, the channel is almost flat: echoes and intersymbol interference are avoided.
Shannon capacity
What is the maximum number of bits per second that can be sent, error-free, over a channel of bandwidth
with white Gaussian noise?
Theorem (Shannon, 1948). The channel capacity is
![]()
Below this rate there exist codes that make the error probability as small as desired; above it, it is impossible. The theorem does not say how to build those codes: it took fifty years to get, with turbo codes and LDPC, within a few tenths of a decibel of the limit.
Examples.
- An analogue telephone line, 3 kHz bandwidth and 30 dB SNR:
kbit/s. The modems of the 1990s reached 33.6 kbit/s, practically at the limit. - A 20 MHz channel with 30 dB SNR:
Mbit/s.
Bandwidth and power. Capacity grows in proportion to bandwidth, but only logarithmically with SNR: at high SNR, doubling the power adds just
bit/s. With limited power and plenty of bandwidth there is an absolute limit: no system can work with
below
, that is −1.6 dB. Space probes, with very little received power, work close to this limit; cellular systems, with little bandwidth and many users, rely instead on dense constellations and on multiple antennas (MIMO), which multiply capacity by creating several parallel channels in the same space.
∑Formula sheet
Signals, LTI systems and convolution
Classifying signals
![]()
![Rendered by QuickLaTeX.com \[ P = \lim_{T\to\infty}\frac{1}{T}\int_{-T/2}^{T/2}|x(t)|^2\,dt \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-82b1596b1d38ebc9ca92ba482c5d4d98_l3.png)
Convolution
![]()
![]()
Causality and stability from the impulse response
![]()
![]()
Spectrum and bandwidth
The spectrum
![]()
Energy in frequency
![]()
![]()
Bandwidth
![]()
Distortionless transmission
![]()
![]()
Correlation
Autocorrelation
![]()
The link with the spectrum
![]()
Cross-correlation
![]()
Sampling
Ideal sampling
![Rendered by QuickLaTeX.com \[ x_s(t) = x(t)\sum_{n=-\infty}^{+\infty}\delta(t - nT_s) = \sum_n x(nT_s)\,\delta(t - nT_s) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-326a9db9abf525f6874ccc08c273104a_l3.png)
The sampling theorem
![Rendered by QuickLaTeX.com \[ x(t) = \sum_{n=-\infty}^{+\infty} x(nT_s)\,\mathrm{sinc}\!\left(\frac{t - nT_s}{T_s}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-df707dc95e1d4dfadd34befaed0ae011_l3.png)
![Rendered by QuickLaTeX.com \[ X_s(f) = f_s\sum_{k=-\infty}^{+\infty} X(f - kf_s) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-76d9dcb68e367cffd40f4860a5821d2c_l3.png)
Quantisation and A/D conversion
The uniform quantiser
![]()
The error power
![]()
![Rendered by QuickLaTeX.com \[ \sigma_e^2 = \int_{-\Delta/2}^{\Delta/2} e^2\,\frac{1}{\Delta}\,de = \frac{1}{\Delta}\left[\frac{e^3}{3}\right]_{-\Delta/2}^{\Delta/2} = \frac{1}{\Delta}\cdot\frac{2}{3}\cdot\frac{\Delta^3}{8} = \frac{\Delta^2}{12} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-1cb5bad06effb03b5c1074a6fe587b06_l3.png)
Signal-to-noise ratio
![]()
![]()
Discrete-time systems and digital filters
Linear discrete-time systems
![Rendered by QuickLaTeX.com \[ y[n] = \sum_{k=-\infty}^{+\infty} x[k]\,h[n - k] \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-9d044723fb3a5a967a477beaae3844c7_l3.png)
Difference equations
![Rendered by QuickLaTeX.com \[ y[n] = \sum_{k=0}^{M} b_k\,x[n - k] - \sum_{k=1}^{N} a_k\,y[n - k] \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d6f7ff7b27fcba4b26061bf4e3d63425_l3.png)
![]()
FIR filters
![Rendered by QuickLaTeX.com \[ H(z) = \frac15\sum_{k=0}^{4} z^{-k} = \frac15\cdot\frac{1 - z^{-5}}{1 - z^{-1}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7b067b7e9e71422420724f9fb129e9c8_l3.png)
IIR filters
![]()
Probability and random variables
Probability and conditional probability
![]()
Bayes' theorem
![]()
![]()
Random variables
![Rendered by QuickLaTeX.com \[ P(a \lt X \le b) = \int_a^b f_X(x)\,dx,\qquad \int_{-\infty}^{+\infty} f_X(x)\,dx = 1 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-04cf64e509eda5b04aa3634b51a3c203_l3.png)
![]()
The Gaussian distribution
![]()
![]()
Random processes and noise
Random processes
![]()
Power spectral density
![]()
Passing through a filter
![]()
![]()
White noise
![]()
Thermal noise
![]()
![]()
![]()
Detection and the matched filter
Signal-to-noise ratio
![]()
Deciding between two symbols
![]()
The matched filter
![]()
![Rendered by QuickLaTeX.com \[ \mathrm{SNR} = \frac{\left(\int h(\tau)\,s(T - \tau)\,d\tau\right)^2}{\frac{N_0}{2}\int h^2(\tau)\,d\tau} \le \frac{\int h^2\,d\tau\int s^2(T - \tau)\,d\tau}{\frac{N_0}{2}\int h^2\,d\tau} = \frac{2E}{N_0} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f98f57e2d9a421d4e34ac2bf8d1c5e12_l3.png)
Bit error probability
![Rendered by QuickLaTeX.com \[ P_e = Q\!\left(\sqrt{\frac{2E_b}{N_0}}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-4f248beee7c47a30ba885d7f57a5d008_l3.png)
Modulation and channel capacity
Amplitude modulation
![]()
![]()
Frequency modulation
![]()
Shannon capacity
![]()