uncertainty- min function