MATH 417 Lecture 24

From Notes
Jump to navigation Jump to search

« previous | Thursday, April 17, 2014 | next »


Suppose we want to find a linear approximation f(x)=a0+a1x for the points (1,1),(2,2),(3,32),(4,32):

Hence the coefficients to our control points a0 and a1 are

A=[11121314]

and our values are

b=[123232]

We compute ATA=[4101030] and solve the following for x=[a0a1]:

ATAx=ATb

x=[54110]

Hence our equation is: f(x)=54+110x

General Case

for fn, Π is a subspace spanned by ϕ1,ϕ2,,ϕn, where ϕ's are linearly independent.

We wish to approximate fn by pΠ. We do so by minimizing the value of fp22 for all pΠ. This is called the best least squares fit

p is just the projection of f onto Π.

Normal equations are:

ATA=[ϕ1,ϕ1ϕ1,ϕ2ϕ1,ϕnϕ2,ϕ1ϕ2,ϕ2ϕ2,ϕnϕn,ϕ1ϕn,ϕ2ϕn,ϕn]

Residual (or rejection) belongs to the subspace perpendicular to Π, or Π.

Theorem. If fp,q=0 for all qΠ, then p is the minimizer for fp22.

Proof. If p is the projection of f onto a subspace, then fp is the shortest vector from Π to f. The shortest vector from Π to p is orthogonal to Π (otherwise fp would not be minimized). Hence pq is orthogonal to fp.

Take qp and compute

fq2=fq,fq=fp+pq,fp+pq=fp2+fp,pq+pq,fp+pq2=fp2+pq2+2fp,pq0=fp2+pq2

Theus p=q minimizes the value of pq2, and thus fq2=fp2

quod erat demonstrandum

Special Case

Let Π be spanned by an orthonormal basis ψ1,,ψk, and let Π be spanned by an orthonormal basis ψk+1,,ψn. Thus n=ΠΠ.

Now fn is given by f=i=1nf,ψiψi.

To find the projection, we just take the components that are members of Π:

projΠ(f)=i=1kf,ψiψi