Effect of Weight Quantization on Learning Models by Typical Case Analysis