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 f∈ℝn, Π is a subspace spanned by ϕ1,ϕ2,…,ϕn, where ϕ's are linearly independent.

We wish to approximate f∈ℝn by p∈Π. We do so by minimizing the value of ‖f−p‖22 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 ⟨f−p,q⟩=0 for all q∈Π, then p is the minimizer for ‖f−p‖22.

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

Take q≠p and compute

‖f−q‖2=⟨f−q,f−q⟩=⟨f−p+p−q,f−p+p−q⟩=‖f−p‖2+⟨f−p,p−q⟩+⟨p−q,f−p⟩+‖p−q‖2=‖f−p‖2+‖p−q‖2+2⟨f−p,p−q⟩⏟0=‖f−p‖2+‖p−q‖2

Theus p=q minimizes the value of ‖p−q‖2, and thus ‖f−q‖2=‖f−p‖2

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 f∈ℝn is given by f=∑i=1n⟨f,ψi⟩ψi.

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

projΠ(f)=∑i=1k⟨f,ψi⟩ψi