Re: Maximum relative error in Multidimensional sca



Hello Peter,

yes, it's a bit non-euclidean, but the magnitudes of the negative
eigenvalue are quite resonable, or so I thought.

Anyway, thanks a lot for your help, it's very appreciated.

Best regards,

Stephane.

Peter Perkins wrote:
>
>
> Stéphane Bourgeois wrote:
>
>> D=[0.0596 0.05911 0.029867 0.05607...
>> 0.02963 0.022592 0.0045444...
>> 0.016778 0.021189...
>> 0.019387];
>>
>> [Y,eigvals] = cmdscale(D);
>>
>> maxrelerr = max(abs(D - pdist(Y(:,1:2)))) / max(D)
>>
>> maxrelerr =
>>
>> 0.1431
>>
>> Which is almost three time the maximum pairwise distance in my
>> matrix!! It's impossible for the reconstruction to be that bad.
> Any
>> idea?
>
> It's not impossible -- first of all, maxrelerr is the maximum
> _relative_ error.
> Second, your distance matrix is a bit on the noneuclidean side:
>
> [Y,eigvals] = cmdscale(D);
> eigvals
> eigvals =
> 0.0024919
> 0.0004886
> 7.1116e-020
> -6.2691e-006
> -0.00025479
>
> and so there's no guarantee that those two positive eigenvalues are
> going to
> give a good reconstruction. Fron the help for CMDSCALE:
>
> "D need not be a Euclidean distance matrix. If it is
> non-Euclidean, or is
> a more general dissimilarity matrix, then some elements of E
> are negative,
> and CMDSCALE chooses p as the number of positive eigenvalues.
> In this case,
> the reduction to p or fewer dimensions provides a reasonable
> approximation
> to D only if the negative elements of E are small in
> magnitude."
>
> Hope this helps.
>
> - Peter Perkins
> The MathWorks, Inc.
>
.



Relevant Pages

  • Re: estimation of autocorrelation matrix or eigenvalue spread.
    ... of the magnitudes of the zeros. ... magnitudes of the zeros of the prediction polynomial. ... This has nothing at all to do with the eigenvalues, ... It has to do with spectrum flatness. ...
    (comp.dsp)
  • Re: Distributing n points in space
    ... other, i want to put them all in k<n dimensional space, it is probably ... The n x n positive semidefinite matrix G ... negative eigenvalues or rank> k, the best approximation, in some sense, ... Now given the distance matrix D: ...
    (sci.math)
  • Re: Distributing n points in space
    ... distance matrix por each pair of points distance from one to the ... The n x n positive semidefinite matrix G ... negative eigenvalues or rank> k, the best approximation, in some sense, ... Now given the distance matrix D: ...
    (sci.math)
  • Re: eigenvalue magnitude question
    ... necessarily imply that all of its eigenvalues have magnitudes ...
    (sci.math.num-analysis)
  • eigenvalue magnitude question
    ... would the fact that the highest singular value of a real/complex matrix is ... necessarily imply that all of its eigenvalues have magnitudes ...
    (sci.math.num-analysis)