Assignment 3 Solution
Assignment 3 Solution
1. In a multiclass classification problem, Bayes classifier assigns an instance to the class corresponding
to: (1 Mark)
Ans: A
B. Attributes are statistically dependent on one another given the class value.
Ans: B
Explanation: Attributes are statistically independent of one another given the class value.
3. A fair coin is tossed n times. The probability that the difference between the number of heads and
tails is (n-3) is: (1 mark)
A. 2-n
B. 0
C. C(n,n-3)*2-n
D. 2-n+3
Ans: B
Explanation: Let the number of heads = h then the number of tails will be n-h. The difference between
them is n-3 so it is
h – (n - h) = n-3
h = (2n-3)/2 = n – 3/2 which is not an integer value, therefore, the probability of the event is 0.
4. Three companies supply bulbs. The percentage of bulbs supplied by them and the probability of them
being defective is given below:
A. 0.1
B. 0.2
C. 0.3
D. 0.4
Ans: D
P(D) = P(D|A) * P(A) + P(D|B) * P(B) + P(D|C) * P(C) = 0.01*0.6 + 0.02*0.3 + 0.03*0.10 = 0.015
A. 0
B. 2/3
Ans: B
Explanation: P(Z|X∩Y) = P(Z|X) since P(Y) = 1. Therefore, P(Z|X∩Y) = P(Z∩X)/P(X) = 0.2/0.3= 2/3
For questions 6-7, consider the following hypothetical data regarding the hiring of a person.
6. Using Naïve Bayes determine whether a person with GPA=High, Effort=Some, and Confidence=Yes be
hired: (2 marks)
A. Yes
B. No
Ans: A
Explanation:
7. Using Naïve Bayes determine whether a person with Effort=lots, and Confidence=No be hired: (2
marks)
A. Yes
B. No
Ans: A