Re: correlation coefficient
- From: Eskofier <bjoern@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 9 Sep 2006 19:05:31 -0400
Roger Stafford wrote:
In article <ef4033e.4@xxxxxxxxxxxxxxxxxxxxxxx>, Eskofier
<bjoern@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
When created with randn, corralation should indeed be zero.-----------------------
Read the documentation for corr, too. It computes the Spearman,
Kendall, and by default the Pearson correlation.
Ideally, that would be true, Eskofier, but what we're dealing
with here
is a finite sample, so the sample-derived correlation will
generally
differ from zero. This is no fault of matlab's random functions,
but a
basic characteristic in statistics. The correlation between two
independent random variables derived from a finite sample will not
be zero
in general, but has a well-defined non zero variance which depends
on the
size of the sample.
To illustrate that, when I did the following four times,
c = corrcoef(randn(4096,1),randn(4096,1)),
the four answers for c(1,2) I got were 0.0427, 0.0023, 0.0195, and
0.0122,
which are small but not quite zero. If we used Nivas' 10000, these
would
be smaller but still not zero.
Roger Stafford
Go on and calculate the ML Estimator. You'd find it to be 0.
.
- Follow-Ups:
- Re: correlation coefficient
- From: Roger Stafford
- Re: correlation coefficient
- References:
- correlation coefficient
- From: nivas
- Re: correlation coefficient
- From: Eskofier
- Re: correlation coefficient
- From: Roger Stafford
- correlation coefficient
- Prev by Date: Re: Small Database
- Next by Date: how to write/save count in Video and Image Process Block Set
- Previous by thread: Re: correlation coefficient
- Next by thread: Re: correlation coefficient
- Index(es):
Relevant Pages
|