Skip to content Skip to navigation

Connexions

You are here: Home » Content » Orthogonal Projections and the Orthogonality Principle

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of a lens

      Lenses

      A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

      What is in a lens?

      Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

      Who can create a lens?

      Any individual Connexions member, a community, or a respected organization.

      What are tags? tag icon

      Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

    • External bookmarks
  • E-mail the author
  • Rate this module (How does the rating system work?)

    Rating system

    Ratings

    Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

    How to rate a module

    Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

    (0 ratings)

Recently Viewed

This feature requires Javascript to be enabled.

Orthogonal Projections and the Orthogonality Principle

Module by: Richard Baraniuk

Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.

A key problem in DSP:

Given a signal y y find the signal x x from a subspace SS that is the closest to y y.

Example 1

y y is a noisy signal and all xS x S are smooth.

Figure 1
Figure 1 (ortho1.png)
Finding an x x close to y y will approximate it by a noise-free version.

Geometry of the situation via linear algebra. xSx=k=0M1 α k bk x S x k 0 M 1 α k b k where bk b k are a basis for the subspace S S (We assume it is an ONB).

Figure 2: S S is an M-dim hyperplane thru the origin of N N
Figure 2 (ortho2.png)
In general, y y is not S S

The goal is to find xS x S close to y y, which is equivalent to finding αk α k .

We can also measure how close x x is to y y by l 2 l 2 norm error in N N : yx22=n=0N1ynxn2 2 y x 2 n 0 N 1 y n x n 2 Define e=yx e y x as the error vector and minimize l 2 l 2 strength of e e.

Geometry

Figure 3
Figure 3 (ortho3.png)

Exercise 1

How close to choose - to minimize x2 2 x ?

Solution

Choose x x so that error e e is ⊥ to x x and ⊥ to the entire subspace S S.

Figure 4
Figure 4 (ortho4.png)

Orthogonality Principle

e2 2 e is minimum when <e,x>=0 e x 0 Also have s,sS:<e,s>=0 s s S e s 0

Note:

Linear algebra lets us convert a distance problem (minimize l 2 l 2 distance between 2 vectors) into an angle problem (minimize the inner product between error and subspace).

We perform an orthogonal projection of y y onto S S to obtain x x closest to y y in S S.

Now apply the OP to find the optimal approximant xS x S to y y.

Recall: yn y n xSN x S N x=k=0M1 α k bk x k 0 M 1 α k b k where bk b k is an ONB for S S.

Purpose

The goal is that given y y, we must find α k α k 's.

Solution

Apply OP: Define e=yx=yk= α k b k e y x y k α k b k Then: 0=<e,x>=<yk'= α k' bk',k'= α k bk> 0 e x y k' α k' b k' k' α k b k by linearity of OP,

0=<y,k'= α k bk><k'= α k' bk',k'= α k bk>=k'= α k ¯<y,bk>k'= α k ¯<k'=αk'bk',bk>=k'= α k ¯<y,bk><k'= α k' bk',bk>=k'= α k ¯<y,bk>k= α k' <bk',bk>=k'= α k ¯<y,bk> α k 0 y k' α k b k k' α k' b k' k' α k b k k' α k y b k k' α k k' α k' b k' b k k' α k y b k k' α k' b k' b k k' α k y b k k α k' b k' b k k' α k y b k α k (1)
There are 2 ways to set to zero:
  1. All α k =0 α k 0 .
  2. <y,bk> α k =0 y b k α k 0 for all kk chosen.
The solution to (2) is simple: <y,bk> α k =0 y b k α k 0 or α k =<y,bk> α k y b k .

Summary

The optimal l 2 l 2 approximation x=k= α k bk x k α k b k to y y has α k =<y,bk> α k y b k when bk b k are an ONB for the subspace.

Projections

Figure 5
Figure 5 (ortho5.png)
In Figure 5, e=yx e y x , <e,x>=0 e x 0 , <e,S>=0 e S 0 x=k=01 α k bk x k 0 1 α k b k where bk b k is an ONB for SS α k =<y,bk> α k y b k e2 2 e is minimized.

Example 2

2 2 . Find the closest x x to y2 y 2 where x x lies on a 45° angled line.

Figure 6
Figure 6 (ortho6.png)
  1. Find an ONB for SS, S=a,a:x=aa S a a x a a . ONB: b 0 =112 b 0 1 1 2 .
  2. Optimal x=k=00 α k bk= α 0 b0 x k 0 0 α k b k α 0 b 0 α 0 =<y,b0> α 0 y b 0
For example,
Figure 7
Figure 7 (ortho7.png)
in Figure 7, y=37 y 3 7 α 0 =121137=102 α 0 1 2 1 1 3 7 10 2 x=102112=55 x 10 2 1 1 2 5 5

Example 3

Given an ecg signal, yN y N that is a smooth signal contaminated by noise

Figure 8
Figure 8 (ortho8.png)
we would like to make an estimate y ̂ y ̂ that is smooth.
  • Step1: Signal model: y=x+n y x n xS x S , subspace of smooth functions. Find an appropriate subspace. For example, xS x S spanned by the 1st M≪N DCT basis vectors (lowest frequencies). x=k=0M1 α k bk x k 0 M 1 α k b k
    Figure 9: bk b k in SS
    Figure 9 (ortho9.png)
    Figure 10: bk b k not in SS
    Figure 10 (ortho10.png)
    Noise model: Assume for example, that n n is zero-mean Gaussian noise (i.i.d.).
    Figure 11: Note that there is more resemblence with a vector not in SS that to one that is.
    Figure 11 (ortho11.png)
  • Step2: ⊥ project y y onto SS to get estimate y ̂ y ̂ (In statistical DSP, this is called the inear minimum mean squared error estimate - LMMSE est.). y ̂ =k=0N1 β k bk y ̂ k 0 N 1 β k b k β k =<y,bk> β k y b k
    Figure 12: y=x+n y x n
    Figure 12 (ortho12.png)

Exercise 2
2.a)

Why is y ̂ x y ̂ x ?

2.b)

Is y ̂ y ̂ closer to xx than yy is?

2.c)

Using the DCT basis, could you solve this problem in matlab?

2.d)

How do you choose the subspace and the ONB?

Comments, questions, feedback, criticisms?

Send feedback