Source: http://syllabus.cs.manchester.ac.uk/ugt/2017/COMP24111/materials/slides/Naive-Bayes.pdf