Professional Documents
Culture Documents
August 3, 2021
1
1. 6.765201 2. 25.999596 3. 37.470006 4. 24.000396 5. 5.764801
[9]: #Fitting of poisson distribution and finding theoretical frequencies
x <- c(0,1,2,3,4)
f <- c(19,18,8,4,1)
lambda <- sum(f*x)/sum(f)
lambda
poisson<-dpois(x=0:4,lambda)
N <-sum(f)
freq <- N*poisson
freq
.
1
1. 18.3939720585721 2. 18.3939720585721 3. 9.19698602928606 4. 3.06566200976202
5. 0.766415502440505
[10]: #Fitting of poisson distribution and finding theoretical frequencies
x <- c(0,1,2,3,4)
f <- c(211,90,19,5,0)
lambda <- sum(f*x)/sum(f)
lambda
poisson<-dpois(x=0:4,lambda)
N <-sum(f)
freq <- N*poisson
freq
.
0.44
1. 209.311836852021 2. 92.0972082148892 3. 20.2613858072756 4. 2.97166991840042
5. 0.326883691024046
[ ]:
.