Question: Polynomial classifier with one feature. Generate 2 0 0 points x ( 1 ) , dots, x ( 2 0 0 ) , uniformly spaced

Polynomial classifier with one feature. Generate 200 points x(1),dots,x(200), uniformly
spaced in the interval -1,1, and take
y(i)={+1,-0.5x(i)0.1or0.5x(i)-1otherwise
for i=1,dots,200. Fit polynomial least squares classifiers of degrees 0,dots,8 to this
training data set.
(a) Evaluate the error rate on the training data set. Does the error rate decrease when
you increase the degree?
(b) For each degree, plot the polynomial tilde(f)(x) and the classifier hat(f)(x)=sign(tilde(f)(x)).
(c) It is possible to classify this data set perfectly using a classifier hat(f)(x)=sign(tilde(f)(x))
and a cubic polynomial
tilde(f)(x)=c(x+0.5)(x-0.1)(x-0.5),
for any positive c. Compare this classifier with the least squares classifier of degree
3 that you found and explain why there is a difference.
 Polynomial classifier with one feature. Generate 200 points x(1),dots,x(200), uniformly spaced

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 Databases Questions!