Source: https://helios.mi.parisdescartes.fr/~lomn/Cours/DM/Material/ComplementsCours/Cours-Data-Mining.pdf