Fig. 5
From: Comparing different supervised machine learning algorithms for disease prediction

An illustration of the Naïve Bayes algorithm. The ‘white’ circle is the new sample instance which needs to be classified either to ‘red’ class or ‘green’ class