       Re: populate a list with random numbers from normal distribution?

• To: mathgroup at smc.vnet.net
• Subject: [mg49870] Re: [mg49855] populate a list with random numbers from normal distribution?
• From: Bob Hanlon <hanlonr at cox.net>
• Date: Thu, 5 Aug 2004 09:20:31 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```Needs["Statistics`ContinuousDistributions`"];

data=RandomArray[NormalDistribution[50000,25000],{1000}];

#[data]& /@ {Mean, Variance, StandardDeviation} // N

{49212.297808892145, 6.388327485991619*^8,
25275.140921450107}

Since you seem to want Integers

data=Round /@ data;

#[data]& /@ {Mean, Variance, StandardDeviation} //N

{49212.299, 6.388324440996987*^8, 25275.134897754724}

Bob Hanlon

>
> From: sean_incali at yahoo.com (sean kim)
To: mathgroup at smc.vnet.net
> Date: 2004/08/04 Wed AM 10:46:33 EDT
> To: mathgroup at smc.vnet.net
> Subject: [mg49870] [mg49855] populate a list with random numbers from normal
distribution?
>
> hello group.
>
> I looked at the help browser but i can't figure this out. I weant to
> make a list of random numbers sampled from a normal distribution
>
> In:= Needs["Statistics`ContinuousDistributions`"]
>
> l1 = Table[Random[NormalDistribution[50000,25000], Integer, {10000,
> 99999}], {1000}];
>
> Variance[l1]//N
> StandardDeviation[l1]//N
>
>
> From In:=
> Random::"randt":
> Type specification NormalDistribution[50000, 25000] in
> <<1>> should be Real, Integer, or Complex.
>
> Out=
> 0.
> Out=
> 0.
>
> thanks in advance for any insights
>
> sean
>
>

```

• Prev by Date: Re: Forcing Argument Evaluation
• Next by Date: New webMathematica Author Provides Authoring Environment for webMathematica
• Previous by thread: Re: populate a list with random numbers from normaldistribution?
• Next by thread: Re: populate a list with random numbers from normal distribution?