Professional Documents
Culture Documents
Assignment 3: Introduction To Machine Learning Prof. B. Ravindran
Assignment 3: Introduction To Machine Learning Prof. B. Ravindran
1
4. We have two classes in our dataset. The two classes have the same mean but different
variance.
(a) LDA can classify them perfectly.
(b) LDA can NOT classify them perfectly.
(c) LDA is not applicable in data with these properties
(d) Insufficient information
Sol. (b) If the classes have the same mean, they will not be linearly separable.
5. We have two classes in our dataset. The two classes have the same variance but different
mean.
(a) LDA can classify them perfectly.
(b) LDA can NOT classify them perfectly.
(c) LDA is not applicable in data with these properties
(d) Insufficient information
Sol. (d) Depending on the actual values of the mean and variance, the two classes may or
may not be linearly separable.
(a) no
(b) yes
(c) insufficient information
Sol. (b)
Instead of considering the dependent variable directly, we can transform the independent
variable by considering the exponent of each value. Thus, on the X-axis, we can plot values
of eX , and on the Y-axis, we can plot values of Y . Since, the relation between the dependent
and the transformed independent variable is linear, the value of slope and intercept can be
estimated using linear regression.
2
8. What might happen to our logistic regression model if the number of features is more than
the number of samples in our dataset?
Sol. (c)
Refer to the lecture.
9. Logistic regression also has an application in
Sol. (b)
Refer to the lecture.
10. Consider the following datasets:
Dataset 1
Dataset 2
Which of these datasets can you achieve zero training error using Logistic Regression (without
any additional feature transformations)?
3
(d) None of the datasets
Sol. (b)
Dataset 1 is linearly separable, so we will get zero training error when using logistic regression.
Dataset 2 is not linearly separable, so we will not get zero training error when using logistic
regression.