Skip to main content
added 2 characters in body
Source Link
César
  • 339
  • 1
  • 3
  • 7

Let $A$ and $B$ be any real matrices. I would like to find the solution of a linear system $Ax=B$ using the SVD decomposition of $A$ given by $A = U S V^t$. If I am not very wrong, I believe I can obtain this solution using

$\ \ \ X = VL^tUB$$\ \ \ X = VL^tU^tB$

in which

$\ \ \ L_{ij} = \begin{cases} 1/S_{ij} && \text{if} S_{ij} \not= 0 \\\\ 0 && \text{otherwise} \end{cases} $

This seems to work. However, for the case when $A$ has more columns than rows, I would like to find not only the best solution (in the least squares sense), but also the solution which has minimum norm. How can I do that?

$\\\\\\$

For example, by taking

$ \ \ \ A = \begin{pmatrix} 1 & 2 & 3 \\\\ 4 & 5 & 6 \end{pmatrix} \ \ \ \ \text{and} \ \ \ B = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix} $

The aforementioned method gives the solution

$\ \ \ \hat{X} = \begin{pmatrix} -2.1667 & -2.6667 & -3.1667 \\\\ 0.3333 & 0.3333 & 0.3333 \\\\ 2.8333 & 3.3333 & 3.8333 \\\\ \end{pmatrix} $

I can verify this is a valid solution by taking

$\ \ \ A\hat{X} = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix}$

However, I am not sure this is the minimum norm solution.

Let $A$ and $B$ be any real matrices. I would like to find the solution of a linear system $Ax=B$ using the SVD decomposition of $A$ given by $A = U S V^t$. If I am not very wrong, I believe I can obtain this solution using

$\ \ \ X = VL^tUB$

in which

$\ \ \ L_{ij} = \begin{cases} 1/S_{ij} && \text{if} S_{ij} \not= 0 \\\\ 0 && \text{otherwise} \end{cases} $

This seems to work. However, for the case when $A$ has more columns than rows, I would like to find not only the best solution (in the least squares sense), but also the solution which has minimum norm. How can I do that?

$\\\\\\$

For example, by taking

$ \ \ \ A = \begin{pmatrix} 1 & 2 & 3 \\\\ 4 & 5 & 6 \end{pmatrix} \ \ \ \ \text{and} \ \ \ B = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix} $

The aforementioned method gives the solution

$\ \ \ \hat{X} = \begin{pmatrix} -2.1667 & -2.6667 & -3.1667 \\\\ 0.3333 & 0.3333 & 0.3333 \\\\ 2.8333 & 3.3333 & 3.8333 \\\\ \end{pmatrix} $

I can verify this is a valid solution by taking

$\ \ \ A\hat{X} = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix}$

However, I am not sure this is the minimum norm solution.

Let $A$ and $B$ be any real matrices. I would like to find the solution of a linear system $Ax=B$ using the SVD decomposition of $A$ given by $A = U S V^t$. If I am not very wrong, I believe I can obtain this solution using

$\ \ \ X = VL^tU^tB$

in which

$\ \ \ L_{ij} = \begin{cases} 1/S_{ij} && \text{if} S_{ij} \not= 0 \\\\ 0 && \text{otherwise} \end{cases} $

This seems to work. However, for the case when $A$ has more columns than rows, I would like to find not only the best solution (in the least squares sense), but also the solution which has minimum norm. How can I do that?

$\\\\\\$

For example, by taking

$ \ \ \ A = \begin{pmatrix} 1 & 2 & 3 \\\\ 4 & 5 & 6 \end{pmatrix} \ \ \ \ \text{and} \ \ \ B = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix} $

The aforementioned method gives the solution

$\ \ \ \hat{X} = \begin{pmatrix} -2.1667 & -2.6667 & -3.1667 \\\\ 0.3333 & 0.3333 & 0.3333 \\\\ 2.8333 & 3.3333 & 3.8333 \\\\ \end{pmatrix} $

I can verify this is a valid solution by taking

$\ \ \ A\hat{X} = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix}$

However, I am not sure this is the minimum norm solution.

added 1 characters in body
Source Link
César
  • 339
  • 1
  • 3
  • 7

Let $A$ and $B$ be any real matrices. I would like to find the solution of a linear system $Ax=B$ using the SVD decomposition of $A$ given by $A = U S V^t$. If I am not very wrong, I believe I can obtain this solution using

$\ \ \ X = VL^tUB$

in which

$\ \ \ L_{ij} = \begin{cases} 1/S_{ij} && \text{if} S_{ij} \not= 0 \\\\ 0 && \text{otherwise} \end{cases} $

This seems to work. However, for the case when $A$ has more columns than rows, I would like to find not only the best solution (in the least squares sense), but also the solution which has minimum norm. How can I do that?

$\\\\\\$

For example, by taking

$ \ \ \ A = \begin{pmatrix} 1 & 2 & 3 \\\\ 4 & 5 & 6 \end{pmatrix} \ \ \ \ \text{and} \ \ \ B = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix} $

The aforementioned method gives the solution

$\ \ \ \hat{X} = \begin{pmatrix} -2.1667 & -2.6667 & -3.1667 \\\\ 0.3333 & 0.3333 & 0.3333 \\\\ 2.8333 & 3.3333 & 3.8333 \\\\ \end{pmatrix} $

I can verify this is a valid solution by taking

$\ \ \ A\hat{X} = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix}$

However, this seemsI am not to besure this is the minimum norm solution.

Let $A$ and $B$ be any real matrices. I would like to find the solution of a linear system $Ax=B$ using the SVD decomposition of $A$ given by $A = U S V^t$. If I am not very wrong, I believe I can obtain this solution using

$\ \ \ X = VL^tUB$

in which

$\ \ \ L_{ij} = \begin{cases} 1/S_{ij} && \text{if} S_{ij} \not= 0 \\\\ 0 && \text{otherwise} \end{cases} $

This seems to work. However, for the case when $A$ has more columns than rows, I would like to find not only the best solution (in the least squares sense), but also the solution which has minimum norm. How can I do that?

$\\\\\\$

For example, by taking

$ \ \ \ A = \begin{pmatrix} 1 & 2 & 3 \\\\ 4 & 5 & 6 \end{pmatrix} \ \ \ \ \text{and} \ \ \ B = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix} $

The aforementioned method gives the solution

$\ \ \ \hat{X} = \begin{pmatrix} -2.1667 & -2.6667 & -3.1667 \\\\ 0.3333 & 0.3333 & 0.3333 \\\\ 2.8333 & 3.3333 & 3.8333 \\\\ \end{pmatrix} $

I can verify this is a valid solution by taking

$\ \ \ A\hat{X} = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix}$

However, this seems not to be the minimum norm solution.

Let $A$ and $B$ be any real matrices. I would like to find the solution of a linear system $Ax=B$ using the SVD decomposition of $A$ given by $A = U S V^t$. If I am not very wrong, I believe I can obtain this solution using

$\ \ \ X = VL^tUB$

in which

$\ \ \ L_{ij} = \begin{cases} 1/S_{ij} && \text{if} S_{ij} \not= 0 \\\\ 0 && \text{otherwise} \end{cases} $

This seems to work. However, for the case when $A$ has more columns than rows, I would like to find not only the best solution (in the least squares sense), but also the solution which has minimum norm. How can I do that?

$\\\\\\$

For example, by taking

$ \ \ \ A = \begin{pmatrix} 1 & 2 & 3 \\\\ 4 & 5 & 6 \end{pmatrix} \ \ \ \ \text{and} \ \ \ B = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix} $

The aforementioned method gives the solution

$\ \ \ \hat{X} = \begin{pmatrix} -2.1667 & -2.6667 & -3.1667 \\\\ 0.3333 & 0.3333 & 0.3333 \\\\ 2.8333 & 3.3333 & 3.8333 \\\\ \end{pmatrix} $

I can verify this is a valid solution by taking

$\ \ \ A\hat{X} = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix}$

However, I am not sure this is the minimum norm solution.

Source Link
César
  • 339
  • 1
  • 3
  • 7

Minimum norm solution of a least squares using SVD

Let $A$ and $B$ be any real matrices. I would like to find the solution of a linear system $Ax=B$ using the SVD decomposition of $A$ given by $A = U S V^t$. If I am not very wrong, I believe I can obtain this solution using

$\ \ \ X = VL^tUB$

in which

$\ \ \ L_{ij} = \begin{cases} 1/S_{ij} && \text{if} S_{ij} \not= 0 \\\\ 0 && \text{otherwise} \end{cases} $

This seems to work. However, for the case when $A$ has more columns than rows, I would like to find not only the best solution (in the least squares sense), but also the solution which has minimum norm. How can I do that?

$\\\\\\$

For example, by taking

$ \ \ \ A = \begin{pmatrix} 1 & 2 & 3 \\\\ 4 & 5 & 6 \end{pmatrix} \ \ \ \ \text{and} \ \ \ B = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix} $

The aforementioned method gives the solution

$\ \ \ \hat{X} = \begin{pmatrix} -2.1667 & -2.6667 & -3.1667 \\\\ 0.3333 & 0.3333 & 0.3333 \\\\ 2.8333 & 3.3333 & 3.8333 \\\\ \end{pmatrix} $

I can verify this is a valid solution by taking

$\ \ \ A\hat{X} = \begin{pmatrix} 7 & 8 & 9 \\\\ 10 & 11 & 12 \end{pmatrix}$

However, this seems not to be the minimum norm solution.