
Signal-to-noise ratio (SNR or S/N) is a measure used in
science and engineering that compares the level of a desired
signal
A signal is both the process and the result of transmission of data over some media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processing, information theory and biology.
In ...
to the level of background
noise
Noise is sound, chiefly unwanted, unintentional, or harmful sound considered unpleasant, loud, or disruptive to mental or hearing faculties. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrat ...
. SNR is defined as the ratio of signal
power to
noise power, often expressed in
decibel
The decibel (symbol: dB) is a relative unit of measurement equal to one tenth of a bel (B). It expresses the ratio of two values of a Power, root-power, and field quantities, power or root-power quantity on a logarithmic scale. Two signals whos ...
s. A ratio higher than 1:1 (greater than 0 dB) indicates more signal than noise.
SNR is an important parameter that affects the performance and quality of systems that process or transmit signals, such as
communication systems,
audio systems,
radar systems,
imaging systems, and
data acquisition systems. A high SNR means that the signal is clear and easy to detect or interpret, while a low SNR means that the signal is corrupted or obscured by noise and may be difficult to distinguish or recover. SNR can be improved by various methods, such as increasing the signal strength, reducing the noise level, filtering out unwanted noise, or using error correction techniques.
SNR also determines the maximum possible amount of data that can be transmitted reliably over a given channel, which depends on its bandwidth and SNR. This relationship is described by the
Shannon–Hartley theorem, which is a fundamental law of information theory.
SNR can be calculated using different formulas depending on how the signal and noise are measured and defined. The most common way to express SNR is in decibels, which is a logarithmic scale that makes it easier to compare large or small values. Other definitions of SNR may use different factors or bases for the logarithm, depending on the context and application.
Definition
One definition of signal-to-noise ratio is the ratio of the
power of a
signal
A signal is both the process and the result of transmission of data over some media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processing, information theory and biology.
In ...
(meaningful input) to the power of background
noise
Noise is sound, chiefly unwanted, unintentional, or harmful sound considered unpleasant, loud, or disruptive to mental or hearing faculties. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrat ...
(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.
The signal-to-noise ratio of a random variable () to random noise is:
where E refers to the
expected value
In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
, which in this case is the
mean square of .
If the signal is simply a constant value of ', this equation simplifies to:
If the noise has
expected value
In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
of zero, as is common, the denominator is its
variance
In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
, the square of its
standard deviation
In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its Expected value, mean. A low standard Deviation (statistics), deviation indicates that the values tend to be close to the mean ( ...
.
The signal and the noise must be measured the same way, for example as voltages across the same
impedance. Their
root mean square
In mathematics, the root mean square (abbrev. RMS, or rms) of a set of values is the square root of the set's mean square.
Given a set x_i, its RMS is denoted as either x_\mathrm or \mathrm_x. The RMS is also known as the quadratic mean (denote ...
s can alternatively be used according to:
:
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 of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
ic
decibel
The decibel (symbol: dB) is a relative unit of measurement equal to one tenth of a bel (B). It expresses the ratio of two values of a Power, root-power, and field quantities, power or root-power quantity on a logarithmic scale. Two signals whos ...
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
Audio most commonly refers to sound, as it is transmitted in signal form. It may also refer to:
Sound
*Audio signal, an electrical representation of sound
* Audio frequency, a frequency in the audio spectrum
*Digital audio, representation of soun ...
, the reference signal is usually a
sine wave
A sine wave, sinusoidal wave, or sinusoid (symbol: ∿) is a periodic function, periodic wave whose waveform (shape) is the trigonometric function, trigonometric sine, sine function. In mechanics, as a linear motion over time, this is ''simple ...
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, i.e., the ratio of
mean to
standard deviation
In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its Expected value, mean. A low standard Deviation (statistics), deviation indicates that the values tend to be close to the mean ( ...
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, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
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 or picture is a visual representation. An image can be two-dimensional, such as a drawing, painting, or photograph, or three-dimensional, such as a carving or sculpture. Images may be displayed through other media, including a pr ...
, where the SNR of an
image
An image or picture is a visual representation. An image can be Two-dimensional space, two-dimensional, such as a drawing, painting, or photograph, or Three-dimensional space, three-dimensional, such as a carving or sculpture. Images may be di ...
is usually calculated as the ratio of the
mean pixel value to the
standard deviation
In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its Expected value, mean. A low standard Deviation (statistics), deviation indicates that the values tend to be close to the mean ( ...
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 of imaging systems; see Signal-to-noise ratio (imaging).
Related measures are the " contrast ratio" 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 sound, chiefly unwanted, unintentional, or harmful sound considered unpleasant, loud, or disruptive to mental or hearing faculties. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrat ...
level is the error
An error (from the Latin , meaning 'to wander'Oxford English Dictionary, s.v. “error (n.), Etymology,” September 2023, .) is an inaccurate or incorrect action, thought, or judgement.
In statistics, "error" refers to the difference between t ...
caused by the quantization of the signal, sometimes called quantization noise. This noise level is non-linear and signal-dependent; different calculations exist for different signal models. Quantization noise is modeled as an analog error signal summed with the signal before quantization ("additive noise").
This theoretical maximum SNR assumes a perfect input signal. If the input signal is already noisy (as is usually the case), the signal's noise may be larger than the quantization noise. Real analog-to-digital converters also have other sources of noise that further decrease the SNR compared to the theoretical maximum from the idealized quantization noise, including the intentional addition of dither
Dither is an intentionally applied form of noise used to randomize quantization error, preventing large-scale patterns such as color banding in images. Dither is routinely used in processing of both digital audio and video data, and is ofte ...
.
Although noise levels in a digital system can be expressed using SNR, it is more common to use Eb/No, the energy per bit per noise power spectral density.
The modulation error ratio (MER) is a measure of the SNR in a digitally modulated signal.
Fixed point
For ''n''-bit integers with equal distance between quantization levels ( uniform quantization) the dynamic range (DR) is also determined.
Assuming a uniform distribution of input signal values, the quantization noise is a uniformly distributed random signal with a peak-to-peak amplitude of one quantization level, making the amplitude ratio 2''n''/1. The formula is then:
:
This relationship is the origin of statements like " 16-bit audio has a dynamic range of 96 dB". Each extra quantization bit increases the dynamic range by roughly 6 dB.
Assuming a full-scale sine wave
A sine wave, sinusoidal wave, or sinusoid (symbol: ∿) is a periodic function, periodic wave whose waveform (shape) is the trigonometric function, trigonometric sine, sine function. In mechanics, as a linear motion over time, this is ''simple ...
signal (that is, the quantizer is designed such that it has the same minimum and maximum values as the input signal), the quantization noise approximates a sawtooth wave with peak-to-peak amplitude of one quantization level[Defining and Testing Dynamic Parameters in High-Speed ADCs](_blank)
— Maxim Integrated Products Application note 728 and uniform distribution. In this case, the SNR is approximately
:
Floating point
Floating-point numbers provide a way to trade off signal-to-noise ratio for an increase in dynamic range. For n-bit floating-point numbers, with n-m bits in the mantissa and m bits in the exponent:
:
:
The dynamic range is much larger than fixed-point but at a cost of a worse signal-to-noise ratio. This makes floating-point preferable in situations where the dynamic range is large or unpredictable. Fixed-point's simpler implementations can be used with no signal quality disadvantage in systems where dynamic range is less than 6.02m. The very large dynamic range of floating-point can be a disadvantage, since it requires more forethought in designing algorithms.[Fixed-Point vs. Floating-Point DSP for Superior Audio](_blank)
— Rane Corporation technical library[Often special filters are used to weight the noise: DIN-A, DIN-B, DIN-C, DIN-D, CCIR-601; for video, special filters such as comb filters may be used.][Maximum possible full scale signal can be charged as peak-to-peak or as RMS. Audio uses RMS, Video P-P, which gave +9 dB more SNR for video.]
Optical signals
Optical signals have a carrier frequency (about and more) that is much higher than the modulation frequency. This way the noise covers a bandwidth that is much wider than the signal itself. The resulting signal influence relies mainly on the filtering of the noise. To describe the signal quality without taking the receiver into account, the optical SNR (OSNR) is used. The OSNR is the ratio between the signal power and the noise power in a given bandwidth. Most commonly a reference bandwidth of 0.1 nm is used. This bandwidth is independent of the modulation format, the frequency and the receiver. For instance an OSNR of 20 dB/0.1 nm could be given, even the signal of 40 GBit DPSK would not fit in this bandwidth. OSNR is measured with an optical spectrum analyzer.
Types and abbreviations
Signal to noise ratio may be abbreviated as SNR and less commonly as S/N. PSNR stands for peak signal-to-noise ratio. GSNR stands for geometric signal-to-noise ratio. SINR is the signal-to-interference-plus-noise ratio.
Other uses
While SNR is commonly quoted for electrical signals, it can be applied to any form of signal, for example isotope
Isotopes are distinct nuclear species (or ''nuclides'') of the same chemical element. They have the same atomic number (number of protons in their Atomic nucleus, nuclei) and position in the periodic table (and hence belong to the same chemica ...
levels in an ice core, biochemical signaling between cells, or financial trading signals. The term is sometimes used metaphorically to refer to the ratio of useful information
Information is an Abstraction, abstract concept that refers to something which has the power Communication, to inform. At the most fundamental level, it pertains to the Interpretation (philosophy), interpretation (perhaps Interpretation (log ...
to false or irrelevant data in a conversation or exchange. For example, in online discussion forums and other online communities, off-topic posts and spam
Spam most often refers to:
* Spam (food), a consumer brand product of canned processed pork of the Hormel Foods Corporation
* Spamming, unsolicited or undesired electronic messages
** Email spam, unsolicited, undesired, or illegal email messages
...
are regarded as that interferes with the of appropriate discussion.
SNR can also be applied in marketing and how business professionals manage information overload. Managing a healthy signal to noise ratio can help business executives improve their KPIs (Key Performance Indicators).
Similar concepts
The signal-to-noise ratio is similar to Cohen's d given by the difference of estimated means divided by the standard deviation of the data and is related to the test statistic in the t-test.
See also
* Audio system measurements
Audio system measurements are used to quantify audio system performance. These measurements are made for several purposes. Designers take measurements to specify the performance of a piece of equipment. Maintenance engineers make them to ensur ...
* Generation loss
* Matched filter
* Near–far problem
The near–far problem or hearability problem is the effect of a strong signal from a near signal source in making it hard for a receiver to hear a weaker signal from a further source due to adjacent-channel interference, co-channel interference, ...
* Noise margin
* Omega ratio
* Pareidolia
* Peak signal-to-noise ratio
* Signal-to-noise statistic
* Signal-to-interference-plus-noise ratio
* SINAD
* SINADR
* Subjective video quality
* Total harmonic distortion
* Video quality
Notes
References
External links
*
ADC and DAC Glossary
– Maxim Integrated Products
Understand SINAD, ENOB, SNR, THD, THD + N, and SFDR so you don't get lost in the noise floor
– Analog Devices
The Relationship of dynamic range to data word size in digital audio processing
* ttp://www.vias.org/simulations/simusoft_spectaccu.html Learning by simulations – a simulation showing the improvement of the SNR by time averaging
Dynamic Performance Testing of Digital Audio D/A Converters
Fundamental theorem of analog circuits: a minimum level of power must be dissipated to maintain a level of SNR
Interactive webdemo of visualization of SNR in a QAM constellation diagram
Institute of Telecommunicatons, University of Stuttgart
*
Quantization Noise
Widrow & Kollár Quantization book page with sample chapters and additional material
Signal-to-noise ratio online audio demonstrator - Virtual Communications Lab
{{Noise
Engineering ratios
Error measures
Measurement
Electrical parameters
Audio amplifier specifications
Noise (electronics)
Statistical ratios
Acoustics
Sound