

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The solution to finding the least-squares quadratic polynomial for a given set of data points using matrix algebra. Writing down the curvature matrix, computing its condition number, and applying preconditioners to improve the condition number. The original curvature matrix is also shown to be positive definite.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Math 151B Homework #7 – Due Friday 3/
[Note: feel free to use octave/matlab to compute matrix inverses – you don’t have to do them by
hand.]
Consider the data y(−2) = 3, y(−1) = −2, y(0) = 0, y(1) = 4, and y(2) = 5. We want to
find the least-squares quadratic polynomial for these points.
a. Write down the curvature matrix.
Answer:
The curvature matrix is
∑m
i=1 x
0 i
∑m
i=1 x
1 i
∑m
i=1 x
2 ∑^ i m i=1 x
1 i
∑m
i=1 x
2 i
∑m
i=1 x
3 ∑^ i m i=
x
2 i
m i=
x
3 i
m i=
x
4 i
b. What is the condition number of this matrix.
Answer:
||A||∞ = 44 and ||A|| 2 = 37.114.
||A
− 1 ||∞ = 0.62857 and ||A
− 1 || 2 = 0.5302.
K∞(A) = 27.657 and K 2 (A) = 19.678.
c. Use the Jacobi preconditioner, and compute the new condition number.
Answer:
||A||∞ = 3 and ||A|| 2 = 2.46.
− 1 ||∞ = 7.3 and ||A
− 1 || 2 = 5.98.
K∞(A) = 21.9 and K 2 (A) = 14.71.
d. Repeat with the Gauss-Seidel preconditioner.
Answer:
||A||∞ = 3 and ||A|| 2 = 2.27.
||A
− 1 ||∞ = 5.86 and ||A
− 1 || 2 = 5.50.
K∞(A) = 17.6 and K 2 (A) = 12.5.
e. Show that the original curvature matrix is positive definite.
Answer:
One way is to show that all the principle submatrices have positive determinant:
The other way is to compute x
T Ax:
x
T Ax =
x 1 x 2 x 3
x 1
x 2
x 3
= 5 x
2 1 + 20x^1 x^3 + 34x
2 3 + 10x
2 2
= x
2 1 + (4x
2 1 + 20x^1 x^3 + 25x
2 3 ) + 9x
2 3 + 10x
2 2
= x
2 1 + (2x^1 + 5x^3 )
2
2 3 + 10x
2 2
f. Are the preconditioned matrices still positive definite?
Answer:
Jacobi:
Gauss-Seidel: