Shannon–Hartley theorem should not be confused with Nyquist–Shannon sampling theorem.
In information theory, the Shannon–Hartley theorem tells the maximum rate at which information can be transmitted over a communications channel of a specified bandwidth in the presence of noise. It is an application of the noisy-channel coding theorem to the archetypal case of a continuous-time analog communications channel subject to Gaussian noise. The theorem establishes Shannon's channel capacity for such a communication link, a bound on the maximum amount of error-free information per time unit that can be transmitted with a specified bandwidth in the presence of the noise interference, assuming that the signal power is bounded, and that the Gaussian noise process is characterized by a known power or power spectral density. The law is named after Claude Shannon and Ralph Hartley.
C
S
C=Blog2\left(1+
S | |
N |
\right)
where
C
I
B
S
N
S/N
During the late 1920s, Harry Nyquist and Ralph Hartley developed a handful of fundamental ideas related to the transmission of information, particularly in the context of the telegraph as a communications system. At the time, these concepts were powerful breakthroughs individually, but they were not part of a comprehensive theory. In the 1940s, Claude Shannon developed the concept of channel capacity, based in part on the ideas of Nyquist and Hartley, and then formulated a complete theory of information and its transmission.
See main article: Nyquist rate. In 1927, Nyquist determined that the number of independent pulses that could be put through a telegraph channel per unit time is limited to twice the bandwidth of the channel. In symbolic notation,
fp\le2B
where
fp
B
2B
2B
During 1928, Hartley formulated a way to quantify information and its line rate (also known as data signalling rate R bits per second).[2] This method, later known as Hartley's law, became an important precursor for Shannon's more sophisticated notion of channel capacity.
Hartley argued that the maximum number of distinguishable pulse levels that can be transmitted and received reliably over a communications channel is limited by the dynamic range of the signal amplitude and the precision with which the receiver can distinguish amplitude levels. Specifically, if the amplitude of the transmitted signal is restricted to the range of [−''A'' ... +''A''] volts, and the precision of the receiver is ±ΔV volts, then the maximum number of distinct pulses M is given by
M=1+{A\over\DeltaV}
By taking information per pulse in bit/pulse to be the base-2-logarithm of the number of distinct messages M that could be sent, Hartley[3] constructed a measure of the line rate R as:
R=fplog2(M),
where
fp
Hartley then combined the above quantification with Nyquist's observation that the number of independent pulses that could be put through a channel of bandwidth
B
2B
Hartley's law is sometimes quoted as just a proportionality between the analog bandwidth,
B
R
R
R\le2Blog2(M).
Hartley did not work out exactly how the number M should depend on the noise statistics of the channel, or how the communication could be made reliable even when individual symbol pulses could not be reliably distinguished to M levels; with Gaussian noise statistics, system designers had to choose a very conservative value of
M
The concept of an error-free capacity awaited Claude Shannon, who built on Hartley's observations about a logarithmic measure of information and Nyquist's observations about the effect of bandwidth limitations.
Hartley's rate result can be viewed as the capacity of an errorless M-ary channel of
2B
B
See main article: Noisy-channel coding theorem. Claude Shannon's development of information theory during World War II provided the next big step in understanding how much information could be reliably communicated through noisy channels. Building on Hartley's foundation, Shannon's noisy channel coding theorem (1948) describes the maximum possible efficiency of error-correcting methods versus levels of noise interference and data corruption.[6] [7] The proof of the theorem shows that a randomly constructed error-correcting code is essentially as good as the best possible code; the theorem is proved through the statistics of such random codes.
Shannon's theorem shows how to compute a channel capacity from a statistical description of a channel, and establishes that given a noisy channel with capacity
C
R
R<C
there exists a coding technique which allows the probability of error at the receiver to be made arbitrarily small. This means that theoretically, it is possible to transmit information nearly without error up to nearly a limit of
C
The converse is also important. If
R>C
the probability of error at the receiver increases without bound as the rate is increased. So no useful information can be transmitted beyond the channel capacity. The theorem does not address the rare situation in which rate and capacity are equal.
The Shannon–Hartley theorem establishes what that channel capacity is for a finite-bandwidth continuous-time channel subject to Gaussian noise. It connects Hartley's result with Shannon's channel capacity theorem in a form that is equivalent to specifying the M in Hartley's line rate formula in terms of a signal-to-noise ratio, but achieving reliability through error-correction coding rather than through reliably distinguishable pulse levels.
If there were such a thing as a noise-free analog channel, one could transmit unlimited amounts of error-free data over it per unit of time (Note that an infinite-bandwidth analog channel could not transmit unlimited amounts of error-free data absent infinite signal power). Real channels, however, are subject to limitations imposed by both finite bandwidth and nonzero noise.
Bandwidth and noise affect the rate at which information can be transmitted over an analog channel. Bandwidth limitations alone do not impose a cap on the maximum information rate because it is still possible for the signal to take on an indefinitely large number of different voltage levels on each symbol pulse, with each slightly different level being assigned a different meaning or bit sequence. Taking into account both noise and bandwidth limitations, however, there is a limit to the amount of information that can be transferred by a signal of a bounded power, even when sophisticated multi-level encoding techniques are used.
In the channel considered by the Shannon–Hartley theorem, noise and signal are combined by addition. That is, the receiver measures a signal that is equal to the sum of the signal encoding the desired information and a continuous random variable that represents the noise. This addition creates uncertainty as to the original signal's value. If the receiver has some information about the random process that generates the noise, one can in principle recover the information in the original signal by considering all possible states of the noise process. In the case of the Shannon–Hartley theorem, the noise is assumed to be generated by a Gaussian process with a known variance. Since the variance of a Gaussian process is equivalent to its power, it is conventional to call this variance the noise power.
Such a channel is called the Additive White Gaussian Noise channel, because Gaussian noise is added to the signal; "white" means equal amounts of noise at all frequencies within the channel bandwidth. Such noise can arise both from random sources of energy and also from coding and measurement error at the sender and receiver respectively. Since sums of independent Gaussian random variables are themselves Gaussian random variables, this conveniently simplifies analysis, if one assumes that such error sources are also Gaussian and independent.
Comparing the channel capacity to the information rate from Hartley's law, we can find the effective number of distinguishable levels M:[8]
2Blog2(M)=Blog2\left(1+
S | |
N |
\right)
M=\sqrt{1+
S | |
N |
The square root effectively converts the power ratio back to a voltage ratio, so the number of levels is approximately proportional to the ratio of signal RMS amplitude to noise standard deviation.
This similarity in form between Shannon's capacity and Hartley's law should not be interpreted to mean that
M
M
In the simple version above, the signal and noise are fully uncorrelated, in which case
S+N
C=
B | |
\int | |
0 |
log2\left(1+
S(f) | |
N(f) |
\right)df
where
C
B
S(f)
N(f)
f
Note: the theorem only applies to Gaussian stationary process noise. This formula's way of introducing frequency-dependent noise cannot describe all continuous-time noise processes. For example, consider a noise process consisting of adding a random wave whose amplitude is 1 or -1 at any point in time, and a channel that adds such a wave to the source signal. Such a wave's frequency components are highly dependent. Though such a noise may have a high power, it is fairly easy to transmit a continuous signal with much less power than one would need if the underlying noise was a sum of independent noises in each frequency band.
For large or small and constant signal-to-noise ratios, the capacity formula can be approximated:
When the SNR is large, the logarithm is approximated by
log2\left(1+
S | |
N |
\right) ≈ log2
S | |
N |
=
ln10 | |
ln2 |
⋅ log10
S | |
N |
≈ 3.32 ⋅ log10
S | |
N |
,
in which case the capacity is logarithmic in power and approximately linear in bandwidth (not quite linear, since increases with bandwidth, imparting a logarithmic effect). This is called the bandwidth-limited regime.
C ≈ 0.332 ⋅ B ⋅ SNR (in dB)
SNR (in dB)=10log10{S\overN}.
Similarly, when the SNR is small (if), applying the approximation to the logarithm:
log2\left(1+
S | |
N |
\right)=
1 | |
ln2 |
⋅ ln\left(1+
S | |
N |
\right) ≈
1 | |
ln2 |
⋅
S | |
N |
≈ 1.44 ⋅ {S\overN};
then the capacity is linear in power. This is called the power-limited regime.
C ≈ 1.44 ⋅ B ⋅ {S\overN}.
In this low-SNR approximation, capacity is independent of bandwidth if the noise is white, of spectral density watts per hertz, in which case the total noise power is
N=B ⋅ N0
C ≈ 1.44 ⋅ {S\overN0}