Introductory university-level calculus, linear algebra, abstract algebra, probability, statistics, and stochastic processes.
Simulating Poisson processes using Google Sheets
Get link
Facebook
X
Pinterest
Email
Other Apps
-
How can we simulate Poisson processes on a computer or on Google Sheets?
Theory
Consider a Poisson process . Given some parameter , we have the probability distribution given by
We assume that almost surely. The value of increases by 1 over random periods of time. Let denote the time at which becomes . Then, are random variables. Next, let's define . Of course, we assume ; accordingly, . Since the Poisson process is a Markov process, are i.i.d. (independent and identically distributed). Let's calculate the cumulative distribution function of .
Thus, the density function of is given by
This is the density function of the exponential distribution with parameter . Thus, all follow the same exponential distribution with parameter .
Simulation
Now, let's discretize the time. For some small , we consider the random values . Since the time interval between one increment and the next follows the exponential distribution, we can determine whether to increment or not at each time step in the following manner.
Generate a uniform random number .
If , then increment by 1. Otherwise, do not increment.
The second step simply means that one increment occurs within the duration of . Since the time till the increment follows the exponential distribution, its probability is . Thus, the algorithm for simulation is given as follows.
Set , k = 0.
Generate a uniform random number .
If , then set ; otherwise, set .
Set . Go to step 2, and repeat.
Every time we run this simulation, a different sample path is generated. One example is shown at the top of this page. Other samples are found below.
Defining the birth process Consider a colony of bacteria that never dies. We study the following process known as the birth process , also known as the Yule process . The colony starts with cells at time . Assume that the probability that any individual cell divides in the time interval is proportional to for small . Further assume that each cell division is independent of others. Let be the birth rate. The probability of a cell division for a population of cells during is . We assume that the probability that two or more births take place in the time interval is . That is, it can be ignored. Consequently, the probability that no cell divides during is . Note that this process is an example of the Markov chain with states \({n_0}, {n_0 + 1}, {n_0 + 2}...
Generational growth Consider the following scenario (see the figure below): A single individual (cell, organism, etc.) produces descendants with probability , independently of other individuals. The probability of this reproduction, , is known. That individual produces no further descendants after the first (if any) reproduction. These descendants each produce further descendants at the next subsequent time with the same probabilities. This process carries on, creating successive generations. Figure 1. An example of the branching process. Let be the random variable representing the population size (number of individuals) of generation . In the above figure, we have , , , , We shall assume as the initial condition. Ideally, our goal would be to find how the population size grows through generations, that is, to find the probability for e...
In mathematics, we must prove (almost) everything and the proofs must be done logically and rigorously. Therefore, we need some understanding of basic logic. Here, I will informally explain some rudimentary formal logic. Definitions (Proposition): A proposition is a statement that is either true or false. "True" and "false" are called the truth values, and are often denoted and . Here is an example. "Dr. Akira teaches at UBD." is a statement that is either true or false (we understand the existence of Dr. Akira and UBD), hence a proposition. The following statement is also a proposition, although we don't know if it's true or false (yet): Any even number greater than or equal to 4 is equal to a sum of two primes. See also: Goldbach's conjecture Next, we define several operations on propositions. Note that propositions combined with these operations are again propositions. (Conjunction, logical "and"): Let ...
Comments
Post a Comment