Tutorial - Bayesian Regression and Classifier
Tutorial - Bayesian Regression and Classifier
Q1 : ( 5 points) :
Show that the matrix takes any vector v and projects it onto the
space spanned by the columns of Φ. Use this result to show that the least-squares
solution corresponds to an orthogonal projection of the
vector t onto the manifold S (space span by column of Φ)
Q2 : (15 points) a) [7.5 points] Show that the likelihood function given by
Q3 : [6 Points]
Q 4 : [5 Marks]. Use the following dataset
( https://s3-api.us-geo.objectstorage.softlayer.net/
cf-courses-data/CognitiveClass/ML0101ENv3/labs/china_gdp.csv )
and perform following operations :
1) Read the dataset in python
2) Implement sigmoid function and generate the output y from
the dataset x.
3) Plot the initial predictions against data points
b) [5 Marks] Try the same thing using the Gaussian Basis function.
Q8:
Q 9 : [10 Points] Computes the gradient of the quadratic function of x
given the starting points x=[1,2,3] and then uses the result of the gradient to feed
the next iterations, with new points. Prints out the result of the function at each
iteration till 3rd run. Use Python script to print the results.
Q 11 :
Q 12 :