Assignment 3
Assignment 3
Sol. (a)
Refer to lecture.
Sol. (b)
P r(X = 1) = 47
p(x) 4×7 4
Logit = 1−p(x) = 3×7 = 3
(a) [−∞, ∞]
(b) [−1, 1]
(c) [0, 1]
(d) [−∞, 0]
Sol. (c)
Refer to lecture.
4. If
1 − p(x)
log( ) = β0 + βx
1 + p(x)
What is p(x)?
1+eβ0 +βx
(a) p(x) = eβ0 +βx
1+eβ0 +βx
(b) p(x) = 1−eβ0 +βx
1
eβ0 +βx
(c) p(x) = 1+eβ0 +βx
1−eβ0 +βx
(d) p(x) = 1+eβ0 +βx
Sol. (d)
1 − p(x)
log( ) = β0 + βx
1 + p(x)
1 − p(x)
= eβ0 +βx
1 + p(x)
1 − p(x) = eβ0 +βx + p(x).eβ0 +βx
1 − eβ0 +βx = p(x)(1 + eβ0 +βx )
1 − eβ0 +βx
p(x) =
1 + eβ0 +βx
Sol. (a)
Refer to lecture.
7. We have two classes in our dataset with mean 0 and 1, and variance 2 and 3.
(a) LDA may be able to classify them perfectly.
(b) LDA will definitely be able to classify them perfectly.
(c) LDA will definitely NOT be able to classify them perfectly.
(d) None of the above.
2
Sol. (c)
The two classes overlap and hence cannot be classified perfectly by LDA.
8. We have two classes in our dataset with mean 0 and 5, and variance 1 and 2.
(a) LDA may be able to classify them perfectly.
(b) LDA will definitely be able to classify them perfectly.
(c) LDA will definitely NOT be able to classify them perfectly.
(d) None of the above.
Sol. (a)
Depends on the actual data points.
While performing LDA on it, which line is the most appropriate for projecting data points?
(a) Red
(b) Orange
(c) Blue
(d) Green
Sol. (c)
The blue line is parallel to the line joining the mean of the clusters and will therefore maximize
the distance between the means.
3
10. LDA assumes that the class data is distributed as:
(a) Poisson
(b) Uniform
(c) Gaussian
(d) LDA makes no such assumption.
Sol. (c)
Refer to lecture