help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: var(x) and std(x)


From: Francesco Potorti`
Subject: Re: var(x) and std(x)
Date: Tue, 12 Nov 2002 18:03:39 +0100

>   It gives variance after averaging over n-1 samples, rather than
>   averaging over n samples 

If you compute the mean from the samples, this is correct.  If you know
the mean a priori, then you should divide by n.  The code you cite
computes the mean from the samples, so that's okay.

-- 
Francesco Potortì (researcher)         Voice: +39 050 315 3058 (op.2111)
CNUCE - Area della ricerca CNR         Fax:   +39 050 313 8091
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
Web: http://fly.cnuce.cnr.it/          Key:   fly.cnuce.cnr.it/public.key



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]