Uncertainty quantification and minimization