Exact analysis of quantization errors is difficult because quantization is highly nonlinear. Approximating quantization errors as independent, additive white Gaussian noise processes makes analysis tractable and generally leads to fairly accurate results. Dithering can be used to make these approximations more accurate.
Fundamental assumptions in finite-precision error analysis
Quantization is a highly nonlinear process and is very
difficult to analyze precisely. Approximations and assumptions are madeto make analysis tractable.
Assumption #1
The roundoff or truncation errors at any point in a system
at each time are
random ,
stationary , and
statistically
independent (white and independent of all other
quantizers in a system).
That is, the error autocorrelation function is
.
Intuitively, and confirmed experimentally in some (but notall!) cases, one expects the quantization error to have a
uniform distribution over the interval
for rounding, or
for truncation.
In this case, rounding has zero mean and variance
and truncation has the statistics
Please note that the independence assumption may be very
bad (for example, when quantizing a sinusoid with an integerperiod
). There is another
quantizing scheme called
dithering , in which
the values are randomly assigned to nearby quantizationlevels. This can be (and often is) implemented by adding a
small (one- or two-bit) random input to the signal before atruncation or rounding quantizer.
This is used extensively in practice. Altough the overallerror is somewhat higher, it is spread evenly over all
frequencies, rather than being concentrated in spectrallines. This is very important when quantizing sinusoidal or
other periodic signals, for example.
Assumption #2
Pretend that the quantization error is really additive
Gaussian noise with the same mean and
variance as the uniform quantizer. That is, model
As
This model is a
linear system,
which our standard theory can handle easily. We model the noise asGaussian because it remains Gaussian after passing through
filters, so analysis in a system context is tractable.
Summary of useful statistical facts
Correlation function
Power spectral density
Note
Cross-spectral density
For
:
Note that the
output noise level after
filtering a noise sequence is
so postfiltering quantization noise alters the
noise power spectrum and may change its variance!