Foundations of Statistical Inference