Shedding light on uncertainties in machine learning: formal derivation and optimal model selection Jul 17, 2025