Measuring Uncertainty in Statistics and Machine Learning