Assignment 4 Quantization
Assignment 4 Quantization
1. What do you mean by Quantization? Describe the quantization problem with the help of an
example in detail.
Quantization is the process of mapping a large set of input values to a smaller set-often in digital
signal processing and data compression. It involves approximating a continuous range of values
with a finite set. This process introduces an error called quantization error.
Example: Consider analog-to-digital conversion. Suppose an analog signal ranges from 0 to 5V and
we need to digitize it using 8 levels (3 bits). Each level will cover a range of 5V / 8 = 0.625V. So, any
voltage between 0V and 0.625V is represented by 000, between 0.625V and 1.25V by 001, and so
on. A voltage of 1.1V would be quantized to 001, creating a small error. This simplification makes
--------------------------|----------------------------------------|--------------------------------------------------
Step size | Constant across the range | Varies depending on the signal distribution
Application | Suitable for signals with uniform distribution | Better for signals with
non-uniform characteristics
3. Describe Adaptive Quantization in detail and how it is different from uniform Quantization
technique.
Adaptive quantization is a dynamic form of quantization where the step size changes according to
the statistical properties of the signal. It adapts to signal variations over time. For example, during
silent periods in audio, fewer levels may be used, whereas more levels are used in active regions.
Uniform quantization uses fixed intervals, regardless of signal changes. Adaptive quantization
adjusts intervals based on real-time analysis. Hence, adaptive quantization provides better
performance in scenarios where signal properties change over time, like speech and video coding.
Distortion criteria refer to metrics used to measure the quality loss due to quantization. The main
criteria include:
- Mean Squared Error (MSE): Average of the square of the difference between original and
quantized values.
- Signal-to-Noise Ratio (SNR): Ratio of signal power to the power of quantization noise.
- Peak Signal-to-Noise Ratio (PSNR): Widely used in image compression, focuses on peak value of
signal.
- Maximum Error: Largest single error between input and output values.
These metrics help in evaluating and optimizing quantizer performance.
Entropy coded quantization combines quantization with entropy coding techniques like Huffman or
arithmetic coding. After quantizing the signal, the quantized output symbols are encoded using
Advantage: It reduces the average number of bits required to represent data. Frequent symbols get
shorter codes, while rare symbols get longer codes. This technique is widely used in standards like