0% found this document useful (0 votes)
60 views33 pages

Chi-Square Test for RNG Data Analysis

The document presents a statistical analysis of random number generator (RNG) data, testing the null hypothesis that the RNG is random against the alternative hypothesis that it is not. It outlines the observed and expected frequencies of symbols, the calculation of the Chi-Square test, and the decision rule based on the test value compared to a critical value. The analysis involves 11 symbols and a total of 1000 data points.

Uploaded by

Keerthi Sagar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views33 pages

Chi-Square Test for RNG Data Analysis

The document presents a statistical analysis of random number generator (RNG) data, testing the null hypothesis that the RNG is random against the alternative hypothesis that it is not. It outlines the observed and expected frequencies of symbols, the calculation of the Chi-Square test, and the decision rule based on the test value compared to a critical value. The analysis involves 11 symbols and a total of 1000 data points.

Uploaded by

Keerthi Sagar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd

Data Generated by RNG for the limit 1000

Null Hypothesis H0 The RNG is random and follow the expecte


Alternate Hypothesis H1 The RNG is not random and does not follo

S .No RNG Data Set No Of Symbols = 11


1 9
2 4 [Link] are 11 symbols ,so each symbol represent a category
3 5 So,k=11
4 10 The ,observed frequency (oi) for each symbol is the count of occurance
5 5
6 6 [Link] Expected Frequencies
7 6
8 6 Expected Frequencies for each symbol
9 0
10 8 Ei = Total Data Points/Number of Symbols
11 2
12 8 [Link]. 90.91
13 10 [Link] -Square Test
14 5
15 9
16 6
17 9
18 9
19 2
20 2
21 10 Where,
22 0 Oi:Observed Frequency of each symbol
23 5 Ei:Expected Frequency (90.91 for all symbols )
24 4
25 8 [Link] of Freedom (df):
26 6
27 9 df=k−1=11−1=10
28 0
29 4 [Link] with Critical Value
30 3
31 6 At the significance level α=0.05, the critical value for df =10 is approxima
32 2
33 8 [Link] Rule
34 1
35 8 if the Chi-Square Test Value is >18.31,Reject the null Hypotheis ,indicat
36 9 if the Chi-Square Test Value is < or =18.31,Fail to reject the null Hypoth
37 0
38 4
39 1
40 8
41 6
42 10
43 0
44 5
45 10
46 9
47 4
48 9
49 2
50 8
51 6
52 8
53 6
54 6
55 0
56 0
57 0
58 7
59 7
60 2
61 1
62 10
63 2
64 8
65 0
66 9
67 6
68 1
69 3
70 7
71 9
72 1
73 5
74 3
75 5
76 9
77 5
78 9
79 4
80 0
81 5
82 9
83 7
84 2
85 4
86 3
87 6
88 1
89 0
90 4
91 7
92 9
93 9
94 10
95 7
96 2
97 5
98 8
99 10
100 6
101 3
102 9
103 10
104 10
105 0
106 1
107 9
108 0
109 10
110 2
111 9
112 0
113 6
114 1
115 9
116 3
117 8
118 0
119 1
120 9
121 1
122 5
123 1
124 7
125 4
126 1
127 7
128 2
129 8
130 3
131 3
132 10
133 3
134 3
135 5
136 10
137 3
138 3
139 1
140 9
141 2
142 0
143 8
144 6
145 6
146 0
147 6
148 1
149 6
150 3
151 6
152 9
153 9
154 1
155 6
156 0
157 9
158 2
159 5
160 4
161 0
162 1
163 1
164 3
165 6
166 9
167 10
168 3
169 1
170 7
171 5
172 3
173 1
174 1
175 1
176 0
177 6
178 6
179 5
180 0
181 0
182 0
183 7
184 4
185 2
186 9
187 4
188 9
189 3
190 6
191 0
192 9
193 7
194 8
195 6
196 1
197 4
198 7
199 6
200 4
201 2
202 10
203 0
204 10
205 0
206 1
207 0
208 4
209 5
210 3
211 5
212 8
213 1
214 6
215 5
216 10
217 7
218 6
219 8
220 7
221 9
222 3
223 0
224 5
225 5
226 9
227 4
228 0
229 6
230 6
231 6
232 9
233 3
234 5
235 9
236 1
237 9
238 4
239 10
240 5
241 8
242 0
243 8
244 0
245 2
246 2
247 10
248 2
249 2
250 1
251 4
252 6
253 3
254 0
255 5
256 4
257 3
258 5
259 4
260 7
261 9
262 0
263 9
264 8
265 6
266 5
267 0
268 8
269 6
270 4
271 8
272 3
273 6
274 5
275 6
276 8
277 7
278 0
279 3
280 7
281 0
282 10
283 9
284 9
285 6
286 0
287 5
288 4
289 10
290 2
291 9
292 1
293 1
294 3
295 5
296 2
297 3
298 9
299 1
300 6
301 10
302 6
303 2
304 2
305 10
306 6
307 0
308 7
309 9
310 3
311 1
312 8
313 1
314 4
315 0
316 7
317 8
318 10
319 6
320 10
321 9
322 1
323 5
324 4
325 6
326 4
327 8
328 2
329 8
330 0
331 10
332 2
333 0
334 4
335 0
336 5
337 9
338 2
339 4
340 4
341 4
342 6
343 1
344 1
345 10
346 5
347 4
348 3
349 1
350 9
351 8
352 3
353 0
354 2
355 3
356 2
357 9
358 7
359 9
360 2
361 3
362 10
363 5
364 2
365 9
366 5
367 10
368 1
369 10
370 10
371 7
372 3
373 3
374 6
375 4
376 8
377 7
378 8
379 10
380 5
381 3
382 1
383 10
384 10
385 1
386 9
387 7
388 2
389 8
390 1
391 3
392 3
393 7
394 6
395 3
396 5
397 9
398 6
399 5
400 0
401 2
402 3
403 2
404 9
405 10
406 4
407 9
408 9
409 2
410 7
411 1
412 3
413 1
414 0
415 6
416 8
417 7
418 2
419 5
420 6
421 9
422 9
423 5
424 10
425 0
426 9
427 5
428 3
429 2
430 4
431 8
432 4
433 3
434 9
435 1
436 6
437 9
438 3
439 1
440 2
441 0
442 6
443 9
444 10
445 3
446 2
447 6
448 7
449 9
450 8
451 5
452 0
453 2
454 8
455 4
456 8
457 7
458 10
459 9
460 10
461 1
462 5
463 8
464 7
465 0
466 7
467 1
468 3
469 2
470 5
471 2
472 1
473 4
474 6
475 7
476 2
477 4
478 8
479 5
480 8
481 4
482 2
483 3
484 8
485 10
486 7
487 7
488 7
489 1
490 3
491 8
492 1
493 8
494 5
495 10
496 8
497 6
498 2
499 4
500 9
501 1
502 7
503 8
504 0
505 8
506 9
507 1
508 7
509 1
510 1
511 6
512 3
513 8
514 1
515 2
516 3
517 5
518 3
519 4
520 8
521 6
522 6
523 2
524 9
525 3
526 6
527 8
528 5
529 6
530 8
531 1
532 10
533 5
534 4
535 0
536 4
537 4
538 0
539 10
540 1
541 6
542 7
543 2
544 2
545 10
546 2
547 0
548 3
549 4
550 8
551 2
552 7
553 1
554 9
555 0
556 4
557 4
558 8
559 1
560 5
561 10
562 10
563 10
564 1
565 9
566 0
567 3
568 1
569 8
570 9
571 5
572 3
573 9
574 6
575 3
576 4
577 0
578 6
579 6
580 3
581 3
582 3
583 8
584 0
585 7
586 1
587 6
588 4
589 1
590 10
591 1
592 6
593 7
594 0
595 9
596 6
597 10
598 8
599 6
600 7
601 0
602 2
603 4
604 5
605 2
606 2
607 8
608 3
609 6
610 8
611 6
612 5
613 10
614 0
615 8
616 3
617 4
618 7
619 3
620 8
621 6
622 5
623 8
624 0
625 3
626 10
627 6
628 6
629 0
630 8
631 1
632 8
633 6
634 4
635 9
636 8
637 1
638 3
639 2
640 6
641 6
642 0
643 4
644 7
645 4
646 1
647 2
648 6
649 3
650 0
651 3
652 4
653 6
654 1
655 2
656 4
657 1
658 10
659 2
660 4
661 5
662 7
663 8
664 8
665 8
666 4
667 1
668 1
669 3
670 3
671 0
672 8
673 5
674 3
675 7
676 4
677 1
678 8
679 5
680 5
681 2
682 7
683 9
684 0
685 8
686 2
687 5
688 10
689 3
690 9
691 8
692 5
693 10
694 2
695 10
696 1
697 4
698 10
699 4
700 2
701 1
702 3
703 9
704 5
705 9
706 2
707 2
708 6
709 10
710 8
711 3
712 1
713 8
714 9
715 2
716 10
717 2
718 3
719 7
720 2
721 9
722 9
723 8
724 7
725 5
726 10
727 4
728 5
729 2
730 4
731 5
732 0
733 5
734 2
735 5
736 10
737 1
738 8
739 3
740 0
741 0
742 5
743 3
744 4
745 2
746 1
747 8
748 10
749 4
750 1
751 2
752 4
753 4
754 0
755 4
756 2
757 4
758 2
759 5
760 4
761 2
762 5
763 4
764 7
765 1
766 1
767 7
768 10
769 7
770 2
771 9
772 7
773 8
774 3
775 6
776 2
777 9
778 9
779 9
780 9
781 8
782 4
783 2
784 7
785 3
786 3
787 1
788 3
789 9
790 6
791 2
792 7
793 2
794 8
795 1
796 4
797 6
798 2
799 5
800 9
801 3
802 5
803 6
804 8
805 9
806 10
807 0
808 10
809 0
810 2
811 1
812 9
813 5
814 8
815 6
816 5
817 10
818 5
819 7
820 7
821 3
822 9
823 2
824 0
825 7
826 3
827 3
828 7
829 5
830 0
831 2
832 3
833 8
834 6
835 6
836 0
837 5
838 0
839 9
840 2
841 3
842 3
843 9
844 5
845 2
846 2
847 4
848 9
849 9
850 4
851 2
852 1
853 6
854 7
855 2
856 3
857 10
858 7
859 4
860 0
861 1
862 10
863 3
864 1
865 7
866 0
867 7
868 3
869 2
870 8
871 4
872 4
873 5
874 7
875 3
876 10
877 5
878 9
879 2
880 3
881 2
882 4
883 0
884 3
885 0
886 10
887 7
888 7
889 9
890 9
891 9
892 10
893 10
894 5
895 1
896 7
897 8
898 0
899 0
900 1
901 1
902 0
903 4
904 9
905 3
906 2
907 10
908 8
909 5
910 8
911 2
912 3
913 2
914 9
915 3
916 3
917 6
918 10
919 4
920 0
921 0
922 3
923 10
924 4
925 3
926 0
927 9
928 5
929 7
930 1
931 9
932 3
933 7
934 0
935 5
936 1
937 2
938 6
939 5
940 0
941 0
942 8
943 4
944 1
945 1
946 4
947 7
948 7
949 10
950 3
951 3
952 7
953 6
954 6
955 2
956 0
957 6
958 5
959 2
960 5
961 1
962 5
963 3
964 7
965 10
966 6
967 0
968 1
969 0
970 3
971 10
972 3
973 9
974 9
975 10
976 2
977 8
978 6
979 0
980 4
981 8
982 1
983 2
984 10
985 6
986 5
987 7
988 1
989 2
990 6
991 5
992 6
993 6
994 6
995 9
996 1
997 10
998 10
999 8
1000 6
m and follow the expected uniform distribution.
ndom and does not follow the expected uniform distribution.

ent a category

s the count of occurance in the RNG data set

Number of Symbols

e for df =10 is approximately 18.31 from table


e null Hypotheis ,indicating RNG is not Random
to reject the null Hypotheis ,indicating RNG is Random
Ei=90.91

Symbol Observed Frequency (OiExpected Frequency (Ei)


0 93 90.91
1 93 90.91
2 93 90.91
3 93 90.91
4 93 90.91
5 93 90.91
6 93 90.91
7 93 90.91
8 93 90.91
9 92 90.91
10 92 90.91

Chi-Sq. Test

Decision Rule

if the Chi-Square Test Value is >18.31,Reject H0 ,indicating RNG is not Random


if the Chi-Square Test Value is < or =18.31,Fail to reject the H0 ,indicating RNG is Ran

Null Hypothesis H0 The RNG is random and follow the expected uniform distribu
Alternate Hypothesis H1 The RNG is not random and does not follow the expected un
Symbols Frequency
0 93
1 93
2 93
Chi -Square Calculation 3 93
0.048048619513805 4 93
0.048048619513805 5 93
0.048048619513805 6 93
0.048048619513805 7 93
0.048048619513805 8 93
0.048048619513805 9 92
0.048048619513805 10 92
0.048048619513805
0.048048619513805
0.013068969310307
0.013068969310307

0.4585755142 (Indicating RNG is random)

ect H0 ,indicating RNG is not Random


1,Fail to reject the H0 ,indicating RNG is Random

om and follow the expected uniform distribution.


andom and does not follow the expected uniform distribution.

You might also like