One definition of signal-to-noise ratio is the ratio of the
power of a
signal (meaningful input) to the power of background
noise (meaningless or unwanted input): : \mathrm{SNR} = \frac{P_\mathrm{signal}}{P_\mathrm{noise}}, 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: \mathrm{SNR} = \frac{\mathrm{E}[S^2]}{\mathrm{E}[N^2]} \, , where E refers to the
expected value, which in this case is the
mean square of . If the signal is simply a constant value of '''', this equation simplifies to: \mathrm{SNR} = \frac{s^2}{\mathrm{E}[N^2]} \, . If the noise has
expected value of zero, as is common, the denominator is its
variance, 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. Their
root mean squares can alternatively be used according to: : \mathrm{SNR} = \frac{P_\mathrm{signal}}{P_\mathrm{noise}} = \left ( \frac{A_\mathrm{signal}}{A_\mathrm{noise} } \right )^2, 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
logarithmic
decibel scale. Based upon the definition of decibel, signal and noise may be expressed in decibels (dB) as :P_\mathrm{signal,dB} = 10 \log_{10} \left ( P_\mathrm{signal} \right ) and :P_\mathrm{noise,dB} = 10 \log_{10} \left ( P_\mathrm{noise} \right ). In a similar manner, SNR may be expressed in decibels as : \mathrm{SNR_{dB}} = 10 \log_{10} \left ( \mathrm{SNR} \right ). Using the definition of SNR : \mathrm{SNR_{dB}} = 10 \log_{10} \left ( \frac{P_\mathrm{signal}}{P_\mathrm{noise}} \right ). Using the quotient rule for logarithms : 10 \log_{10} \left ( \frac{P_\mathrm{signal}}{P_\mathrm{noise}} \right ) = 10 \log_{10} \left ( P_\mathrm{signal} \right ) - 10 \log_{10} \left ( P_\mathrm{noise} \right ). 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: : \mathrm{SNR_{dB}} = {P_\mathrm{signal,dB} - P_\mathrm{noise,dB}}. 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: : \mathrm{SNR_{dB}} = 10 \log_{10} \left [ \left ( \frac{A_\mathrm{signal}}{A_\mathrm{noise}} \right )^2 \right ] = 20 \log_{10} \left ( \frac{A_\mathrm{signal}}{A_\mathrm{noise}} \right ) = {A_\mathrm{signal,dB} - A_\mathrm{noise,dB}} .
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 VRMS). 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: : \mathrm{P} = V_\mathrm{rms}I_\mathrm{rms} : \mathrm{P}= \frac{V_\mathrm{rms}^{2}}{R} = I_\mathrm{rms}^{2} R But in signal processing and communication, one usually assumes that R=1 \Omega 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 : \mathrm{P}= V_\mathrm{rms}^{2} == Alternative definition ==