Date: Mon, 15 Sep 1997 21:25:51 -0400
Reply-To: Mark Lindeman <mtl4@COLUMBIA.EDU>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Mark Lindeman <mtl4@COLUMBIA.EDU>
Subject: Re: random numbers + random walk | bug?
Content-Type: text/plain; charset="us-ascii"
Scott Carl wrote in part,
> do bootstrp=1 to 10;
> position=0;*Start at 0;
> do loop=1 to 10000;
I don't think this yields quite what Evan Cooch intended -- only the final
value of position after the loop is of interest, not the intermediate values.
If the output statement is moved to after the first 'end', then as Bernard
speculated, the _standard deviation_ of position approaches the square root
of the number of "loop" iterations (this is clearer with a larger value of