Applied Poker Test for General Digital Sequences

Similar documents
2. Independence and Bernoulli Trials

Two Fuzzy Probability Measures

Application of Generating Functions to the Theory of Success Runs

Dr. Shalabh Department of Mathematics and Statistics Indian Institute of Technology Kanpur

Lecture 9. Some Useful Discrete Distributions. Some Useful Discrete Distributions. The observations generated by different experiments have

Random Variables. ECE 313 Probability with Engineering Applications Lecture 8 Professor Ravi K. Iyer University of Illinois

THE PUBLISHING HOUSE PROCEEDINGS OF THE ROMANIAN ACADEMY, Series A, OF THE ROMANIAN ACADEMY Volume 9, Number 3/2008, pp

Introducing Sieve of Eratosthenes as a Theorem

D KL (P Q) := p i ln p i q i

Summary of the lecture in Biostatistics

Factorization of Finite Abelian Groups

å 1 13 Practice Final Examination Solutions - = CS109 Dec 5, 2018

Computations with large numbers

Artificial Intelligence Learning of decision trees

Chain Rules for Entropy

Lower and upper bound for parametric Useful R-norm information measure

IS 709/809: Computational Methods in IS Research. Simple Markovian Queueing Model

Modified Cosine Similarity Measure between Intuitionistic Fuzzy Sets

Chapter 8: Statistical Analysis of Simulated Data

Sebastián Martín Ruiz. Applications of Smarandache Function, and Prime and Coprime Functions

UNIT 7 RANK CORRELATION

Estimation of Stress- Strength Reliability model using finite mixture of exponential distributions

M2S1 - EXERCISES 8: SOLUTIONS

Establishing Relations among Various Measures by Using Well Known Inequalities

LINEARLY CONSTRAINED MINIMIZATION BY USING NEWTON S METHOD

An Efficient Conjugate- Gradient Method With New Step-Size

Channel Models with Memory. Channel Models with Memory. Channel Models with Memory. Channel Models with Memory

On generalized fuzzy mean code word lengths. Department of Mathematics, Jaypee University of Engineering and Technology, Guna, Madhya Pradesh, India

THE PROBABILISTIC STABILITY FOR THE GAMMA FUNCTIONAL EQUATION

Bivariate Vieta-Fibonacci and Bivariate Vieta-Lucas Polynomials

COMPUTERISED ALGEBRA USED TO CALCULATE X n COST AND SOME COSTS FROM CONVERSIONS OF P-BASE SYSTEM WITH REFERENCES OF P-ADIC NUMBERS FROM

A tighter lower bound on the circuit size of the hardest Boolean functions

Special Instructions / Useful Data

Parameter, Statistic and Random Samples

CHAPTER VI Statistical Analysis of Experimental Data

Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand DIS 10b

Simulation Output Analysis

Pr[X (p + t)n] e D KL(p+t p)n.

CONTROL CHARTS FOR ATTRIBUTES

Minimizing Total Completion Time in a Flow-shop Scheduling Problems with a Single Server

Solving Constrained Flow-Shop Scheduling. Problems with Three Machines

NP!= P. By Liu Ran. Table of Contents. The P vs. NP problem is a major unsolved problem in computer

On the introductory notes on Artin s Conjecture

STK3100 and STK4100 Autumn 2017

Optimum Probability Distribution for Minimum Redundancy of Source Coding

ELEMENTS OF NUMBER THEORY. In the following we will use mainly integers and positive integers. - the set of integers - the set of positive integers

STK3100 and STK4100 Autumn 2018

Comparison of Dual to Ratio-Cum-Product Estimators of Population Mean

The Mathematical Appendix

Lecture 7. Confidence Intervals and Hypothesis Tests in the Simple CLR Model

Comparing Different Estimators of three Parameters for Transmuted Weibull Distribution

On the Rational Valued Characters Table of the

STRONG CONSISTENCY FOR SIMPLE LINEAR EV MODEL WITH v/ -MIXING

Complete Convergence and Some Maximal Inequalities for Weighted Sums of Random Variables

A nonsmooth Levenberg-Marquardt method for generalized complementarity problem

Lebesgue Measure of Generalized Cantor Set

Chapter 5 Properties of a Random Sample

Unit 9. The Tangent Bundle

Chapter 5 Properties of a Random Sample

18.413: Error Correcting Codes Lab March 2, Lecture 8

NP!= P. By Liu Ran. Table of Contents. The P versus NP problem is a major unsolved problem in computer

Median as a Weighted Arithmetic Mean of All Sample Observations

Maximum Walk Entropy Implies Walk Regularity

Lecture 3 Probability review (cont d)

A Family of Non-Self Maps Satisfying i -Contractive Condition and Having Unique Common Fixed Point in Metrically Convex Spaces *

Probability and Statistics. What is probability? What is statistics?

X ε ) = 0, or equivalently, lim

Non-uniform Turán-type problems

Parallel Programming: Speedups and Amdahl s law. Definition of Speedup

CS 2750 Machine Learning Lecture 5. Density estimation. Density estimation

Unimodality Tests for Global Optimization of Single Variable Functions Using Statistical Methods

ECONOMETRIC THEORY. MODULE VIII Lecture - 26 Heteroskedasticity

Nonparametric Density Estimation Intro

Unique Common Fixed Point of Sequences of Mappings in G-Metric Space M. Akram *, Nosheen

Bayes Estimator for Exponential Distribution with Extension of Jeffery Prior Information

02/15/04 INTERESTING FINITE AND INFINITE PRODUCTS FROM SIMPLE ALGEBRAIC IDENTITIES

C.11 Bang-bang Control

Recursive linear estimation for discrete time systems in the presence of different multiplicative observation noises

IMPROVED GA-CONVEXITY INEQUALITIES

Third handout: On the Gini Index

Analysis of Variance with Weibull Data

{ }{ ( )} (, ) = ( ) ( ) ( ) Chapter 14 Exercises in Sampling Theory. Exercise 1 (Simple random sampling): Solution:

On A Two Dimensional Finsler Space Whose Geodesics Are Semi- Elipses and Pair of Straight Lines

CHAPTER 6. d. With success = observation greater than 10, x = # of successes = 4, and

for each of its columns. A quick calculation will verify that: thus m < dim(v). Then a basis of V with respect to which T has the form: A

Introduction to local (nonparametric) density estimation. methods

Solutions to Odd-Numbered End-of-Chapter Exercises: Chapter 17

MATH 371 Homework assignment 1 August 29, 2013

STK4011 and STK9011 Autumn 2016

A New Family of Transformations for Lifetime Data

Diagnosing Problems of Distribution-Free Multivariate Control Chart

1 Onto functions and bijections Applications to Counting

Lecture Notes Types of economic variables

Derivation of 3-Point Block Method Formula for Solving First Order Stiff Ordinary Differential Equations

Analysis of Lagrange Interpolation Formula

THE ROYAL STATISTICAL SOCIETY GRADUATE DIPLOMA

Graphs and graph models-graph terminology and special types of graphs-representing graphs and graph isomorphism -connectivity-euler and Hamilton

TESTING FOR SERIAL CORRELATION BY MEANS OF EXTREME VALUES ABSTRACT

Module 7: Probability and Statistics

= 2. Statistic - function that doesn't depend on any of the known parameters; examples:

Transcription:

IOSR Joural of Mathematcs IOSR-JM e-issn: 78-578, -ISSN: 39-765X. Volume, Issue Ver. V Ja. - Feb. 6, PP 7-3 www.osrjourals.org Ale Poker Test for Geeral Dgtal Sequeces Sahar A. Mohamme Abstract: The Poker test s cosere oe of the mortat statstcal raomess tests. Ths test, for eeece, s base o the frequecy whch certa gts are reeate a seres of umbers. I ths aer we wll attemt to geeralze the bary oker test to be sutable to ale o ot oly bary sequeces, aother wor, the geeralze oker test coul be ale o gtal m- sequeces for m. The geeralze oker test calle Groue oker test. Keywors: Statstcal Raomess Tests, Poker Test, Hyothess Test, h-square Test, crytograhy. I. Itroucto The roblem of testg raomess s motvate by the ee to evaluate of the qualty of fferet raom umber geerators use by may ractcal alcatos clug comuter smulatos, crytograhy a commucatos ustry []. The oker test treats umbers groue together as a oker ha. The the has obtae are comare to what s execte usg the ch- square test []. Defto [3]: A Pseuo Raom Bt Geerator PRBG s a etermstc algorthm whch, gve a truly raom bary sequece of legth k, oututs a bary sequece of legth, k whch aears to be raom. The ut to the PRBG s calle the see, whle the outut of the PRBG s calle a seuoraom bt sequece. Remark [3]: The ch-square strbuto ca be use to comare the gooess-of-ft of the observe frequeces of evets to ther execte frequeces uer a hyothesze strbuto. The strbuto wth egrees of freeom arses ractce whe the squares of eeet raom varables havg staar ormal strbutos are summe. I 98, the fve statstcal tests for local raomess are beg fou to be ale o bary key stream sequeces [4]. I 994, a ew ackage of raomess trouce by RYPT-X [5]. Ths ackage s a mcrocomuter ackage that s tee to be use to test ether large bary strgs that are to be use as key stream stream chers or block cher algorthms. Oe of the tests of ths ackage s subblock test whch s a smlar to oker test, ts arttos the stream to F has of legth m bts. For a stream of sze, where F/ m 5, the total umber of has s /m, where eotes the teger value. The am of ths test s to show that there s a equal umber of each of m ossble has. If f eotes the frequecy of ha atter s, the the test statstc use s [6]: m m T= f F F Ths comare wth ch-square strbuto wth egree of freeom equal to m -. I 9, Al et al. [3] trouce a aer that clue the geeralzato of three basc a mortat tests of the staar statstcal basc raomess tests, these tests are frequecy, Ru a Autocorrelato tests. I 4, Ibraheem [7], extes the -tule to -tule 3 to aly bary seral test for bary sequeces. Seco, she geeralze the -tule bary seral test to -tule gtal seral test for gtal m- sequeces m3 geerate from gtal geerators. astly, she extes the -tule to -tule gtal seral test for gtal sequeces. The results of raomess tests of alyg the bary a gtal oker tests the bary a gtal m- sequeces were trouce tycal tables usg hyothess test usg h-square test. The bary a gtal oker test results are obtae by rogram usg verso. of MATAB aguage wth o tme metoe to obta the raomess results. II. Hyothess Test for Raomess Usg h-square Test Suose we have a exermet wth ossble outcomes, wth ukow robabltes,,...,, ow we attemt to ece whch of the two hyotheses or H A s true, where : = for all =,,..., a H A : for some =,,...,, where,,..., are kow. DOI:.979/578-573 www.osrjourals.org 7 Page

Ale Poker Test for Geeral Dgtal Sequeces We coser eeet reettos of the exermet wth the raom varables N eotg the umber of tmes the th outcome occurs, for =,,, where N. We use the test statstc [7]: N we obta the P-value of the test aroxmately for large, usg the ch-square table for P=P, where s the observe value of. I artcular, a small value of, where was obtae from h-square table at freeom egree = - a sgfcat value =. or =.5 that leas to a large P- value s strog evece favor of rove that the ata are really geerate from a raom samle. I orer to test the hyothess, we ale the followg stes [8]: State the ull a alteratve hyotheses. Select the strbuto to use. Determe the rejecto a o-rejecto regos. alculate the value of the test statstc. Make a ecso. III. Bary Poker Test et be a ostve teger such that 3, a let k=. Dve the sequeces to k o-overlag arts each of legth, a let be the observe umber of occurreces of the th tye of sequece of legth,. The oker test etermes whether the sequeces of legth each aear aroxmately the same umber of tmes S, as woul be execte for a raom sequece. The execte value of the strg whch cossts of s wth o coserato to arragemet of s s [9]: E The statstc use s: whch aroxmately follows a strbuto wth = egrees of freeom. Note that the oker test s a geeralzato of the frequecy test: settg = the oker test yels the frequecy test. Examle : lets have the followg sequece wth legth =3, m=. et S=. For =3, =,3,3,, the E =.5,3.75,3.75,.5 resectvely. From the sequece we have the followg frequeces usg relato 3: Samles Freq.,, 4,, 4 3 3.5 4 3.75 4 3.75.5 =.333, ote.5 3.75 3.75.5 =.333 < =7.8, ths mea we accet a reject H A, ths sequece ass the bary oker test. Examle : We test two sequeces, S whch s geerate from raom geerator raom fucto of the comuter whle the sequece S geerate from o-raom geerator two shft regsters wth AND boolea fucto usg bary or classcal oker test PT for m= a =3,4,5. Table clues the formato of the legth of the two sequeces wth the execte E a the frequeces values. Whle table shows the DOI:.979/578-573 www.osrjourals.org 8 Page

Ale Poker Test for Geeral Dgtal Sequeces values a the accete or rejecto ecso for the two sequece S a S, the formato of alyg the relato 3 obtae from table. =7.85, 9.488 a.7for ==3,4 a 5 resectvely. Table : Iformato of the two sequeces S a S. = 3 4 5 E 4.67 5 5 4.67 5.63 6.5 93.75 6.5 5.63 6.5 3.5 6.5 6.5 3.5 6.5 S 4 5 46 69 9 56 7 9 6 64 9 S 6 4 57 56 59 8 6 7 5 48 6 9 4 =5 3 4 5 E 8.3 65 65 8.3 78.3 3.5 468.8 3.5 78.3 3.3 56.3 3.5 3.5 56.3 3.3 S 3 655 66 68 356 447 9 88 39 53 3 33 5 33 S 83 558 5 5 55 39 5 6 355 3 93 9 = D 3 4 5 E 46.7 5 5 46.7 56.3 65 937.5 65 56.3 6.5 3.5 65 65 3.5 6.5 S 394 38 9 4 38 65 967 68 6 45 33 65 6 39 6 S 493 7 56 9 798 567 76 39 597 66 489 5 68 3 Seq. S S Table : classcal Poker test PT results for two sequeces. PT Values 5 3 4 5 3 4 5 3 4 5.6533 5.3547.736.3467.4.67.753 3.5 6.45 Decso Accet Accet Accet Accet Accet Accet Accet Accet Accet 44.86 633.34 739. 49. 9.3 385.3 3395. 4338. 598.9 Decso Remark : From examle, f we re-calculate the frequecy a execte the values for the samles of bary sequece: jk Samles Freq. These samles have the same execte value s.t. E =E=/ 3 */ =/ 3 *3/3=.5. So relato 3 ca be extee to followg relato for =3: E jk j k E.5.5.5.,.5.5.5 Notes the close results for examle relatos 3 a 4. 4 I the ext roosto we wll rove that f the bary sequece S asses the oker test, relato 3, the t wll satsfes oker test for relato 4 a vce versa., Proosto : The sequece S asses bary oker test for relato 3 f a oly f t asses bary oker test for relato 4. Proof: : ths mea E =, where =//. For smlcty let's choose =, the: =, = +, = a = =, = + =+=, = =. DOI:.979/578-573 www.osrjourals.org 9 Page

Ale Poker Test for Geeral Dgtal Sequeces DOI:.979/578-573 www.osrjourals.org Page otce a a b Now c Sce E =, the Substtute c, obta: e From a, b a e we obta: j k jk E E I the same way we ca rove the other se. Proosto ca be rove for ay, a ow ts o matter f we ale relato 3 or 4 to ece whether that S wll asses bary oker test. IV. Geeralzg the Bary -Tule Dgtal Poker Test I ths secto we wll geeralze the bary -tule sequeces to calculate the gtal oker test for gtal m- sequeces. et S be the gtal m-sequece geerate from gtal geerator wth legth, where s S, a s m-, =,,,,-. Now we wll roose a ew oker test, we calle t Groue oker test GPT, s.t. we wll ve the samles of -tule subsequece to m sjot sets of samles. et A={,,,m -} be the set of all fferet teger sum of the all robable -tule samles of the teste gtal sequece S. we arttoe the set A to equal orer subsets A ={x =,,,x -}, A ={x,x +,,x -},, A m- ={x m-,x m- +,,x m =m -}, s.t. x =m - =h, where =,,,m-. Notce that:

Ale Poker Test for Geeral Dgtal Sequeces m A A. A k A j, where k j, k, j m- ay two fferet subsets of A are sjot. A =m a A =h=m -, m-. Examle 3: For m=3 a =3, we have the followg samles:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, Ths meas we have m =3 3 =7 samles. We have A={,,,6}, A ={,,,8}, A ={9,,,7} a A ={8,9,,6}. A =3 3 =7, A = 3 =9=h, x =,9,8, =,,. Now let N, =,,,m-, be the total observe frequecy of all elemets of the set A occurre gtal sequece S. The robablty P for each gt,..., m - the set A s: Ps k = / m, k=,,,m -. 5 Sce the orer of the set A, A =h=m -, the the robablty for each gt set A s: Ps t =h/ m =/m, t=,+,,h. 6 The the execte value E s: E=/m./=/m. 7 whch s equal for all gts s t. Whe alyg ch-square test, wll comare wth table value wth freeom egree =m. Its obvous that f the frequecy N of each stct gt s t s aroxmate to other frequeces, the the gtal sequece s satsfes the oker ostulate, so must be: N N N m- The the GPT wll be: m N m. m. Examle 4: et's call examle, =3, m=, =3. x =, 4, A ={,,,3} a A ={4,5,6,7}, E=.5*3/3=5, N Samles Freq. N,,, 5 N,,, 5 8 m N m. m. = <7.85, the S asses GPT. 5 5 5 5 5 5 Examle 5: let's call examle, usg GPT for m= a =3,4,5. Table 3 clues the ew formato of the two sequeces S a S wth the ew execte E a ew frequeces N values. Whle table4 shows the values a the accete or rejecto ecso for the sequece S a S, the formato of alyg the relato 8 obtae from table 3. =5.99for =m=. DOI:.979/578-573 www.osrjourals.org Page

Ale Poker Test for Geeral Dgtal Sequeces Table 3: Iformato of the two sequeces S a S., E, E =3, E=66.667 =4, E=5 =5, E= S N 69 64 37 3 98 S 5 8 79 7 44 56, E =3, E=833.33 =4, E=65 =5, E=5 5 S N 88 848 64 6 57 483 S 75 39 973 7 77 8, E =3, E=666.7 =4, E=5 =5, E= S N 67 76 34 66 985 5 S 47 863 848 65 47 53 Seq. S S Table 4: GPT results for two sequeces for m=. GPT Values 5 3 4 5 3 4 5 3 4 5.753.34.8.543.7.56.873.496.45 Decso Accet Accet Accet Accet Accet Accet Accet Accet Accet 87.733 46.656 38.7 468.87 387.53 95.94 774.73 57.7 44.8 Decso Examle 6: Now lets choose m=3,4 a 5, a =3,4,5 for the two sequeces S a S wth legth =5 gts. Table 5 llustrates the GPT results usg ch-square test for the two chose sequeces. 9.488 a.7for =m=3,4 a 5 resectvely. =7.85, Seq. S S Table 5: GPT results for two sequeces for m=3,4,5 a =3,4,5. GPT Values =5 m 3 4 5 3 4 5 3 4 5 3 4 5.833 4.538.34.499 9.3584 9.944.967.664 4.37 Decso Accet Accet Accet Accet Accet Accet Accet Accet Accet 367.5 79.4 5.9 69.9 434.4 36.44 65.3 88.35 6.73 Decso V. oclusos. As kow, the roof of raomess for ay sequece s robablstc, so t's referable to choose as log as ossble a choose may examles of sequeces to be teste by oker test to obta accurate ecso.. I orer to obta accurate raomess ecso for ay gtal sequece, we have to choose fferet values for. 3. From Al et al. [3] Ibraheem [7] wth ths work we wll obta fve gtal raomess test for gtal sequeces so we suggest a gtal statstcal raomess ackage usg fve gtal tests; frequecy, ru, autocorrelato, seral a oker tests. Refereces []. Abel-Rehm W. M. F., Ismal I. A. a Morsy E., "Testg Raomess: Poker Test wth Has of Three Numbers", Joural of omuter Scece 8 8: 353-357, ISSN 549-3636,. []. Stewart, W. J., "Probablty, Markov has, Queues, a Smulato: The Mathematcal Bass of Performace Moelg", st E., Prceto Uversty Press, Prceto, ISBN-: 69466, : 758, 9. [3]. Al F. H, Mohamme, S. A. a Shammra, M. A., Geeralze the Raomess Tests to Test the Dgtal Sequeces Prouce from Dgtal Stream her Systems, Iraq Joural for Scece, Bagha Uversty, ollege of Scece, 9. [4]. Beker, H. a Per, F., her Systems: The Protecto of ommucatos, Joh Wley & Sos, New York, 98. [5]. Gustafso, H., Dawso, E., Nelse,. a aell, W., A omuter Package for Measurg the Stregth of Ecryto Algorthms, omuters & Securty, 3, 687 697, 994. DOI:.979/578-573 www.osrjourals.org Page

Ale Poker Test for Geeral Dgtal Sequeces [6]. Brassar, G., Moer rytology: A Tutoral, NS 35, Srger-Verlag, New York, 988. [7]. Ibraheem S. K., "Seral Test Exteso a Geeralzato to Test the Dgtal Sequeces", Iraq Acaemc Scetfc Jourals, ISSN: 84635X, Volume: 5 Issue:4 Pages: 83-96, 4. [8]. htt://www.serue.ac./.../44raomo.f,. [9]. Al-Shammar, A. G., Mathematcal Moelg a Aalyss Techque of Stream her rytosystems, Ph. D. Thess, Uversty of Techology, Ale Sceces, 9. DOI:.979/578-573 www.osrjourals.org 3 Page