Go Back   Velocity Reviews > Newsgroups > Python
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply

Python - Poisson Distribution (for a newbie)

 
Thread Tools Search this Thread
Old 02-15-2006, 09:17 PM   #1
diffuser78@gmail.com
 
Posts: n/a
Default Poisson Distribution (for a newbie)

I am simulating an event where users come into the pool randomly
starting at time T=0, i.e. For Example, 2 users came at T= 0 into the
the pool, 3 users came at T= 1 into the the pool, 5 users came at T=2
,..........,54 users came at T=45 etc. As cumulative number of users
goes above 1024, we stop the process.

I want to mimic such kind of distribution using poison traffic ( a bell
shaped curve). I looked into wikipedia and some other tutorials but I
wasn't sure how many parameter does the above kind of distribution
would require.

Could somebody put some light on this issue.

PS:: This is not exactly a programming issue but since I was using it
in one of the Python programs, I thought somebody might have used
similar thing in past and could help. Thanks.

  Reply With Quote
Old 02-16-2006, 12:39 AM   #2
Duncan Smith
 
Posts: n/a
Default Re: Poisson Distribution (for a newbie)

wrote:
> I am simulating an event where users come into the pool randomly
> starting at time T=0, i.e. For Example, 2 users came at T= 0 into the
> the pool, 3 users came at T= 1 into the the pool, 5 users came at T=2
> ,..........,54 users came at T=45 etc. As cumulative number of users
> goes above 1024, we stop the process.
>
> I want to mimic such kind of distribution using poison traffic ( a bell
> shaped curve). I looked into wikipedia and some other tutorials but I
> wasn't sure how many parameter does the above kind of distribution
> would require.
>
> Could somebody put some light on this issue.
>
> PS:: This is not exactly a programming issue but since I was using it
> in one of the Python programs, I thought somebody might have used
> similar thing in past and could help. Thanks.
>


The Poisson has one parameter, its mean. See e.g.
http://www.itl.nist.gov/div898/handb...n3/eda366j.htm

Duncan
  Reply With Quote
Old 02-16-2006, 07:16 AM   #3
Jeremy Sanders
 
Posts: n/a
Default Re: Poisson Distribution (for a newbie)

wrote:

> I want to mimic such kind of distribution using poison traffic ( a bell
> shaped curve). I looked into wikipedia and some other tutorials but I
> wasn't sure how many parameter does the above kind of distribution
> would require.


I've used numarray's poisson distribution generator, which was very useful.
There may well be something similar in NumPy/Numeric/SciPy.

e.g.

from numarray.random_array import poisson

for i in xrange(100):
print poisson(10)

Where 10 is the mean.

Jeremy

--
Jeremy Sanders
http://www.jeremysanders.net/
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie; what is the best software to convert DVD (Vob) file to avi - divx ? Laura25 DVD Video 4 07-12-2006 02:03 PM
NEWBIE - DVD burn problem - need help Vic Baron DVD Video 6 09-29-2005 09:56 PM
Heeeeeeelp... Newbie with avi to dvd (or svcd) please. Mike DVD Video 11 08-14-2004 08:04 PM
Newbie Pioner 3100 help oespelan DVD Video 3 07-19-2004 03:30 AM
QUANTSUFF's Newbie Guide to DVD Mike C DVD Video 0 03-05-2004 01:29 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47