Quiz1 Sol
Quiz1 Sol
If the estimated probabilities for the three classes 0, 1, 2 are p = [0.3, 0.5, 0.2],
respectively, which class would be decided? (3 marks)
Ans: c = 2
c = arg minj ∑k p[k]Lkj = arg minj [1.4, 1.4, 0.8]
2
1 e−x /2 2 2
= ∫ N (x; 0, 1) ln 2π
dx = ln 3 + E[ x +4−4x − x
]
1 2 6 2
e−(x−2) /6
2
5. Consider a 3-class classification problem in which the loss incurred when an input
vector from class k is classified as belonging to class j is given by the loss matrix
⎡ 0 4 1 ⎤
Lkj = 2 0 1 .
⎣ 2 0 ⎦
Draw the decision regions for the three classes on the plane whose axes are
p(c = 0∣x), p(c = 1∣x). (5 marks)
Ans:
Let p(c∣x) = [a, b, 1 − a − b]. The decision will be c = arg min[2 − 2a, 3a − b + 1, a + b].
For decision to be c = 0:
2 − 2a < 3a − b + 1 and 2 − 2a < a + b
i.e., 1 − 5a + b < 0 and 2 − 3a − b < 0
For decision to be c = 1:
3a − b + 1 < 2 − 2a and 3a − b + 1 < a + b
i.e., 1 − 5a + b > 0 and 2a − 2b + 1 < 0
For decision to be c = 2:
a + b < 2 − 2a and a + b < 3a − b + 1
i.e., 2 − 3a − b > 0 and 2a − 2b + 1 > 0
6. A random variable U follows uniform distribution, p (u) = 1, u ∈ (0, 1). Find a
U
−1
x=F (u)
Now, F(x) = ∫ λe dt = (1 − e
x −λt −λx
)
sd
0