Finding Least Square Solutions for Singular Matrices

  • Thread starter Thread starter Punkyc7
  • Start date Start date
  • Tags Tags
    Square
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
Punkyc7
Messages
415
Reaction score
0
Find the least square solutions x* of the system Ax=bA=[1 3
2 6]

b=[5
0]A^tAx=A^tbSo I get down to
[5 15 [x1 [5
15 45] x2] = 15]

so i get [1
0]

The book says the solution is
[1-3s
s]

not sure were that came from
 
Last edited:
Physics news on Phys.org
Just plug into the formula the only problem is that the matrix I get by multiplying A transpose A cannot not be inverted
 
Punkyc7 said:
Just plug into the formula the only problem is that the matrix I get by multiplying A transpose A cannot not be inverted

That's because ATA is singular, which in this case means an infinite number of solutions. If you multiply things out by hand you can get the answer.