Probability - Pattern Recognition - Assignment, Exercises of Computer Science

These are the Assignment of Pattern Recognition which includes Squared Mahalanobis, Weighted Version, Squared Euclidean, Dimensional Binary Patterns, Euclidean Distance, Satisfy Symmetry etc.Key important points are: Probability, Posterior, Conditional Probabilities, Classify Pencil, Cuisine, Continental, Indian

Typology: Exercises

2012/2013

Uploaded on 03/28/2013

ekanath
ekanath 🇮🇳

3.8

(4)

76 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Assignment
1. Let the probability that a road is wet P(w) = 0.3. Let probability of
rain, P(R) = 0.3. Given that 90% of the time when the roads are wet,
it is because it has rained, and it has rained, calculate the posterior
probability that the roads are wet.
2. Let blue, green, and red be three classes of objects with prior prob-
abilities given by P(blue) = 0.3, P(green) = 0.4, P(red) = 0.3. Let
there be three types of objects: pencils, pens, and paper. Let the class-
conditional probabilities of these objects be given as follows. Use Bayes
classifier to classify pencil, pen, and paper.
P(pencil|green) = 0.3 P(pen|green) = 0.5 P(paper|green) = 0.2
P(pencil|blue) = 0.5 P(pen|blue) = 0.2 P(paper|blue) = 0.3
P(pencil|red) = 0.2 P(pen|red) = 0.3 P(paper|red) = 0.5
3. Consider a two-class (Tasty or nonTasty) problem with the following
training data. Use Naive Bayes classifier to classify
Cook = Asha, Health Status = Bad, Cuisine = Continental
Cook Health-Status Cuisine Tasty
Asha Bad Indian Yes
Asha Good Continental Yes
Sita Bad Indian No
Sita Good Indian Yes
Usha Bad Indian Yes
Usha Bad Continental No
Sita Bad Continental No
Sita Good Continental Yes
Usha Good Indian Yes
Usha Good Continental No
4. Consider the following dataset with three features f1, f2, and f3. Con-
sider the test pattern f1 = a, f2 = c, f3 = f. Classify it using
NNC and Naive Bayes Classifier.
Docsity.com
pf2

Partial preview of the text

Download Probability - Pattern Recognition - Assignment and more Exercises Computer Science in PDF only on Docsity!

Assignment

  1. Let the probability that a road is wet P(w) = 0.3. Let probability of rain, P(R) = 0.3. Given that 90% of the time when the roads are wet, it is because it has rained, and it has rained, calculate the posterior probability that the roads are wet.

2. Let blue, green, and red be three classes of objects with prior prob-

abilities given by P(blue) = 0.3, P(green) = 0.4, P(red) = 0.3. Let

there be three types of objects: pencils, pens, and paper. Let the class-

conditional probabilities of these objects be given as follows. Use Bayes classifier to classify pencil, pen, and paper. P(pencil|green) = 0.3 P(pen|green) = 0.5 P(paper|green) = 0. P(pencil|blue) = 0.5 P(pen|blue) = 0.2 P(paper|blue) = 0. P(pencil|red) = 0.2 P(pen|red) = 0.3 P(paper|red) = 0.

  1. Consider a two-class (Tasty or nonTasty) problem with the following training data. Use Naive Bayes classifier to classify Cook = Asha, Health − Status = Bad, Cuisine = Continental Cook Health-Status Cuisine Tasty Asha Bad Indian Yes Asha Good Continental Yes Sita Bad Indian No Sita Good Indian Yes Usha Bad Indian Yes Usha Bad Continental No Sita Bad Continental No Sita Good Continental Yes Usha Good Indian Yes Usha Good Continental No
  2. Consider the following dataset with three features f 1 , f 2 , and f 3. Con- sider the test pattern f 1 = a, f 2 = c, f 3 = f. Classify it using NNC and Naive Bayes Classifier.

Docsity.com

f 1 f 2 f 3 Class Label a c e No b c f Yes b c e No b d f Yes a d f Yes a d f No

  1. The profit a businessman makes depends on how fresh the provisions are. Further, if there a festival approaching, his profit increases. On the other hand, towards the end of the month, his sales come down. If he makes enough profit, he celebrates Diwali in a big way. Draw the belief network and suggest the likely conditional probability tables for all variables. Using this data, find the probability that the businessman celebrates Diwali big given that the provisions are fresh.

Docsity.com