Mathematically, suppose that the lower threshold for inputs that generate the quantized value  is , that the upper threshold is , that there are  levels of quantization, and that the probability density function for the input analog values is .
Mathematically, suppose that the minimum value for inputs producing a quantized result is , the maximum value is , there are  different stages of quantization, and the probability distribution for the input continuous values is .