Exercise 1 Bayesian prediction.
p(xnew | x1 , x2 ,…, xN ,α) |
Exercise 2 Classification. The course website
contains a data set
classification.dat
of (xn, yn ) pairs, where the xn are 2-dimensional vectors
and yn is a binary label.
glm
function in R (check example in predict.glm
).lm
routine in R). Plot the
line where the linear regression function is equal to 0.5.