help-octave
[Top][All Lists]
Advanced

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

Re: var(1) = 0 ??


From: Ismael Núñez-Riboni
Subject: Re: var(1) = 0 ??
Date: Fri, 27 Jan 2012 22:06:14 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0

Is there a particular reason that octave (and matlab) has var(1) = 0?

It is correct, the variance of a single sample is zero and not only in matlab and octave... :-) you do not only get the same if you take var(2) = var(5) = var(c) = 0, where is c a constant, etc, but also if you take a time series with constant values, for instance, var(ones(1,10)) = 0... Cheers, Ismael.


reply via email to

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