Source: https://www.cs.waikato.ac.nz/~tcs/DataMining/Short/CH2_2up.pdf