Re: populate a list with random numbers from normaldistribution?
- To: mathgroup at smc.vnet.net
- Subject: [mg49904] Re: [mg49855] populate a list with random numbers from normaldistribution?
- From: sean kim <sean_incali at yahoo.com>
- Date: Thu, 5 Aug 2004 09:22:22 -0400 (EDT)
- Reply-to: sean_incali01 at yahoo.com
- Sender: owner-wri-mathgroup at wolfram.com
Hi tomas What I wanted to do is to pick sets of random Integers in the ranges {10000, 99999} from the Normal distribution such that, the mean is 50000 and the standard deviation is 25000. or is that not normal distribution? will that be a custom distribution? if that isn't possible, then I want to pick set of random intgers ranging from {10000, 99999} such that the variance and the mean and standard deviation do not change across different runs. I think i'm supposed to use SeedRandom here but this caused me problems also. so I need to design a routine that will pick random integers in a given range with a given distribution with the SAME mean, std dev/ and variances across different runs or simulations. any insights will be truly appreciated. sean > > l1 = Table[Random[NormalDistribution[50000,25000], > Integer, {10000, 99999}], {1000}]; --- Tomas Garza <tgarza01 at prodigy.net.mx> wrote: > 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 > To: <mathgroup at smc.vnet.net> > Sent: Wednesday, August 04, 2004 9:46 AM > Subject: [mg49904] [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 > > > > > > > __________________________________ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com