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, let's assume that the lower limit for inputs resulting in a quantized value is , the upper limit is , there are  levels of quantization, and the probability density function for the input analog values is .