[R] Different results in calculating SD of 2 numbers

(Ted Harding) Ted.Harding at manchester.ac.uk
Wed Jan 16 10:47:25 CET 2008


On 16-Jan-08 08:45:04, Martin Maechler wrote:
>>>>>> "RM" == Ron Michael <ron_michael70 at yahoo.com>
>>>>>>     on Wed, 16 Jan 2008 00:14:56 -0800 (PST) writes:
> 
>     RM> Hi all,
>     RM> Can anyone tell me why I am getting different results in
> calculating SD of 2 numbers ?
> 
>     >> (1.25-0.95)/2
>     RM> [1] 0.15
>     >> sd(c(1.25, 0.95))
>     RM> [1] 0.2121320          # why it is different from 0.15?
> 
> because  1 is different from 2 !
> If 2 was 1, than sqrt(2) == 1 as well, but actually I don't
> think the universe and we all would exist in that case ....
> Martin Maechler, ETH

Of course we would!! -- Since FALSE implies X is TRUE for any X.

But FALSE would also imply that X is FALSE, so you are entitled
to your view as well, Martin.

With best wishes,
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 16-Jan-08                                       Time: 09:47:20
------------------------------ XFMail ------------------------------




More information about the R-help mailing list