Also, have a look at the section on population and sample variance here:
http://en.wikipedia.org/wiki/Variance

Sean.

On Mon, Jan 12, 2009 at 7:26 PM, julien cuisinier
<j_cuisinier@hotmail.com>wrote:

>
>
>
> Hi,I am bit puzzled by the cov() function in RChecking a function I write,
> it seems that R compute the covariance between two variable as:1/(n-1)
> sum[(x-mean(x))*(y-mean(y))]While Excel divide the sum by n instead of
> (n-1)...which is the right way to do as far as I know...Has anyone already
> encountered this? or is it just me getting crazy?I use R 2.8.0 on Mac OS
> XThanks for your feedbackBest regardsJulien
>
> ¡Descúbrelo! ¿Qué puedes hacer con el nuevo Windows Live?
> _________________________________________________________________
> Descubre todas las formas en que puedes estar en contacto con amigos y
> familiares.
>
>        [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-SIG-Finance@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>



-- 
Sean Carmody

The Stubborn Mule
http://www.stubbornmule.net
http://twitter.com/seancarmody

	[[alternative HTML version deleted]]

