Re: [R] Different results in calculating SD of 2 numbers

From: Bjørn-Helge Mevik <b.h.mevik_at_usit.uio.no>
Date: Wed, 16 Jan 2008 09:34:44 +0100

Ron Michael <ron_michael70_at_yahoo.com> writes:

> Can anyone tell me why I am getting different results in calculating
> SD of 2 numbers ?
>
>> (1.25-0.95)/2
> [1] 0.15

Because this is not the SD? Try

> (1.25-0.95)/sqrt(2)

:-)

>> sd(c(1.25, 0.95))
> [1] 0.2121320 # why it is different from 0.15?

-- 
Bjørn-Helge Mevik

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 16 Jan 2008 - 08:37:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Jan 2008 - 09:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive