* Source: http://www.inf.u-szeged.hu/~ormandi/ai2/06-naiveBayes-example.pdf * * Variable 1 = Color * 0 = Red * 1 = Yellow * Variable 2 = Type * 0 = Sports * 1 = SUV * Variable 3 = Origin * 0 = Domestic * 1 = Imported * Objective = Stolen * 0 = No * 1 = Yes * * Given data: * 1 Red Sports Domestic Yes * 2 Red Sports Domestic No * 3 Red Sports Domestic Yes * 4 Yellow Sports Domestic No * 5 Yellow Sports Imported Yes * 6 Yellow SUV Imported No * 7 Yellow SUV Imported Yes * 8 Yellow SUV Domestic No * 9 Red SUV Imported No * 10 Red Sports Imported Yes * * Test case: * "We want to classify a Red Domestic SUV" * * Answer: * "Since 0.069 > 0.037, our example gets classified as ’NO’" * 0,0,0,1 0,0,0,0 0,0,0,1 1,0,0,0 1,0,1,1 1,1,1,0 1,1,1,1 1,1,0,0 0,1,1,0 0,0,1,1