Experiment Estimation
Experiment Estimation
Date Of Submission :
Here, we shall use the discrete version of the inverse algorithm to generate 20 random variables
from the Poisson Distribution.
The PMF of a random variable ‘X’ following Poisson Distribution with parameter ‘’ is
given by:
i
e−¿❑
P ( X=i ) = ¿
i!
The key to using the inverse algorithm transform method to generate such a random variable is to
the following identity.
Pi+1 = ❑ Pi ; i = 0,1,2,……
i +1
Upon using the recursion to complete the Poisson probability as they become needed , the
inverse transform for generating a poisson random variable with parameter ‘’ can be expressed
as follows :
# ALGORITHM
Step 1 : Generate a random number ‘u’ lying between ‘0’ and ‘1’.
P
Step 4 : P= , F = F+P , i = i+1 .
i+1
Step 5 : Go to Step 3 .
The R-program is given by :
n=100
lambda=1.6
P=mat.or.vec(n+1,1)
F=mat.or.vec(n+1,1)
for(i in 1:n)
P[1]=exp(-lambda)
P[i+1]=((lambda)/(i+1))*P[i]
F[1]=P[1]
F[i+1]=F[i]+P[i+1]}
U1<-runif(15,0,F[n])
[15] 0.27531164
Now, we construct the following table for generating the required numbers of random variable
from Poisson with = 1.6
TABLE : 1
X F(x) F(x)=F(x+1)
0 0.2018965 0.2018965-0.3634137
1 0.3634137 0.3634137-0.4495562
2 0.4495562 0.4495562-0.4840133
3 0.4840133 0.4840133-0.4950395
4 0.4950395 0.4950395-0.4979798
5 0.4979798 0.4979798-0.4986519
6 0.4986519 0.4986519-0.4987863
7 0.4987863 0.4987863-0.4988102
8 0.4988102 0.4988102-0.4988140
9 0.4988140 0.4988140-0.4988146
10 0.4988146 0.4988146-0.4988147
11 0.4988147 0.4988147-0.4988147
12 0.4988147 0.4988147-0.4988147
13 0.4988147 0.4988147-0.4988147
14 0.4988147 0.4988147-0.4988147
15 0.4988147 0.4988147-0.4988147
16 0.4988147 0.4988147-0.4988147
17 0.4988147 0.4988147-0.4988147
18 0.4988147 0.4988147-0.4988147
19 0.4988147 0.4988147-0.4988147
TABLE : 2
CONCLUSION :
0,1,1,2,0,1,0,2,1,2.