Routines for implementing various statistical and machine learning techniques.