Mindscrape
- 1,854
- 1
This is a pretty basic question, but I just want to make sure. The question is to find the least square solution for
\newcommand{\colv}[2] {\left(\begin{array}{c} #1 \\ #2 \end{array}\right)}<br /> \left(<br /> \begin{array}{cc}<br /> 1 & 2\\<br /> 2 & 4<br /> \end{array}<br /> \right) x = \colv{2}{2}
I can just find the orthogonal projection of the two vectors, right? In other words, use the find w = a_1\mathbf{v_1} + a_2\mathbf{v_2}
\newcommand{\colv}[2] {\left(\begin{array}{c} #1 \\ #2 \end{array}\right)}<br /> a_1 {\colv{1}{2}} + a_2 {\colv{2}{4}} = {\colv{w_1}{w_2}}
where
a_1 = \frac{<b,v_1>}{||v_1||^2}
and
a_2 = \frac{<b,v_2>}{||v_2||^2}
I don't really want to use the method with positive definite because the numbers turn out sticky.
Then solution can be expressed as \mathbf{z} = \mathbf{b} - \mathbf{w}, such that z is orthogonal to the range of K?
\newcommand{\colv}[2] {\left(\begin{array}{c} #1 \\ #2 \end{array}\right)}<br /> \left(<br /> \begin{array}{cc}<br /> 1 & 2\\<br /> 2 & 4<br /> \end{array}<br /> \right) x = \colv{2}{2}
I can just find the orthogonal projection of the two vectors, right? In other words, use the find w = a_1\mathbf{v_1} + a_2\mathbf{v_2}
\newcommand{\colv}[2] {\left(\begin{array}{c} #1 \\ #2 \end{array}\right)}<br /> a_1 {\colv{1}{2}} + a_2 {\colv{2}{4}} = {\colv{w_1}{w_2}}
where
a_1 = \frac{<b,v_1>}{||v_1||^2}
and
a_2 = \frac{<b,v_2>}{||v_2||^2}
I don't really want to use the method with positive definite because the numbers turn out sticky.
Then solution can be expressed as \mathbf{z} = \mathbf{b} - \mathbf{w}, such that z is orthogonal to the range of K?
Last edited: