Homework 12

Table of Contents

The following assignment is due Tuesday 12/10 by 11:59 PM. You should submit all your written solutions to Gradescope as a single pdf. Follow the instructions in the programming problem for code solutions.

1. Least Squares

A=[121111]b=[420]

For this problem, you must do all calculations by hand and show your work.

1.1. (2 points)

Determine the normal equations of Ax=b.

1.2. (2 points)

Determine a least-squares solution of Ax=b.

1.3. (1 points)

Is the least-squares solution you determined in the previous part unique? Justify your answer.

2. Linear Models

We will use the following dataset for this problem.

{(2,0),(1,5),(0,13),(1,9),(2,5),(3,0)}

2.1. (2 points)

Set up a linear system whose least-squares solution determines the parameters for the least-squares fit model of the form f(x)=β1cosx+β2sinx+β3x+β4 (in other words, determine the design matrix and the vector of labels for the given data and model). Round the entries of the design matrix to the nearest hundredth.

2.2. (2 points)

Determine the least-squares fit model for the given data. Round the parameters to the nearest hundredth.

3. Quadratic Forms

Consider the following quadratic form.

3x12+3x22+5x32+6x1x2+2x1x3+2x2x3

3.1. (2 points)

Determine the underlying matrix for A.

3.2. (2 points)

Determine maxx=1xTAx, that is the maximum value of xTAx. You may use a computer for this part, but you must describe your process and justify your answer.

3.3. (2 points)

Determine argmaxx=1xTAx, that is unit vector which attains the maximum value. For this part, you must do calculations by hand and show your work.

4. SVD (Extra Credit)

A=[322322]

4.1. (1 point)

Determine a singular value decomposition of A. For this part, you must do calculations by hand and show your work.

4.2. (1 point)

Determine a singular value decomposition of AT. (Hint. Don't do all the work again)