Selection of stable varieties by minimizing the probability of disaster