Docsity

Practice Problems for Quadratic Fitting and Linear Algebra - Prof. John Elton, Exams of Mathematics

Toggle sidebar
bg1
1
Here are some practice problems for test 5, taken from old exams or practice material.
1. Given the data points (-2,0), (-1,0), (1,0), (2,2) , find a, b, c so that the quadratic
a + bx + cx2 best fits the data in the least-squares sense.
. 2. Given the data points (-2,3), (-1,1), (0,-1), (1,1), (2,4) , find a, b, c so that the quadratic
a + bx + cx2 best fits the data in the least-squares sense.
3. Let A =
1211
1110
0101
Find dim ker(A), dim Img(A), dim ker(At), dim Img(At), dim (Img(A))⊥.
4. Find a basis for ker(A) where A =
123
012
321
How many vectors in a basis for Img(A) (do not find them) .
5. (a) Find a basis for the kernel of the matrix B =
0111
1010
0101
.
(b). Find a basis for Img(A) by row-reducing At ,where A =
−
−
101
210
111
. (I am asking you to
do it this way, though it is not the only way: another way is to row-reduce A and keep the pivotal
columns of A, as you probably know).
(c) If the kernel of a matrix M contains some vector which is not 0, what can you say about the
columns of M?
6. Suppose A is a 3x5 matrix, and dim ker(A) = 2.
(a) What is dim Img(A)? Explain.
(b) What is dim Img(At)? Explain.
(c) What is dim ker(At)? Explain.
(d) ker(A) is the same space as (circle all that are true):
(i) Img(A)⊥ (ii) (span of rows of A)⊥ (iii) Img(At)⊥
7. Find a basis for ker(A) and also find a basis for Img(A) where
A =
12 11
13 22
2200
−


−


−−

Also state dim (ker(A)) and dim(Img(A)), and check that
their sum is what you expected.
pf3

Partial preview of the text

Download Practice Problems for Quadratic Fitting and Linear Algebra - Prof. John Elton and more Exams Mathematics in PDF only on Docsity!

Here are some practice problems for test 5, taken from old exams or practice material.

  1. Given the data points (-2,0), (-1,0), (1,0), (2,2) , find a, b, c so that the quadratic a + bx + cx^2 best fits the data in the least-squares sense. . 2. Given the data points (-2,3), (-1,1), (0,-1), (1,1), (2,4) , find a, b, c so that the quadratic a + bx + cx^2 best fits the data in the least-squares sense.
  2. Let A = 

Find dim ker(A), dim Img(A), dim ker(At^ ), dim Img(At^ ), dim (Img(A))⊥.

  1. Find a basis for ker(A) where A = 

How many vectors in a basis for Img(A) (do not find them).

  1. (a) Find a basis for the kernel of the matrix B = 

(b). Find a basis for Img(A) by row-reducing At^ ,where A = 

. (I am asking you to

do it this way, though it is not the only way: another way is to row-reduce A and keep the pivotal columns of A, as you probably know). (c) If the kernel of a matrix M contains some vector which is not 0 , what can you say about the columns of M?

  1. Suppose A is a 3x5 matrix, and dim ker(A) = 2. (a) What is dim Img(A)? Explain. (b) What is dim Img(At^ )? Explain. (c) What is dim ker(At^ )? Explain. (d) ker(A) is the same space as (circle all that are true): (i) Img(A)⊥^ (ii) (span of rows of A)⊥^ (iii) Img(A t^ )⊥

7. Find a basis for ker(A) and also find a basis for Img(A) where

A =

Also state dim (ker(A)) and dim(Img(A)), and check that

their sum is what you expected.

  1. Let A =

(a) Find Q and R such that A = QR, where Q has orthonormal columns and

R is upper triangular. ( Important : do not "presimplify" the columns of A, just apply Gram- Schmidt directly. (b) Let S be the space spanned by the column vectors of A (it is a subspace of R^4 ). Let y = [0,0,0,1]t^. Find the vector w in S that is closest to y. (c) Since the vector w from (b) is in S, w = A x for some vector x. Find x. (d) Find the orthogonal projection of y onto S⊥^ (this is trivial from (b) if you understand projections , but I predict some of you will do it the hard way).

  1. Let A =



(a) Find Q and R such that A = QR, where Q has orthonormal

columns and R is upper triangular. ( Important : do not "presimplify" the columns of A, just apply Gram-Schmidt directly. Note many of the col. pairs are already perpendicular, and cols 1 & 2 are unit vectors, so there is very little work to do if you don't make a mistake). (20 pts) (b) Solve the system R x = Qt y for x , where R and Q are from (a) and y = [1,0,0,0]t^. (10 pts) (c) Explain the significance of (do not compute) the vector A x , where x is from (b). (5 pts) (hint: note R x = Qt y ⇒ QR x = QQt y ⇒ A x = QQt y , and you know what QQ t y is. Your answer should be " A x is the orthogonal projection of __ onto ____").

  1. (a) Find the perpendicular projection matrix P onto the solution set (a plane) S of the equation

a ⋅ x = 0, where a =

. (One easy way to do this is to first find the orthogonal projection P⊥

onto S⊥; this is easy because it is 1-dimensional, it is the line with direction vector a; then P = I - P⊥).

Which vector in S is closest to the vector y =

? (answer: it is P (^) S y ). What is the distance from

y to S? (b) Let's find how to reflect a vector across the plane S. Think this way: (draw a picture to illustrate) The vector PS y is the perpendicular projection of y onto S. The vector pointing from y to the vector PS y is P (^) S y – y (recall that for any two vectors u and v , the vector pointing from u to v is v – u ). So if we add this vector to y we will wind up on the other side of the plane, an equal distance away from the plane. Thus the reflection of y across the plane is RS y = y + 2(PS y

- y ) = 2PS y – y. Thus the matrix representing the reflection across S is RS = 2PS – I.