quant-1
added probability and logarithm.