You are on page 1of 1

Assignment 1 Total Points 150

1. Given two vectors a= [2 3 -1 -4 5]T and b= [1 -3 2 4 -5]T. Find the following

a. norm(a), rms(a), avg(b), std(b) using Matlab (you cannot call the library functions)

b. Find the distance between the points represented by the vectors

c. Find the correlation coefficient of the two vectors by hand and using Matlab.

2. Can the vector c = [4 3 1 0 1]T be represented by a linear combination of the two vectors in problem 1? How can
you use Gaussian elimination to answer this question?

3. Exercise 1.6

4. Exercise 1.9

5. Consider the regression model , where is a 5-vector. Answer the following (justify your answer).
i. What is the size of and ?
ii. True or false: if then does not depend on . Why?
iii. True or false: if then then increasing while keeping all the other 's the same will decrease
y. Why?
iv. True or false: if , then increasing by 10 units and decreasing x5 by 20 units while keeping
all other 's the same, will decease by approximately 10 units. Why?
v. If rms(β) is small, then change of does not effect very much.

6. Exercise 2.1

7. Exercise 2.8

8. Suppose x is an n-vector, and and Express f and g in the form


, where a and b are n-vectors.

9. Show that

10. Exercise 3.4

11. Exercise 3.21

12. Exercise 6.10

13. Exercise 6.13

14. Solve the following system of equations using Gaussian elimination


x1 - 3x2 + x3 = 4
2x1 - 8x2 + 8x3 = -2
-6x1 + 3x2 - 15x3 = 9
15. Use LU-factorization to solve the system of linear equations given in problem 13.

*The exercises are from the VLMS book's latest version https://web.stanford.edu/~boyd/vmls/

You might also like