6,576 views
2 2 votes

We have data on 1000 pieces of fruit. The fruit being a Banana, Orange or some Other fruit and imagine we know 3 features of each fruit, whether it’s long or not, sweet or not and yellow or not, as displayed in the table below:

A piece of an unknown fruit with these features are provided: Long, Sweet and Yellow. 

Calculate probability of each of these 3 classes based on Naive Bayes Classification algorithm and report the class.

50% Accept Rate Accepted 31 answers out of 62 questions

1 Answer

Best answer
0 0 votes

You can see the step-by-step solution for this question here. The solution can include Laplace Smoothing as well, but the result will not change. For Laplace smoothing, 1 should be added to the numerator of probability and in the denominator, you should add the number of unique features (Long, Sweet, Yellow are unique features, therefore 3 should be added in the denominators).

Related questions

2 2 votes
1 answers 1 answer
4.9k
4.9k views
tofighi asked Jun 26, 2019
4,859 views
We want to use Naive Bayes for tagging documents. It is a classification task that we want to assign a class (tag) to each string. We currently have two tags: Sport and N...
3 3 votes
2 answers 2 answers
8.4k
8.4k views
tofighi asked Apr 4, 2019
8,401 views
The scatter plot of Iris Dataset is shown in the figure below. Assume Softmax Regression is used to classify Iris to Setosa, Versicolor, or Viriginica using just petal le...
3 3 votes
1 answers 1 answer
10.8k
10.8k views
tofighi asked Mar 21, 2019
10,784 views
The scatter plot of Iris Dataset is shown in the figure below. Assume Softmax Regression is used to classify Iris to Setosa, Versicolor, or Viriginica using just petal le...
2 2 votes
1 answers 1 answer
14.3k
14.3k views
tofighi asked Jan 27, 2020
14,278 views
In the following example, calculate Accuracy, Precision, Recall or F1?https://i.imgur.com/OezFpqC.png
5 5 votes
1 answers 1 answer
9.1k
9.1k views
tofighi asked Jun 26, 2019
9,103 views
Assume we have a $5\times5$ px RGB image with 3 channels respectively for R, G, and B. IfR2000012001201021210101020G0212211100002202002002111B0100111201102021011012112 We...