MathGroup Archive 1996

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

Search the Archive

Re: Poisson random numbers


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/
-----------------------------------------------------------


  • Prev by Date: Re: Poisson random numbers
  • Next by Date: Re: Two questions regarding command line interface
  • Previous by thread: Re: Poisson random numbers
  • Next by thread: How to make an NTSC-video tape from a Mma movie on a PowerMac 8100/80AV