Source: https://www.cs.waikato.ac.nz/~tcs/DataMining/TEKBAC2019/Handouts/newChapter2handouts.pdf