Re: Variance question
- From: ellieandrogerxyzzy@xxxxxxxxxxxxxxxxxxxxxx (Roger Stafford)
- Date: Sun, 05 Feb 2006 06:11:34 GMT
In article <ef27c50.-1@xxxxxxxxxxxxxxxx>, "Robin R"
<deleterobin@xxxxxxxxx> wrote:
Hello,-------------------
I have poisson data of unknown mean. Want to calculate the variance.
1) Should I take the mean
2)or do square of standard deviation (x-mu)^2 approach
what is the difference between the two??
which one I should use
Robin
If all you want is the sample variance, then all you need to write is
the single matlab statement:
v = cov(x);
where x is the vector of your sample. You should bear in mind, however,
that the 'cov' function itself has had to find the sample's mean in order
to do its calculation. There is no need to work by way of the standard
deviation unless that is what you want to find. (Note: the 'cov' function
is so named because it is also capable of finding the covariance of a
multiplicity of variables involving a matrix of sample values.)
(Remove "xyzzy" and ".invalid" to send me email.)
Roger Stafford
.
- Follow-Ups:
- Re: Variance question
- From: Robin R
- Re: Variance question
- References:
- Variance question
- From: Robin R
- Variance question
- Prev by Date: Re: FPGA & Matlab
- Next by Date: Re: fmincon and simulink
- Previous by thread: Variance question
- Next by thread: Re: Variance question
- Index(es):
Relevant Pages
|