27.2 Generate 15 numbers using a seed of x0 = 1 in the following generator: xn = (5xn-1+ 1) mod16
I HOPE ITS HELP FUL TO YOU IF YOU HAVE ANY DOBUTS PLS COMMENTS BELOW..I WILL BE THERE TO HELP YOU...ALL THE BEST..
AS FOR GIVEN DATA...
Generate 15 numbers using a seed of x0 = 1 in the following generator: xn = (5xn-1+ 1) mod16
EXPLANATION ::-
Rcode:
> options(scipen = 999)
> x<-vector()
> x[1]=1;
> for(i in 2:15){
+ x[i]=((5*x[i-1])+1)
+ x[i]=x[i]%%16
+ }
> ks.test(x,"pnorm")
One-sample Kolmogorov-Smirnov test
data: x
D = 0.91058, p-value = 0.0000000000000006661
alternative hypothesis: two-sided
a)
1 6 15 12 13 2 11 8 9 14 7 4 5 10 3
I HOPE YOU UNDERSTAND...PLS RATE THUMBS UP..ITS HELPS ME ALOT
THANK YOU....!!
Get Answers For Free
Most questions answered within 1 hours.