MathGroup Archive 1996

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

Search the Archive

Re: Poisson random numbers

  • To: mathgroup at smc.vnet.net
  • Subject: [mg3069] Re: Poisson random numbers
  • From: ianc (Ian Collier)
  • Date: Tue, 30 Jan 1996 02:24:00 -0500
  • Organization: Wolfram Research, Inc.
  • Sender: owner-wri-mathgroup at wri.com

In article <4efb48$rp7 at dragonfly.wri.com>, onm010 at uni-essen.de (Dr. Stefan
P. Mueller) wrote:

> Does anybody have a Poisson random number generator or do I have to write
> my own? I could not find anything on MathSource.
> 
> Stefan
> 
> -- 
> Dr. Stefan P. Mueller, Nuklearmedizin, Universitaetsklinikum, Essen,
>  e-mail: onm010 at uni-essen.de, phone: <49> 201/ 723-4179, FAX: -5964


You can do this using the built in Random function together 
with the PoissonDistribution function defined in
Statistics`DiscreteDistributions`, one of the standard
packages distributed with Mathematica.

For example, after loading the DiscreteDistributions
package

    Needs[ "Statistics`DidcreteDistributions`"  ]

The command

    Random[ PoissonDistribution[ 1 ] ]

will generate a pseudorandom number with a Poisson distribution.

For further details refer to The Guide to Standard Mathematica
Packages Technical Report.

I hope this helps.

--Ian

-----------------------------------------------------------
Ian Collier
Technical Sales Support
Wolfram Research, Inc.
-----------------------------------------------------------
tel:(217) 398-0700     fax:(217) 398-0747      ianc at wri.com
Wolfram Research Home Page:             http://www.wri.com/
-----------------------------------------------------------

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: is this integration possible with mathematica?
  • Next by Date: Re: Poisson random numbers
  • Previous by thread: Re: Poisson random numbers
  • Next by thread: Re: Poisson random numbers