MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: populate a list with random numbers from normaldistribution?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49898] Re: [mg49855] populate a list with random numbers from normaldistribution?
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Thu, 5 Aug 2004 09:22:08 -0400 (EDT)
  • References: <200408041446.KAA20161@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Check your syntax. Look at the following:

In[1]:=
<< "Statistics`"

In[2]:=
dist = NormalDistribution[50000, 25000];

In[4]:=
Table[Random[dist], {10}]
Out[4]=
{26975.950556122647, 58550.03432245862,
  90456.47272543506, 73888.28476391576,
  52046.50992913155, 72675.80052590193,
  48593.27989475152, 78918.83089186646,
  96303.52480806905, 69543.82643195332}

What, then, do you mean by the variance of the above table?

Tomas Garza
Mexico City
----- Original Message ----- 
From: "sean kim" <sean_incali at yahoo.com>
To: mathgroup at smc.vnet.net
Subject: [mg49898] [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[90]:= Needs["Statistics`ContinuousDistributions`"]
>
> l1 = Table[Random[NormalDistribution[50000,25000], Integer, {10000,
> 99999}], {1000}];
>
> Variance[l1]//N
> StandardDeviation[l1]//N
>
>
> From In[90]:=
> Random::"randt":
> Type specification NormalDistribution[50000, 25000] in
> <<1>> should be Real, Integer, or Complex.
>
> Out[92]=
> 0.
> Out[93]=
> 0.
>
> thanks in advance for any insights
>
> sean
>
>



  • Prev by Date: Re: NonlinearFit
  • Next by Date: Re: Asymmetric quadratic coefficient problem
  • Previous by thread: populate a list with random numbers from normal distribution?
  • Next by thread: Re: populate a list with random numbers from normal distribution?