Compute prob ratios in log space.