Sign in

username:

password:



Not a member?

Search Online Books



Search tips

Free Online Books

Ads

Chapters

See Also

Embedded SystemsFPGAElectronics
Chapter Contents:

Search Spectral Audio Signal Processing

  

Book Index | Global Index


Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?

  

Geometrical Interpretation of Least Squares

Typically, the number of frequency constraints is much greater than the number of design variables (filter taps). In these cases, we have an overdetermined system of equations (more equations than unknowns). Therefore, we cannot generally satisfy all the equations, and we are left with minimizing some error criterion to find the ``optimal compromise'' solution.

In the case of least-squares approximation, we are minimizing the Euclidean distance, which suggests the geometrical interpretation shown in Fig.E.28.


\begin{psfrags}
% latex2html id marker 38400\psfrag{Ax}{$A\hat{x}$}\psfrag{...
...eometrical interpretation of orthogonal projection.}
\end{figure}
\end{psfrags}
Thus, the desired vector $ b$ is the vector sum of its best least-squares approximation $ A{\hat x}$ plus an orthogonal error $ e$:

$\displaystyle b = A \hat{x} + e.
$

In practice, the least-squares solution $ {\hat x}$ can be found by minimizing the sum of squared errors:

$\displaystyle \hbox{Minimize}_x \Vert e\Vert _2 = \Vert b-Ax\Vert _2
$

Figure E.28 suggests that the error vector $ b-A\hat{x}$ is orthogonal to the column space of the matrix $ A$, hence it must be orthogonal to each column in $ A$:

$\displaystyle A^T(b-A\hat{x})=0 \Rightarrow A^TA\hat{x}=A^Tb
$

This is how the orthogonality principle can be used to derive the fact that the best least squares solution is given by

$\displaystyle \hat{x} = (A^TA)^{-1}A^T b = A^\dagger b
$

Note that the pseudo-inverse $ A^\dagger$ projects the vector $ b$ onto the column space of $ A$.

(Note: To obtain the best numerical algorithms for least-squares solution in Matlab, it is usually better to use ``x = A $ \backslash$ b'' rather than explicitly computing the pseudo-inverse as in ``x = pinv(A) * b''.)


Previous: Least Squares Optimization
Next: Matlab Support for Least-Squares FIR Filter Design

Order a Hardcopy of Spectral Audio Signal Processing


About the Author: Julius Orion Smith III
Julius Smith's background is in electrical engineering (BS Rice 1975, PhD Stanford 1983). He is presently Professor of Music and Associate Professor (by courtesy) of Electrical Engineering at Stanford's Center for Computer Research in Music and Acoustics (CCRMA), teaching courses and pursuing research related to signal processing applied to music and audio systems. See http://ccrma.stanford.edu/~jos/ for details.


Comments


No comments yet for this page


Add a Comment
You need to login before you can post a comment (best way to prevent spam). ( Not a member? )