MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Puzzled by the "Variance"

You are using equation 1 of that page, Variance uses equation 4.  The
reason for the difference is subtle and is explained in the text
between the two equations.

On Mar 12, 6:28=A0am, Elements <phil... at> wrote:
> Greeting all
> I'm puzzled by the function "Variance". We can learn how to calculate
> variance from this page:
> For example, calculate the sample variance of {1,2,3}. the average of
> {1,2,3} is 2, then the variance should be ((1-2)^2+(2-2)^2+(3-2)^2)/3=2/=
> But mathematica gives that:
> In[10]:= Variance[{1.0,2.0,3.0}]
> Out[10]= 1.
> Why??
> --
> Best Wishes!
> Yours Sincerely

  • Prev by Date: Re: Path to *.m file
  • Next by Date: Re: Puzzled by the "Variance"
  • Previous by thread: Re: Puzzled by the "Variance"
  • Next by thread: Re: Puzzled by the "Variance"