Question: [ Logistic Regression ] ( 8 pts ) Figure 1 : Data for Logistic Regression Question Let the data distribution, as shown in Figure 1

[Logistic Regression](8 pts)
Figure 1: Data for Logistic Regression Question
Let the data distribution, as shown in Figure1, represent the binary classification
problem where we fit the model p(y=1|x,\theta )=\sigma (\theta _(0)+\theta _(1)x_(1)+\theta _(2)x_(2)). As seen in class,
we do this by minimizing the negative log loss (same as maximizing the likelihood), as
shown below:
L(\theta )=-l(\theta ,D_(train ))
where l(\theta ,D_(train )) represents the log likelihood on the training set.
For the questions below, submit the answer to each question as a separate figure. We
just expect an approximation of the figures if you submit hand-drawn solutions, also
be careful about the clarity of your submitted figures.
(a) Show a decision boundary that possibly would correspond to hat(w)(final weights)
after training the regressor. How many datapoints are wrongly classified on the
training data?
(b) For this part, consider that a strong regularization is applied to the \theta _(0) parameter
and we minimize
L_(0)(\theta )=-l(\theta ,D_(train ))+\lambda \theta _(0)^(2)
Since we apply a strong regularization, assume that \lambda is a very large, so,\theta _(0) is
pulled down all the way to 0, but all other parameters are unregularized. Show
a decision boundary that possibly would correspond to hat(w)\theta _(0)+\theta _(1)x_(1)+\theta _(2)x_(2) when {:x_(1)=x_(2)=0]
(c) Now, heavy regularization is performed only on the \theta _(1) parameter, i.e., we minimize
L_(1)(\theta )=-l(\theta ,D_(train ))+\lambda \theta _(1)^(2)
Show a decision boundary that possibly would correspond to hat(w). How many
datapoints are wrongly classified on the training data?
(d) Finally, heavy regularization is done only on the w_(2) parameter. Show a decision
boundary that possibly would correspond to hat(w). How many datapoints are wrongly
classified on the training data?
[ Logistic Regression ] ( 8 pts ) Figure 1 : Data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!