simulating events the poisson process
play

Simulating events: the Poisson process Michel Bierlaire - PowerPoint PPT Presentation

Simulating events: the Poisson process Michel Bierlaire michel.bierlaire@epfl.ch Transport and Mobility Laboratory Simulating events: the Poisson process p. 1/15 Simon Denis Poisson Simon-Denis Poisson (17811840). French


  1. Simulating events: the Poisson process Michel Bierlaire michel.bierlaire@epfl.ch Transport and Mobility Laboratory Simulating events: the Poisson process – p. 1/15

  2. Siméon Denis Poisson Siméon-Denis Poisson (1781–1840). French mathematician. • Poisson random variable • Poisson process • Non homogeneous Poisson process Simulating events: the Poisson process – p. 2/15

  3. Poisson random variable • Number of successes in a large number n of trials (binomial distribution) • when the probability p of a success is small. • Denote λ = np . Pr( X = k ) = e − λ λ k k ! . Property: E[ X ] = Var( X ) = λ. Simulating events: the Poisson process – p. 3/15

  4. Poisson random variable 0.1 Binomial distribution, p = 0 . 2 0.09 Poisson distribution, λ = np = 20 0.08 0.07 0.06 0.05 0.04 0.03 0.02 0.01 0 0 20 40 60 80 100 n = 100 Simulating events: the Poisson process – p. 4/15

  5. Poisson random variable 0.14 Binomial distribution, p = 0 . 1 Poisson distribution, λ = np = 10 0.12 0.1 0.08 0.06 0.04 0.02 0 0 20 40 60 80 100 n = 100 Simulating events: the Poisson process – p. 5/15

  6. Poisson process • Events are occurring at random time points • N ( t ) is the number of events during [0 , t ] • They constitute a Poisson process with rate λ > 0 if 1. N (0) = 0 , 2. # of events occurring in disjoint time intervals are independent, 3. distribution of N ( t + s ) − N ( t ) depends on s , not on t , 4. probability of one event in a small interval is approx. λh : Pr( N ( h ) = 1) lim = λ, h h → 0 5. probability of two events in a small interval is approx. 0: Pr( N ( h ) ≥ 2) lim = 0 . h h → 0 Simulating events: the Poisson process – p. 6/15

  7. Poisson process Property: Pr( N ( t ) = k ) = e − λt ( λt ) k N ( t ) ∼ Poisson ( λt ) , k ! Inter-arrival times: • S k is the time when the k th event occurs, • X k = S k − S k − 1 is the time elapsed between event k − 1 and event k . • X 1 = S 1 • Distribution of X 1 : Pr( X 1 > t ) = Pr( N ( t ) = 0) = e − λt . • Distribution of X 2 : Pr(0 events in ] s, s + t ] | S k − 1 = s ) Pr( X k > t | S k − 1 = s ) = Pr(0 events in ] s, s + t ]) = e − λt . = Simulating events: the Poisson process – p. 7/15

  8. Poisson process • X 1 is an exponential random variable with mean 1 /λ • X 2 is an exponential random variable with mean 1 /λ • X 2 is independent of X 1 . • Same arguments can be used for k = 3 , 4 . . . . Therefore, the CDF of X k is, for any k , F ( t ) = Pr( X k ≤ t ) = 1 − Pr( X k > t ) = 1 − e − λt . The pdf is f ( t ) = dF ( t ) = λe − λt . dt The inter-arrival times X 1 , X 2 ,. . . are independent and identically distributed exponential random variables with parameter λ , and mean 1 /λ . Simulating events: the Poisson process – p. 8/15

  9. Poisson process • Simulation of event times of a Poisson process with rate λ until time T : 1. t = 0 , k = 0 . 2. Draw r ∼ U (0 , 1) . 3. t = t − ln( r ) /λ . 4. If t > T , STOP. 5. k = k + 1 , S k = t . 6. Go to step 2. Simulating events: the Poisson process – p. 9/15

  10. Non homogeneous Poisson process • Assume that the rate varies with time, and call it λ ( t ) . • The events constitute a non homogeneous Poisson process with rate λ ( t ) if 1. N (0) = 0 2. # of events occurring in disjoint time intervals are independent, 3. probability of one event in a small interval is approx. λ ( t ) h : Pr (( N ( t + h ) − N ( t )) = 1) lim = λ ( t ) , h h → 0 4. probability of two events in a small interval is approx. 0: Pr (( N ( t + h ) − N ( t )) ≥ 2) lim = 0 . h h → 0 Simulating events: the Poisson process – p. 10/15

  11. Non homogeneous Poisson process • Mean value function: � t m ( t ) = λ ( s ) ds, t ≥ 0 . 0 • Poisson distribution: N ( t + s ) − N ( t ) ∼ Poisson ( m ( t + s ) − m ( t )) • Link with homogeneous Poisson process: • Consider a Poisson process with rate λ . • If an event occurs at time t , count it with probability p ( t ) . • The process of counted events is a non homogeneous Poisson process with rate λ ( t ) = λp ( t ) . Simulating events: the Poisson process – p. 11/15

  12. Non homogeneous Poisson process Proof: 1. N (0) = 0 [OK] 2. # of events occurring in disjoint time intervals are independent, [OK] 3. probability of one event in a small interval is approx. λ ( t ) h : [?] Pr (( N ( t + h ) − N ( t )) = 1) lim = λ ( t ) , h h → 0 4. probability of two events in a small interval is approx. 0: [OK] Pr (( N ( t + h ) − N ( t )) ≥ 2) lim = 0 . h h → 0 Simulating events: the Poisson process – p. 12/15

  13. Non homogeneous Poisson process • N ( t ) number of events of the non homogeneous process • N ′ ( t ) number of events of the underlying homogeneous process � k Pr (( N ′ ( t + h ) − N ′ ( t )) = k, 1 is counted ) Pr (( N ( t + h ) − N ( t )) = 1) = Pr (( N ′ ( t + h ) − N ′ ( t )) = 1 , 1 is counted ) = = Pr (( N ′ ( t + h ) − N ′ ( t )) = 1) Pr(1 is counted ) Pr(( N ′ ( t + h ) − N ′ ( t ))=1) Pr(( N ( t + h ) − N ( t ))=1) Pr(1 is counted ) lim h → 0 = lim h → 0 h h = λp ( t ) . Simulating events: the Poisson process – p. 13/15

  14. Non homogeneous Poisson process Simulation of event times of a non homogeneous Poisson process with rate λ ( t ) until time T : 1. Consider λ such that λ ( t ) ≤ λ , for all t ≤ T . 2. t = 0 , k = 0 . 3. Draw r ∼ U (0 , 1) . 4. t = t − ln( r ) /λ . 5. If t > T , STOP. 6. Generate s ∼ U (0 , 1) . 7. If s ≤ λ ( t ) /λ , then k = k + 1 , S ( k ) = t . 8. Go to step 3. Simulating events: the Poisson process – p. 14/15

  15. Summary • Poisson random variable • Poisson process • Non homogeneous Poisson process • Main assumption: events occur continuously and independently of one another • Typical usage: arrivals of customers in a queue • Easy to simulate Simulating events: the Poisson process – p. 15/15

Recommend


More recommend