Why Choose Us?
0% AI Guarantee
Human-written only.
24/7 Support
Anytime, anywhere.
Plagiarism Free
100% Original.
Expert Tutors
Masters & PhDs.
100% Confidential
Your privacy matters.
On-Time Delivery
Never miss a deadline.
QUESTIONS: 1) Which of the following loss functions takes a value of exactly zero for sufficiently large margin? (Hint: see CIML chap 7 for the formal definition of all of these functions) (2 CORRECT ANSWERS SELECT BOTH) Zero/one Hinge Logistic Exponential Squared 2) Consider the following data points, x1 = [−1,1], x2 = [0,2], x3 = [−1, −2], x4 = [2,0] with labels y1=y2=−1, y3=y4=1
QUESTIONS:
1) Which of the following loss functions takes a value of exactly zero for sufficiently large margin? (Hint: see CIML chap 7 for the formal definition of all of these functions) (2 CORRECT ANSWERS SELECT BOTH)
Zero/one
Hinge
Logistic
Exponential
Squared
2) Consider the following data points, x1 = [−1,1], x2 = [0,2], x3 = [−1, −2], x4 = [2,0] with labels y1=y2=−1, y3=y4=1. Given the weight vector and bias as following: w = (w1, w2)T= (1,−1)T, b=0. Calculate gradients with respect to different losses (round your answers to 4 digits after the decimal):
- If you're estimating the bias of a coin that came up heads 10 times and tails 20 times, what is the maximum likelihood estimate for the bias of this coin (p(heads))? Round to the nearest 0.001.
- Suppose X is a vector of 30 boolean attributes and Y is a single discrete-valued random variable that can take on 5 possible values. Let θij=P(Xi|Y=yj). What is the number of independent θij parameters?
- Assume you are using a Naive Bayes classifier to model P (Y|X1, X2), where all random variables are Boolean. What is the size of the weight vector w that represents the equivalent linear classifier?

- The prediction of the classifier for X1 = 0, X2 = 0 is 0. What is the probability of the class?
- The prediction for X1 = 0, X2 = 1 is 0. What is the probability of the class?
- the prediction for X1 = 1, X2 = 0 is 0. What is the probability of the class?
- What is the prediction for X1 = 1, X2 = 1 is 0. What is the probability of the class?
- Consider the classifier trained in the previous questions. What is the expected error rate on any test examples generated using Tables 1 and 2?
- Consider the same scenario as the previous questions, but without the duplicate feature X2. What is the expected error rate of the classifier in this case?
Expert Solution
Please download the answer file using this link
https://drive.google.com/file/d/15dx4i6zFQO224ndxFCPPt7USRP8jgvbV/view?usp=sharing
Archived Solution
You have full access to this solution. To save a copy with all formatting and attachments, use the button below.
For ready-to-submit work, please order a fresh solution below.





