Signal-to-noise ratio (SNR or S/N) is a measure used in
science and engineering that compares the level of a desired
signal to the level of background
noise
Noise is unwanted sound considered unpleasant, loud or disruptive to hearing. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrations through a medium, such as air or water. The difference aris ...
. SNR is defined as the ratio of signal power to the
noise power, often expressed in
decibels. A ratio higher than 1:1 (greater than 0 dB) indicates more signal than noise.
SNR,
bandwidth, and
channel capacity of a
communication channel
A communication channel refers either to a physical transmission medium such as a wire, or to a logical connection over a multiplexed medium such as a radio channel in telecommunications and computer networking. A channel is used for inform ...
are connected by the
Shannon–Hartley theorem.
Definition
Signal-to-noise ratio is defined as the ratio of the
power of a
signal (meaningful input) to the power of background
noise
Noise is unwanted sound considered unpleasant, loud or disruptive to hearing. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrations through a medium, such as air or water. The difference aris ...
(meaningless or unwanted input):
:
where is average power. Both signal and noise power must be measured at the same or equivalent points in a system, and within the same system
bandwidth.
Depending on whether the signal is a constant () or a random variable (), the signal-to-noise ratio for random noise becomes:
:
where E refers to the
expected value
In probability theory, the expected value (also called expectation, expectancy, mathematical expectation, mean, average, or first moment) is a generalization of the weighted average. Informally, the expected value is the arithmetic mean of a ...
, i.e. in this case the
mean square of ,
or
:
If the noise has
expected value
In probability theory, the expected value (also called expectation, expectancy, mathematical expectation, mean, average, or first moment) is a generalization of the weighted average. Informally, the expected value is the arithmetic mean of a ...
of zero, as is common, the denominator is its
variance
In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of number ...
, the square of its
standard deviation .
The signal and the noise must be measured the same way, for example as voltages across the same
impedance. The
root mean squares can alternatively be used in the ratio:
:
where is
root mean square (RMS) amplitude (for example, RMS voltage).
Decibels
Because many signals have a very wide
dynamic range, signals are often expressed using the
logarithm
In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a number to the base is the exponent to which must be raised, to produce . For example, since , the ''logarithm base'' 10 of ...
ic
decibel scale. Based upon the definition of decibel, signal and noise may be expressed in decibels (dB) as
:
and
:
In a similar manner, SNR may be expressed in decibels as
:
Using the definition of SNR
:
Using the quotient rule for logarithms
:
Substituting the definitions of SNR, signal, and noise in decibels into the above equation results in an important formula for calculating the signal to noise ratio in decibels, when the signal and noise are also in decibels:
:
In the above formula, P is measured in units of power, such as watts (W) or milliwatts (mW), and the signal-to-noise ratio is a pure number.
However, when the signal and noise are measured in volts (V) or amperes (A), which are measures of amplitude, they must first be squared to obtain a quantity proportional to power, as shown below:
:
Dynamic range
The concepts of signal-to-noise ratio and dynamic range are closely related. Dynamic range measures the ratio between the strongest un-
distorted signal on a
channel and the minimum discernible signal, which for most purposes is the noise level. SNR measures the ratio between an arbitrary signal level (not necessarily the most powerful signal possible) and noise. Measuring signal-to-noise ratios requires the selection of a representative or ''reference'' signal. In
audio engineering, the reference signal is usually a
sine wave at a standardized
nominal or
alignment level, such as 1 kHz at +4
dBu (1.228 V
RMS).
SNR is usually taken to indicate an ''average'' signal-to-noise ratio, as it is possible that instantaneous signal-to-noise ratios will be considerably different. The concept can be understood as normalizing the noise level to 1 (0 dB) and measuring how far the signal 'stands out'.
Difference from conventional power
In physics, the average
power of an AC signal is defined as the average value of voltage times current; for
resistive (non-
reactive) circuits, where voltage and current are in phase, this is equivalent to the product of the
rms voltage and current:
:
:
But in signal processing and communication, one usually assumes that
so that factor is usually not included while measuring power or energy of a signal. This may cause some confusion among readers, but the resistance factor is not significant for typical operations performed in signal processing, or for computing power ratios. For most cases, the power of a signal would be considered to be simply
:
Alternative definition
An alternative definition of SNR is as the reciprocal of the
coefficient of variation
In probability theory and statistics, the coefficient of variation (CV), also known as relative standard deviation (RSD), is a standardized measure of dispersion of a probability distribution or frequency distribution. It is often expressed ...
, i.e., the ratio of
mean
There are several kinds of mean in mathematics, especially in statistics. Each mean serves to summarize a given group of data, often to better understand the overall value ( magnitude and sign) of a given data set.
For a data set, the '' ari ...
to
standard deviation of a signal or measurement:
[Bushberg, J. T., et al., ]
The Essential Physics of Medical Imaging
'' (2e). Philadelphia: Lippincott Williams & Wilkins, 2006, p. 280.
:
where
is the signal mean or
expected value
In probability theory, the expected value (also called expectation, expectancy, mathematical expectation, mean, average, or first moment) is a generalization of the weighted average. Informally, the expected value is the arithmetic mean of a ...
and
is the standard deviation of the noise, or an estimate thereof.
[The exact methods may vary between fields. For example, if the signal data are known to be constant, then can be calculated using the standard deviation of the signal. If the signal data are not constant, then can be calculated from data where the signal is zero or relatively constant.] Notice that such an alternative definition is only useful for variables that are always non-negative (such as photon counts and
luminance), and it is only an approximation since
. It is commonly used in
image processing
An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimension ...
, where the SNR of an
image
An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensio ...
is usually calculated as the ratio of the
mean
There are several kinds of mean in mathematics, especially in statistics. Each mean serves to summarize a given group of data, often to better understand the overall value ( magnitude and sign) of a given data set.
For a data set, the '' ari ...
pixel value to the
standard deviation of the pixel values over a given neighborhood.
Sometimes SNR is defined as the square of the alternative definition above, in which case it is equivalent to the
more common definition:
:
This definition is closely related to the
sensitivity index or ''d'', when assuming that the signal has two states separated by signal amplitude
, and the noise standard deviation
does not change between the two states.
The ''Rose criterion'' (named after
Albert Rose) states that an SNR of at least 5 is needed to be able to distinguish image features with certainty. An SNR less than 5 means less than 100% certainty in identifying image details.
[
Yet another alternative, very specific, and distinct definition of SNR is employed to characterize ]sensitivity
Sensitivity may refer to:
Science and technology Natural sciences
* Sensitivity (physiology), the ability of an organism or organ to respond to external stimuli
** Sensory processing sensitivity in humans
* Sensitivity and specificity, statisti ...
of imaging systems; see Signal-to-noise ratio (imaging).
Related measures are the "contrast ratio
The contrast ratio (CR) is a property of a display system, defined as the ratio of the luminance of the brightest shade (white) to that of the darkest shade (black) that the system is capable of producing. A high contrast ratio is a desired aspe ...
" and the " contrast-to-noise ratio".
Modulation system measurements
Amplitude modulation
Channel signal-to-noise ratio is given by
:
where W is the bandwidth and is modulation index
Output signal-to-noise ratio (of AM receiver) is given by
:
Frequency modulation
Channel signal-to-noise ratio is given by
:
Output signal-to-noise ratio is given by
:
Noise reduction
All real measurements are disturbed by noise. This includes electronic noise, but can also include external events that affect the measured phenomenon — wind, vibrations, the gravitational attraction of the moon, variations of temperature, variations of humidity, etc., depending on what is measured and of the sensitivity of the device. It is often possible to reduce the noise by controlling the environment.
Internal electronic noise of measurement systems can be reduced through the use of low-noise amplifiers.
When the characteristics of the noise are known and are different from the signal, it is possible to use a filter to reduce the noise. For example, a lock-in amplifier can extract a narrow bandwidth signal from broadband noise a million times stronger.
When the signal is constant or periodic and the noise is random, it is possible to enhance the SNR by averaging the measurements. In this case the noise goes down as the square root of the number of averaged samples.
Digital signals
When a measurement is digitized, the number of bits used to represent the measurement determines the maximum possible signal-to-noise ratio. This is because the minimum possible noise
Noise is unwanted sound considered unpleasant, loud or disruptive to hearing. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrations through a medium, such as air or water. The difference aris ...
level is the