Professional Documents
Culture Documents
Assignment
Assignment
3. Suppose u1 and u2 are unit vectors in the direction of a1 and a2. What is the relation between
cosine(a1 , a2.) and cosine(u1 , u2)?
9. Consider the 3 x 3 matrix Data that contains 3 datapoints. Assume, the first two columns
represent values for features x1 and x2 and the last column contains the target output y.
[ ]
2 −2 5
Data= 1 − 1 4
0 2 2
(i) Find the normal equations for the least square regression problem for this data.
(ii) Solve the normal equations using Gaussian Elimination.
10. Consider the data of 5 students. We would like to predict the marks obtained in the final
exam from the other variables. How would you set up the least square regression equation?
Write down the normal equation.