Displaying 1 result from an estimated 1 matches for "no_of_froud".
Did you mean:
no_of_frouds
2006 Jun 30
2
Query : Chi Square goodness of fit test
I want to calculate chi square test of goodness of fit to test,
Sample coming from Poisson distribution.
please copy this script in R & run the script
The R script is as follows
########################## start
#########################################
No_of_Frouds<-
c(4,1,6,9,9,10,2,4,8,2,3,0,1,2,3,1,3,4,5,4,4,4,9,5,4,3,11,8,12,3,10,0,7)
N <- length(No_of_Frouds)
# Estimation of Parameter
lambda<- sum(No_of_Frouds)/N
lambda
pmf <- dpois(i, lambda, log = FALSE)
step_function <- ppois(i, lambda, lower.tail = TRUE, log.p = FALSE)
# Ch...