MATH 323 Lecture 21

From Notes
Jump to navigation Jump to search

« previous | Thursday, November 8, 2012 | next »


Least Squares Problem

Given subspace and a vector , find the closest approximation . is a vector projection, and is the α-scalar projection.

When represented by , is the column space of , and is the vector such that . We get is the residual vector.

Normal Equation

Theorem 5.3.2

is a matrix of rank (same rank as number of columns). Then the normal equation has a unique solution given by

And is the unique least squares solution to the sysetm .


Proof

Based on premise that is nonsingular.

Assume we have some vector . For to be nonsingular, must be the only solution.

We know that

  • and

Therefore .

Q.E.D.

Corollary

We already know that , and , so

The projection matrix is interesting because :

Example

Overdetermined system

Regression

Given a set of measurements at points , each set of values defines a point at .

Linear Regression

Find equation such that that approximates the system of equations

Solution for is given by


Inner Product Spaces

Vector space . Suppose we have a function such that for all , the inner product of (notation ) is a real number.

We want to have the following properties:

  1. and is equal to 0 iff
  2. (commutativity)
  3. Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\langle \alpha \, x + \beta \, y, z \right\rangle = \alpha \left\langle x,z \right\rangle + \beta \left\langle y,z \right\rangle} and the same applies for the second component.

Example 1

, is the scalar product.

Given weights such that ,

Example 2

Given two matrices , let .

Example 3

Given two functions , let


  1. and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\langle f, f \right\rangle = \int_a^b f^2(x) \,\mathrm{d}x = 0 \iff f \equiv 0}

Properties

Given a vector space Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle V} and an inner product function Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\langle \cdot , \cdot \right\rangle}

We can redefine:

  • length / norm: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\| V \right\| = \sqrt{\left\langle v,v \right\rangle}}
  • Orthogonality: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u \perp v \iff \left\langle u, v \right\rangle = 0}
  • Scalar projection: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \alpha = \frac{\left\langle u,v \right\rangle}{\left\|v\right\|}}
  • Vector projection: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p = \alpha \cdot \left( \frac{1}{\left\|v\right\|} \, v \right) = \frac{\left\langle u,v \right\rangle}{\left\langle v,v \right\rangle} \, v}

Theorem 5.4.1

The Pythagorean Law

If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u \perp v} , then Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \|u + v \|^2 = \|u\|^2 + \|v\|^2}

Proof

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \|u+v\|^2 &= \langle u+v, u+v \rangle \\ &= \langle u,u \rangle + \langle u,v \rangle + \langle v,u \rangle + \langle v,v \rangle \\ &= \|u\|^2 + 0 + 0 + \|v\|^2 \end{align}}


Orthogonality of Functions

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 1 \perp x} , where the inner product is defined as Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \langle f,g \rangle = \int_{-1}^1 f(x) \, g(x) \, \mathrm{d}x}

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \langle 1, x \rangle = \int_{-1}^1 1 \cdot x \,\mathrm{d}x = 0}


Theorem 5.4.2

The Cauchy-Schwarz Inequality

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left| \left\langle u,v \right\rangle \right| \le \left\| u \right\| \left\| v \right\|}

Holds iff Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle v} are linearly dependent.