| New Reply |
badly scaled Matrix?!! |
Share Thread | Thread Tools |
| Sep19-12, 07:48 AM | #1 |
|
|
badly scaled Matrix?!!
Hello,
Scilab help states that If a matrix is badly scaled or nearly singular, a warning message will be displayed: "matrix is close to singular or badly scaled." (http://help.scilab.org/docs/5.3.3/en_US/inv.html) What do these terms mean? "well scaled" , "badly scaled" , "nearly singular" Can anyone please give explanation with example to me? Thanks in advance. |
| Sep19-12, 08:44 AM | #2 |
|
|
"Nearly singular" means that the determinant is very near to 0. Just as trying to "divide" by a matrix whose determinant is 0 would be equivalent to "dividing by 0" giving "infinite" answers, so trying to "divide" by a nearly singular matrix will give extremely large answers, perhaps larger than the software can handle, but even if not, causing round off errors that "swamp" other values and give incorrect results.
A matrix, or other problem, is "badly scaled" when some numbers in the problem are so much larger than the other that they cannot be kept in memory to the same accuracy, causing some information to be lost. |
| Sep19-12, 09:33 AM | #3 |
|
|
Thank you professor. You explain it very well. I have a little question:
What is your meaning of "other problem"? |
| Sep19-12, 10:08 AM | #4 |
|
|
badly scaled Matrix?!!
Matrices with small determinants are not always problematic. For example, if [itex]M_1 = I[/itex] (the identity matrix) and [itex]M_2 = 0.001 I[/itex] (the identity matrix times a small scalar), then the determinant of [itex]M_2[/itex] will be tiny, but the matrix is not hard to handle.
A better measure of near-singularity to consider how the matrix maps the unit sphere. The image of the unit sphere will be an ellipsoid, and the more "eccentric" this ellipsoid (closer to flat in one or more dimension), the closer the matrix is to being singular. This can actually be quantified, for example, by the singular value decomposition. The ratio of the largest singular value to the smallest gives a measure of this eccentricity. Higher = more singular. |
| Sep19-12, 11:07 AM | #5 |
|
|
Hi jbunniii. Thanks for reply. I don't understand the second paragraph. Can you more explain please this paragraph or introduce some book about this subject?
What's the meaning of the sentence "the matrix maps the unit sphere" ,please? |
| Sep19-12, 02:46 PM | #6 |
|
|
"Other problems" would be things like differential equation where the coefficients are wildly different.
jbunniii, that depends upon what you mean by "small". If you have the identity matrix times a number small enough that your computer would not have sufficient CPU space to contain its reciprocal, you are going to have difficulty with it. |
| Sep19-12, 03:06 PM | #7 |
|
|
I don't think any computer would have a problem inverting [itex]0.1I_n[/itex] (one tenth times the [itex]n \times n[/itex] identity matrix), and the problem does not become more numerically difficult as [itex]n[/itex] increases. On the other hand, [itex]det(0.1I_n) = 0.1^n[/itex] so the determinant becomes arbitrarily small as you increase [itex]n[/itex]. |
| Sep19-12, 03:44 PM | #8 |
|
|
The singular value decomposition breaks the matrix down into three components: an orthogonal rotation, followed by a stretch or shrink factor on each of the canonical axes, followed by another orthogonal rotation. The middle component is a diagonal matrix, consisting of the stretch/shrink factors (called the singular values), which can be used to identify how close the matrix comes to flattening one or more dimension. The ratio of the largest to smallest singular value is a good way to quantify this. You can look this up for more details on Wikipedia. Also, many books on numerical linear algebra cover this, for example the first few sections of Trefethen and Bau's Numerical Linear Algebra. |
| Sep19-12, 04:17 PM | #9 |
|
|
P.S. The ratio of the largest to smallest singular value has a name. It's called the condition number of the matrix. More info here:
http://en.wikipedia.org/wiki/Condition_number |
| Sep20-12, 12:44 AM | #10 |
|
|
Thank you very much, HallsofIvy and JBunniii.
But what is difference between a "badly scaled Matrix" and a "ill-conditioned Matrix"? Please see this page (books.google.com/books?id=8hrDV5EbrEsC&pg=PA55) |
| Sep20-12, 12:57 AM | #11 |
|
|
For example, if I had a matrix where the first row contained distances and the second row contained times, the matrix might be numerically difficult to handle if I make an unwise choice of units. Perhaps the numbers are fine if I use kilometers for distance and hours for time, but if I instead chose nanometers for distance and years for time, I might end up with an ill conditioned matrix, because it would contain some huge numbers and some tiny ones. So, whether a matrix is ill conditioned or not depends on the numerical values appearing in the matrix. And one reason a matrix might be ill conditioned is because it is badly scaled, as in the example above. |
| Sep20-12, 01:18 AM | #12 |
|
|
I think for Matrices, this two terms are equivalent. Is this right?
But in this book we read, "It is also all too easy to turn a badly scaled problem into a genuinely ill-conditioned problem." I have reached a contradiction. |
| Sep20-12, 09:50 AM | #13 |
|
|
|
| Sep20-12, 03:42 PM | #14 |
Recognitions:
|
|
| Sep23-12, 11:46 AM | #15 |
|
|
|
| New Reply |
| Thread Tools | |
Similar Threads for: badly scaled Matrix?!!
|
||||
| Thread | Forum | Replies | ||
| eigenvalues of a scaled matrix | Linear & Abstract Algebra | 3 | ||
| How weight is scaled. | General Physics | 4 | ||
| MatLab Warning: Matrix is singular, close to singular or badly scaled | Engineering, Comp Sci, & Technology Homework | 1 | ||
| Scaled Partial Pivoting | Linear & Abstract Algebra | 0 | ||