View the step-by-step solution to:

Question

Hi. How are you? I have these training data points:


Label 0: (-2 , 1) , (-1, 1) , (0, 1) , (1,

1) , (2, 1.10)

Label 1: (1.10 , -2) , (1 , -1) , (1 , 0) , (1, 1) , (1, 2)


And I have these two test data points:


Label 0: (-3 , 1)

Label 1: (1 , 3)


I have to classify the test points using a Naive Bayes Classifier trained on the training points.


The mean for Label 0 training points I calculate to be (0 , 1.02)

The mean for Label 1 training points I calculate to be (1.02 , 0)

The variance for Label 0 training points I calculate to be (2 , 0.0016)

The variance for Label 1 training points I calculate to be (0.0016 , 2)


The Naive Bayes classifier is ( Data - Mean)^2 / Variance for each column/dimension, and then summed. Since we have two columns/dimensions, we will do two calculations for each testing point, sum them, and see which one has the higher value.


Therefore, for Label 0, I get (((-3 - 0)^2)/2) + (((1 - 1.02)^2)/0.0016) and for Label 0, I get (((1 - 1.02)^2)/0.0016) + (((3 - 0)^2)/2).


They both equal 4.75. So, how can I classify them?

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes