MathGroup Archive 1997

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

Search the Archive

Fwd: Generating lists of normally-distributed numbers?


Needs["Statistics`ContinuousDistributions`"] (* standard package *)

n = 100; mu = 5; sigma = 2;

data = Table[ Random[NormalDistribution[mu, sigma]], {n} ];
(* normally distributed random data *)

cdfEstimate[data_List, x_] := 
	Count[x - data, _?NonNegative]/Length[data]; (* CDF for data *)

Plot[{CDF[NormalDistribution[mu, sigma], x], 
	cdfEstimate[data, x]}, {x, mu - 3 sigma, mu + 3 sigma}, 
	PlotStyle -> { RGBColor[0, 0, 1], 
		{RGBColor[1, 0, 0], AbsoluteDashing[{5,3}]} } ];


Bob Hanlon
---------------------
Forwarded message:
From:	wacb at welchlink.welch.jhu.edu (Bill Christens-Barry)
To: mathgroup at smc.vnet.net
To:	mathgroup at smc.vnet.net

Can someone provide a simple example of how a list of N elements can be
generated, with the list elements being normally distibuted?  I'd like to
include random seeding so I can generate an ensemble of such lists.

Are there general tools in Mma 3.0 for generating lsits with various
statistics?  How do I go about searching for sites where these kinds of
tools can be found?

Thanks.

Bill Christens-Barry
wacb at aplcomm.jhuapl.edu




  • Prev by Date: GreyLevel in ParametricPlot3D
  • Next by Date: Re: Generating lists of normally-distributed numbers?
  • Previous by thread: Re: Generating lists of normally-distributed numbers?
  • Next by thread: Re: Generating lists of normally-distributed numbers?