On 2/13/2012 11:26 AM, Benedikt F wrote:
> Hi everyone,
> I tried the following code and was surprised by the result:
>
> Ts = randn(200,1000); %random data
> Rtest = corrcoef(Ts); %get correlation matrix of these
> isequal(Rtest,Rtest.') %check correlation matrix for symmetry
> -> ans = 0
>
> The asymmetry is about the rounding error, but where does it come from?
> If each symmetric value is computed once and then assigned twice, this
> should't happen.
...
Well, that would seem to indicate that it wasn't just computed once,
doesn't it? Order can make a difference in floating point; a lsb error
isn't a flaw under IEEE afaik that you can expect such to not occur on
occasion.
--