poisson

calculate poisson probability percentage in python

When you use the POISSON function in Excel (or in OpenOffice Calc), it takes two arguments: an integer an 'average' number and returns a float. In python (i tried RandomArray and NumPy) it returns an array of random poisson numbers. What I really want is the percentage that this event will occur (it is a constant number and the array...

Java Generator for Poisson and Uniform Distributions?

From what I understand, the standard generator is for the Normal Distribution. I have to generate random numbers according to the Normal, Uniform and Poisson Distributions, but I can't seem to find a class for the last 2. I have to generate them in the range of 0 - 999999. ...

Calculation of Poisson distribution in C

I need a C function to calculate Poisson distribution for values of k upto 720. I need a highly efficient solution. I urgently need this solution. Thanks in advance ...

How do I generate a Poisson Process?

Original Question: I want to generate a Poisson process. If the number of arrivals by time t is N(t) and I have a Poisson distribution with parameter lambda how do I generate N(t)? How would I do this in C++? Clarification: I originally wanted to generate the process using a Poisson distribution. But, I was confused about what paramet...

Algorithm to generate Poisson and binomial random numbers?

i've been looking around, but i'm not sure how to do it. i've found this page which, in the last paragraph, says: A simple generator for random numbers taken from a Poisson distribution is obtained using this simple recipe: if x1, x2, ... is a sequence of random numbers with uniform distribution between zero and one, k is the first int...

Generating a gaussian distribution with only positive numbers

Is there any way to randomly generate a set of positive numbers such that they have a desired mean and standard deviation? I have an algorithm to generate numbers with a gaussian distribution, but I don't know how to deal with negative numbers in a way the preserves the mean and standard deviation. It looks like a poisson distribution...

To calculate the chernoff's bound for the sum of N poisson randon variables

Let X = sum of n iid random variables. X = \sum_{i=1}^n X_i where n is a poisson random variable with some mean i have to calculate Pr(X > a) I am not able to apply the chernoff's bound theorem as poisson random variable is in th epower. pl help me Ranjan ...

Poisson Disk distribution on hemisphere

Hi! I just implemented Poisson Disk generation in the plane with this simple algorithm: http://people.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf Now I would like to generate a Poisson Disk distribution on the surface of a hemisphere (or better, on a part of the spherical surface, given a certain angle) can anyone tell...

How do I generate discrete random events with a Poisson distribution?

I'm aware of Knuth's algorithm for generating random Poisson distributed numbers (below in Java) but how do I translate that into calling a method, generateEvent(), randomly over time? int poissonRandomNumber(int lambda) { double L = Math.exp(-lambda); int k = 0; double p = 1; do { k = k + 1; double u = ...

Solving Sparse Linear Problem With Some Known Boundary Values

I'm trying to solve a Poisson equation on a rectangular domain which ends up being a linear problem like Ax=b but since I know the boundary conditions, there are nodes where I have the solution values. I guess my question is... How can I solve the sparse system Ax=b if I know what some of the coordinates of x are and the undetermin...

Modeling response times

I am trying to model the time lapse between when a user sees an ad and when they call the advertiser (presuming they do). I have two issues - part of the data seems exponential, but I am wondering if there is a similar distribution with an extra parameter because I cannot quite get it to fit. Also, the peak does not occur at t = 0 but ...

Python: create a distribution from a list based on number of items that fall within certain ranges

I tagged this question with poisson as I am not sure if it will be helpful in this case. I need to create a distribution (probably formatted as an image in the end) from a list of data. For example: data = [1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 10, 10, 10, 22, 30, 30, 35, 46, 58, 59, 59] such that the data can be used to create a visu...