Uncertainty of mean value and variance obtained from quantized data