Handling Singular matrices in Algorithms

  • Context: Undergrad 
  • Thread starter Thread starter beanz
  • Start date Start date
  • Tags Tags
    Algorithms Matrices
Click For Summary

Discussion Overview

The discussion revolves around methods for handling singular matrices in algorithms, specifically in the context of solving the system Ax=B when A is not square or when the determinant of A is zero. Participants explore various approaches to this problem, including numerical methods and regularization techniques.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses uncertainty about how to approach solving Ax=B when A is singular or not square, seeking alternative methods beyond Gaussian elimination.
  • Another participant questions the initial participant's experience with Gaussian elimination, suggesting they had success with it in a similar numerical problem.
  • A suggestion is made to apply regularization techniques, specifically using the equation (A^T A + λI)x = A^T b, noting that while this avoids singularity, it may bias the solutions away from the actual answers.
  • A later reply clarifies that there is nothing wrong with Gaussian elimination, reiterating the need for various methods to solve the system.
  • Another participant recommends looking into Rank-Deficient Least Squares methods as a potential approach.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to handle singular matrices, with multiple competing views and approaches presented throughout the discussion.

Contextual Notes

Some limitations include the dependence on the definitions of singularity and invertibility, as well as the unresolved implications of regularization on the accuracy of solutions.

beanz
Messages
4
Reaction score
0
Hi All

I'm new to this forum so please be kind :)

I am doing a project on handling singular matrices in algorithms.

Basically what i have to do is to find out how to solve the system Ax=B when A is not square or det(A)=0. Because it does not have an inverse, I don't know what to do or how to approach this problem. Any help would be appreciated


P.S I tried the Guassian Elimination Method, but I have to find another way
 
Physics news on Phys.org
beanz said:
P.S I tried the Guassian Elimination Method, but I have to find another way

What was wrong with gaussian elimination? I had a similar problem a while back (specifically, I needed to do it numerically) and I finally settled on writing a gaussian elimination routine.
 
You could apply some sort of regularization. e.g. instead solve:

[tex] (A^T A + \lambda I) x = A^T b[/tex]

(for your favorite λ > 0)

The system is no longer singular, but the answers you get will be biased away from the actual solutions. In particular, the answer will be unique, instead of getting a bunch of solutions.


I don't think this would help with Gaussian elimination, though. I share SpaceTiger's question -- what's wrong with it?
 
Thanx Guys,

I really appreciated your help. Nothings wrong with the gaussian elimination method. I just have to find out "various" ways of solving the system and tha Gaussian Elimination is just another method.

I have another question. Consider A , an n*n matrix which is invertible, and A^-1, its inverse. If A is transposed, how would it affect A^-1. (in other words how can i find the inverse of the Transpose of A without solving [A|I])

Thanx in advence
 
Look up Rank-Deficient Least Squares methods.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 39 ·
2
Replies
39
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K