Why is this matrix bad conditioned?

  • Context: Graduate 
  • Thread starter Thread starter divB
  • Start date Start date
  • Tags Tags
    Matrix
Click For Summary

Discussion Overview

The discussion revolves around the stability and conditioning of a specific matrix used in solving an over-determined system. Participants explore the properties of the matrix, its structure, and the implications for numerical methods applied to it, including references to Vandermonde matrices and MATLAB techniques.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes a matrix derived from a paper, noting its instability and high condition numbers regardless of the input signal drawn from a Gaussian distribution.
  • Another participant questions whether the original poster meant "over-determined" correctly, clarifying that it implies more rows than columns.
  • A clarification is provided that the matrix is indeed over-determined, with a structure similar to a Vandermonde matrix, which is known for having high condition numbers and instability.
  • Some participants discuss the use of the MATLAB backslash operator and the Moore-Penrose pseudo-inverse, suggesting that the QR method might be more effective for this type of matrix.
  • Concerns are raised about forming normal equations with the matrix, as it may lead to ill-conditioning unless the size of N is small.
  • There is mention of discrepancies in how some publications imply the use of the backslash operator for solving the matrix, which may not align with the original poster's experience.

Areas of Agreement / Disagreement

Participants express differing views on the conditioning of the matrix and the effectiveness of various numerical methods. There is no consensus on the best approach to handle the matrix or the reasons for its instability.

Contextual Notes

Participants note that the matrix's condition may depend on its structure and the specific values used, with references to the implications of using normal equations in the context of high-dimensional data.

divB
Messages
85
Reaction score
0
Hi,

From a paper I got a matrix like this which I use to solve the over-determined system [itex]\mathbf{z} = \mathbf{U} \mathbf{a}[/itex]:

[tex] \mathbf{U} = \left[\begin{matrix}<br /> x(3) & x(3)^2 & x(3)^3 & x(2) & x(2)^2 & x(2)^3 & x(1) & x(1)^2 & x(1)^3\\<br /> x(4) & x(4)^2 & x(4)^3 & x(3) & x(3)^2 & x(3)^3 & x(2) & x(2)^2 & x(2)^3\\<br /> x(5) & x(5)^2 & x(5)^3 & x(4) & x(4)^2 & x(4)^3 & x(3) & x(3)^2 & x(3)^3\\<br /> x(6) & x(6)^2 & x(6)^3 & x(5) & x(5)^2 & x(5)^3 & x(4) & x(4)^2 & x(4)^3\\<br /> \end{matrix}\right][/tex]

However, in my experiments I found that this matrix is very unstable and has high condition numbers. No matter which "signal" x I plug into, even if the x are drawn from a Gaussian distribution.

Can anyone tell me why this matrix is so unstable or if I am doing something wrong?

The crazy thing is that the paper suggests the algorithm works without any problems (using the same parameter set) but I just can't reproduce this ...

Thanks,
div
 
Physics news on Phys.org
Please clarify a couple of points:

1. Do you really mean under-determined? Over-determined means more rows than columns.

2. Does x(3)3 mean x * (33) or (x3)3? If the former, it means x is a scale factor for the entire matrix. If the latter, it means the matrix is generated from 6 values.
 
hotvette said:
Please clarify a couple of points:

1. Do you really mean under-determined? Over-determined means more rows than columns.

Sorry, I was not clear enough. It is indeed over-determined. Better clarification:

[tex] \mathbf{U} = \left[\begin{matrix}<br /> x(3) & x(3)^2 & x(3)^3 & x(2) & x(2)^2 & x(2)^3 & x(1) & x(1)^2 & x(1)^3\\<br /> x(4) & x(4)^2 & x(4)^3 & x(3) & x(3)^2 & x(3)^3 & x(2) & x(2)^2 & x(2)^3\\<br /> x(5) & x(5)^2 & x(5)^3 & x(4) & x(4)^2 & x(4)^3 & x(3) & x(3)^2 & x(3)^3\\<br /> x(6) & x(6)^2 & x(6)^3 & x(5) & x(5)^2 & x(5)^3 & x(4) & x(4)^2 & x(4)^3\\<br /> \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\<br /> x(N) & x(N)^2 & x(N)^3 & x(N-1) & x(N-1)^2 & x(N-1)^3 & x(N-1) & x(N-1)^2 & x(N-1)^3\\<br /> \end{matrix}\right][/tex]

with N>>3.

hotvette said:
2. Does x(3)3 mean x * (33) or (x3)3? If the former, it means x is a scale factor for the entire matrix. If the latter, it means the matrix is generated from 6 values.

It means the latter. [itex]x(n)[/itex] is a sequence where n is the nth value of the sequence.

It appears that this matrix has a similar structure than a Vandermonde but not quite.

Vandermonde matrices seem to have high condition numbers and to be instable. Yet, they seem to be used quite frequently, also in Engineering papers I found Vandermonde matrices which are just solved "by the MATLAB backslash operator" (Moore Penrose pseudo inverse).

Thanks
 
divB said:
in Engineering papers I found Vandermonde matrices which are just solved "by the MATLAB backslash operator" (Moore Penrose pseudo inverse).
Thanks

AFAK the MATLAB backslash operatior is not the same as the Moore pensore psendo inverse. http://www.mathworks.co.uk/help/matlab/ref/arithmeticoperators.html

But the QR method MATLAB uses should be work pretty well for that type of matrix. Are you trying to solve it that way, or doing something else?

Forming the normal equations by doing ##U^Tz = U^T U a## and then solving for ##a## would be an ill-conditioned disaster, unless N is small.
 
AlephZero said:
AFAK the MATLAB backslash operatior is not the same as the Moore pensore psendo inverse. http://www.mathworks.co.uk/help/matlab/ref/arithmeticoperators.html

But the QR method MATLAB uses should be work pretty well for that type of matrix. Are you trying to solve it that way, or doing something else?

I know.

I used pinv(U)*z as well as U \ z.

The thing is that in some publications it is even (implicitely) stated that they solved with the backslash operator.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 26 ·
Replies
26
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K