Statistical methods with application to machine learning and artificial intelligence