Source: https://www.irit.fr/~Jerome.Mengin/teaching/mach-learn/ap-regles_diapos.pdf