Source: http://www.xavierdupre.fr/app/mlstatpy/helpsphinx/mlstatpy_doc.pdf