Mean square quantization error (MSQE) is a figure of merit for the process of analog to digital conversion.
In this conversion process, analog signals in a continuous range of values are converted to a discrete set of values by comparing them with a sequence of thresholds.The quantization error of a signal is the difference between the original continuous value and its discretization, and the mean square quantization error (given some probability distribution on the input values) is the expected value of the square of the quantization errors.
Mathematically, suppose that the lower threshold for inputs that generate the quantized value
qi
ti-1
ti
k
p(x)
\hatx
x
\hatx
qi
ti-1\lex<ti
\begin{align} \operatorname{MSQE}&=\operatorname{E}[(x-\hat
tk | |
x) | |
t0 |
(x-\hatx)2p(x)dx\\ &=
k | |
\sum | |
i=1 |
ti | |
\int | |
ti-1 |
2 | |
(x-q | |
i) |
p(x)dx. \end{align}