help-octave
[Top][All Lists]
Advanced

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

Re: var(1) = 0 ??


From: Freddy López
Subject: Re: var(1) = 0 ??
Date: Fri, 27 Jan 2012 21:21:11 -0430

Hello.

Indeed, this is an interesting observation. I have checked this in several softwares. 

Scilab and R reported an error or NA message with var(c) and FreeMat reported ans = 0. Python (scipy) also reported 0 as answer.

Cheers.


On Fri, Jan 27, 2012 at 19:35, Muhali <address@hidden> wrote:
> why would you expect a different result?

this is where it is getting philosophical, or Bayesian, if you want. If you
pick one number out of an unknown population, we just don't know whether
there is variance in the population or not. There is no best estimate for
the variance; 0 is just as good as any other. So I would very much prefer a
result of NaN, but it is mostly convention as I said.

At least the help text, which has (n-1) in the denominator, should be
adjusted accordingly.

M.


--
View this message in context: http://octave.1599824.n4.nabble.com/var-1-0-tp4334677p4335089.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave



--
«But Gwindor answered: 'The doom lies in yourself, not in your name.'»

JRR Tolkien


reply via email to

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