Re: [R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-08 Thread Prof Brian Ripley
On Wed, 8 Feb 2006, Duncan Murdoch wrote: On 2/8/2006 8:30 AM, Brian D Ripley wrote: On Wed, 8 Feb 2006, Duncan Murdoch wrote: >> On 2/8/2006 4:53 AM, Bjÿÿrn-Helge Mevik wrote: > Why don't you test it yourself? >>> > E.g.,>> >>> > set.seed(42)>> > bob1 <- rnorm(1000,0,1)>> > set.seed(42)>> > bo

Re: [R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-08 Thread Peter Dalgaard
Duncan Murdoch <[EMAIL PROTECTED]> writes: > This isn't really something that can be proved by a test. Perhaps the > current implementation makes those equal only because 500 is even, or > divisible by 5, or whatever... > > I think the intention is that those should be equal, but in a quick >

Re: [R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-08 Thread Duncan Murdoch
On 2/8/2006 8:30 AM, Brian D Ripley wrote: > On Wed, 8 Feb 2006, Duncan Murdoch wrote: > >> On 2/8/2006 4:53 AM, Bj�rn-Helge Mevik wrote: >> > Why don't you test it yourself? >> > >> > E.g., >> > >> > set.seed(42) >> > bob1 <- rnorm(1000,0,1) >> > set.seed(42) >> > bob2 <- rnorm(500,0,1) >> > bob3

Re: [R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-08 Thread Brian D Ripley
On Wed, 8 Feb 2006, Duncan Murdoch wrote: > On 2/8/2006 4:53 AM, Bj?rn-Helge Mevik wrote: > > Why don't you test it yourself? > > > > E.g., > > > > set.seed(42) > > bob1 <- rnorm(1000,0,1) > > set.seed(42) > > bob2 <- rnorm(500,0,1) > > bob3 <- rnorm(500,0,1) > > identical(bob1, c(bob2, bob3)) > >

Re: [R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-08 Thread Duncan Murdoch
On 2/8/2006 4:53 AM, Bjørn-Helge Mevik wrote: > Why don't you test it yourself? > > E.g., > > set.seed(42) > bob1 <- rnorm(1000,0,1) > set.seed(42) > bob2 <- rnorm(500,0,1) > bob3 <- rnorm(500,0,1) > identical(bob1, c(bob2, bob3)) > > I won't tell you the answer. :-) This isn't really something

Re: [R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-08 Thread Bjørn-Helge Mevik
Why don't you test it yourself? E.g., set.seed(42) bob1 <- rnorm(1000,0,1) set.seed(42) bob2 <- rnorm(500,0,1) bob3 <- rnorm(500,0,1) identical(bob1, c(bob2, bob3)) I won't tell you the answer. :-) -- Bjørn-Helge Mevik __ R-help@stat.math.ethz.ch ma

Re: [R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-08 Thread Philippe Grosjean
Romain Francois wrote: > Le 08.02.2006 04:21, Taka Matzmoto a écrit : > > >>Hi R users >> >>This looks a simple question >> >>Is there any difference between between rnorm(1000,0,1) and running >>rnorm(500,0,1) twice in terms of outcome ? >> >>TM >> >> > > Not here : > > R> set.seed(1) > R> x

Re: [R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-08 Thread Romain Francois
Le 08.02.2006 04:21, Taka Matzmoto a écrit : >Hi R users > >This looks a simple question > >Is there any difference between between rnorm(1000,0,1) and running >rnorm(500,0,1) twice in terms of outcome ? > >TM > > Not here : R> set.seed(1) R> x <- rnorm(1000, 0, 1) R> set.seed(1) R> y <- rnorm

[R] difference between rnorm(1000, 0, 1) and running rnorm(500, 0, 1) twice

2006-02-07 Thread Taka Matzmoto
Hi R users This looks a simple question Is there any difference between between rnorm(1000,0,1) and running rnorm(500,0,1) twice in terms of outcome ? TM __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do