My code in R to the generation of random numbers:
A<-c(8, 13, 13, 14, 15, 11, 16, 11)
n<-15
B<-c()
for (j in 1:length(A)) {
arrival<-vector("numeric", length = 15)
sum<-A[j]
for (i in 1:sum) {
home<-abs(floor((runif(1,1,(n+0.99999)))))
arrival[home]<-arrival[home]+1
}...
Hey @hIsmith
I'm doing this because the chi-square test requires a sufficient sample size in order for the chi-square approximation to be valid.
Am I right?
1 degree--> First element of the sample B
15 degree --> fifteenth element of the sample B
0+1+0+1+2+0+0+0+0+1+0+0+0+1=8 ---> (8 is the...
Does increasing the sample size by random number generation change the distribution?
I have a sample of size 8. Each sample value represents the number of bus arrivals at a bus stop every 15 minutes. But I wanted to apply the chi-square test to verify the fitting with the Poisson distribution...