How to improve the 3 x 3 matrix before Inverse

  • Thread starter Thread starter kaizen.moto
  • Start date Start date
  • Tags Tags
    Inverse Matrix
Click For Summary
SUMMARY

The discussion focuses on addressing the issue of a "badly inverse conditioned matrix" when attempting to compute the inverse of a 3 x 3 matrix. The matrix in question contains elements with significant numerical discrepancies, leading to potential errors in the inverse calculation. A key solution involves normalizing the matrix rows to identify their near-multiplicative relationships, which can obscure the necessary information for accurate inversion. Additionally, using higher precision numbers or re-evaluating the original data source to ensure greater differentiation among the vectors is recommended to mitigate these issues.

PREREQUISITES
  • Understanding of matrix inversion techniques
  • Familiarity with numerical conditioning and precision issues
  • Knowledge of matrix normalization methods
  • Experience with computational tools for matrix operations, such as Mathematica
NEXT STEPS
  • Learn about matrix normalization techniques in detail
  • Explore higher precision arithmetic in numerical computing
  • Investigate alternative methods for matrix setup to enhance differentiation
  • Study the implications of numerical conditioning on matrix operations
USEFUL FOR

Mathematicians, data scientists, and engineers working with numerical methods and matrix computations, particularly those dealing with issues of matrix inversion and numerical stability.

kaizen.moto
Messages
94
Reaction score
0
Dear all,

After solving the inverse of 3 x 3 matrix, I got a warning which says 'badly inverse conditioned matrix, the result may contain significant numerical errors'.
My question is that how to treat or improve such matrix so that this warning can be eliminated.

For example: the inverse of 3 x 3 matrix:

Inverse[
{1.74923*10^23, 1.14055*10^21, -4.43947*10^22},
{6.89225*10^23, 4.49395*10^21, -1.74923*10^23},
{4.49395*10^21, 2.93024*10^19, -1.14055*10^21}
]

Please let me know if there is a treatment to the matrix before the inverse can be executed.

Thanks for any feedback
 
Physics news on Phys.org
kaizen.moto said:
Dear all,

After solving the inverse of 3 x 3 matrix, I got a warning which says 'badly inverse conditioned matrix, the result may contain significant numerical errors'.
My question is that how to treat or improve such matrix so that this warning can be eliminated.

For example: the inverse of 3 x 3 matrix:

Inverse[
{1.74923*10^23, 1.14055*10^21, -4.43947*10^22},
{6.89225*10^23, 4.49395*10^21, -1.74923*10^23},
{4.49395*10^21, 2.93024*10^19, -1.14055*10^21}
]

Please let me know if there is a treatment to the matrix before the inverse can be executed.

Thanks for any feedback
The problem is that your rows (or equivalently your columns) are all very nearly mutiples of one another. This can be seen by normalizing the rows:

Code:
In[21]:= (m1={
{1.74923*10^23,1.14055*10^21,-4.43947*10^22},{6.89225*10^23,4.49395*10^21,-1.74923*10^23},{4.49395*10^21,2.93024*10^19,-1.14055*10^21}
})//MatrixForm
Out[21]//MatrixForm= (
1.74923*10^23	1.14055*10^21	-4.43947*10^22
6.89225*10^23	4.49395*10^21	-1.74923*10^23
4.49395*10^21	2.93024*10^19	-1.14055*10^21
)
In[23]:= Normalize/@m1//MatrixForm
Out[23]//MatrixForm= (
0.969251	0.00631981	-0.245992
0.969251	0.0063198	-0.245993
0.969251	0.00631992	-0.245993
)
You see they become almost identical. At this point, if all you have is finite precision numbers with the significant digits shown, there is nothing you can do about this. Most of the information needed to invert the matrix is in the last few bits of the numbers. The only way to fix it is to use higher precision.

Alternatively, and probably better, you should look at the original source of these vectors, try to figure out why they're all pointing in almost exactly the same direction, and find a different way of setting the problem up so that the differences come to the fore.
 
Thank you so much for your response.
I got it. It works perfectly with your first suggestion.
Fantastic advice.
 

Similar threads

  • · Replies 34 ·
2
Replies
34
Views
3K
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
696
Replies
1
Views
2K
Replies
1
Views
3K
Replies
6
Views
2K
Replies
2
Views
2K