Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 60

Quantization Noise and SNR Analysis

Recommended resources

Hello! Welcome to the next lesson in our course on Digital and Analog Signal Processing.

In our last lesson, we explored the practical world of finite-precision arithmetic. We saw that representing signals and filter coefficients with a finite number of bits introduces errors. We characterized these errors qualitatively for fixed-point (additive error) and floating-point (multiplicative error) systems and introduced the famous "6 dB per bit" rule of thumb.

Today, we will build upon that foundation by developing a formal mathematical model for these errors. Our goal is to model quantization noise and analyze its impact on system signal-to-noise ratio (SNR). This will allow us to move from a qualitative understanding to a quantitative analysis, and we will derive the formula that underpins the "6 dB per bit" rule.

1. The Additive Noise Model for Quantization

When a continuous-valued signal is quantized to a value , an error is introduced. We can express the quantized signal as the sum of the original signal and an error signal, :

Here, is the quantization error.

Quantization of a Signal and Resulting Quantization Error
This figure illustrates the relationship between an original signal (blue curve), its quantized counterpart (orange steps), and the resulting quantization error (the difference between the two) shown in the bottom plot.

While this error is deterministically linked to the input signal, for many common signals (especially complex ones like speech or music), the error sequence appears highly random and unpredictable. This observation motivates modeling the quantization error as a random process, often referred to as quantization noise.

Analysis of Quantization Error

To formalize this model, we make a few key assumptions about the statistical properties of the quantization noise. The video 'Analysis of Quantization Error' by Professor Barry Van Veen provides an excellent and rigorous walkthrough of these assumptions. This first part will show why a statistical model is useful.

Please watch from the beginning to 01:55. Notice how complex the error signal looks, even for a simple cosine input. This complexity is why we turn to statistical methods.

The Four Key Assumptions

To build a tractable model, we rely on a set of standard assumptions about the quantization noise . Your background in random processes will be helpful here.

Analysis of Quantization Error

Let's continue with the same video, which now introduces the core assumptions of our model and the relevant terminology from probability theory.

Please watch from 01:55 to 07:22. Focus on understanding the four assumptions that define the statistical characterization of quantization noise.

To summarize, the standard model for quantization noise assumes that the error sequence has the following properties:

  1. Stationarity: The statistical properties of the error (like its mean and variance) do not change over time.
  2. Uniform Distribution: For rounding to the nearest level, the error is equally likely to be any value within the range from to , where is the quantization step size (also known as the LSB). This gives a uniform probability density function (PDF), for , and 0 otherwise.
  3. Uncorrelation (White Noise): The value of the error at any time sample, , is uncorrelated with the error at any other time sample, , for . This implies that the noise has a flat power spectral density.
  4. Signal Independence: The error sequence is uncorrelated with the original signal sequence .

As the video notes, these assumptions are most valid when the quantization step is small and the signal is "busy" enough to cross several quantization levels between samples. For very simple, periodic signals that are harmonically related to the sampling rate, the error can become correlated with the signal, but for most practical applications, this additive white noise model is remarkably effective.


2. Quantifying the Noise: Power and SNR

With a statistical model in hand, we can now calculate the power of the quantization noise. In signal processing, the average power of a zero-mean random process is equal to its variance, .

Deriving the Noise Power

Given the uniform distribution of the error, we can calculate its variance by integrating against its PDF.

Analysis of Quantization Error

The next segment of the video derives this fundamental result for noise power. Pay close attention to the integration.

Watch from 07:22 to 09:42. Follow the derivation of the noise variance, \sigma_e^2.

As derived in the video, the calculation is as follows:


This is a cornerstone result: The average power of quantization noise is . This holds for any signal, provided our initial modeling assumptions are met.

Test your understanding!

An 8-bit Analog-to-Digital Converter (ADC) has a full-scale input voltage range of -5V to +5V.

  1. What is the quantization step size ?
  2. What is the power of the quantization noise in Volts squared?
Show answer
  1. The total range is . An 8-bit converter has levels. Therefore, the step size is .
  2. The noise power is .

Deriving the Signal-to-Quantization-Noise Ratio (SQNR)

The impact of noise is best understood relative to the signal's strength. The Signal-to-Quantization-Noise Ratio (SQNR) is the ratio of signal power () to noise power ().

This formula is general, but to get the famous 6.02N + 1.76 dB result, we need to make an assumption about the input signal. A standard benchmark is a full-scale sine wave.

Taking the Mystery out of the Infamous Formula, 'SNR = 6.02N + 1.76dB'

The application note from Analog Devices, 'Taking the Mystery out of the Infamous Formula', provides a classic and clear derivation of the SQNR for a sinusoidal input. It's written from an engineering perspective that you will find very practical.

Please read from the beginning to the end of Equation 9 on page 2. This will walk you through the derivation, starting with the same noise power result and then applying it to a full-scale sine wave input.

Let's walk through the key steps from the Analog Devices note and the Van Veen video:

  1. Relate to the number of bits, N: For an ADC with bits covering a full-scale peak-to-peak range of , the step size is .
  2. Calculate Signal Power : For a full-scale sine wave, the amplitude is . The power (mean-square value) of a sinusoid with amplitude A is .
  3. Combine the terms:
  4. Convert to Decibels (dB):


    Since , we arrive at the final formula:

This equation is a fundamental result in digital signal processing. It precisely quantifies the trade-off between the number of bits used to represent a signal and the best-case signal-to-noise ratio you can achieve. The 6.02N term is the mathematical origin of the "6 dB per bit" rule of thumb. The 1.76 dB term is a constant that arises specifically from assuming a sinusoidal test signal.


3. System-Level Impact

It is crucial to remember where this noise gets injected. In the case of an ADC, the quantization noise is added to the signal before any digital processing.

This means that if you apply a digital filter to the quantized signal, you are filtering the noise as well. The filter's frequency response will shape the noise spectrum. For example, if you apply a narrow bandpass filter, you will filter out most of the broadband quantization noise, effectively increasing the SNR within that band. This concept, known as "process gain," is a key principle in oversampling converters and software-defined radio, topics we may touch on later.


Conclusion

In this lesson, we put a rigorous mathematical framework around the concept of quantization error. By modeling it as an additive random process, we were able to quantify its impact and derive one of the most important formulas in DSP.

Key Takeaways:

  • Quantization error is commonly modeled as an additive, stationary, white noise process that is uniformly distributed between and .
  • The average power of this quantization noise is , where is the step size.
  • For an N-bit quantizer with a full-scale sinusoidal input, the theoretical maximum Signal-to-Quantization-Noise Ratio is given by .
  • This derivation provides the formal justification for the "6 dB per bit" rule, showing that each additional bit of resolution increases the theoretical SNR by approximately 6 dB.

Preview of the Next Lesson:

We have now deeply analyzed the sources and effects of finite precision. In the next lesson, we will shift gears to another advanced and powerful area of DSP: multirate signal processing. We will explore the fundamental operations of decimation (downsampling) and interpolation (upsampling), learning how to efficiently change the sampling rate of a signal in the digital domain. This is a critical technique used in fields ranging from digital audio to modern telecommunications systems.