Elements of Statistical Inference