http://taleghani.org/improved-probabilities-ratio/