SCIENCE WORLD JOURNAL VOL (NO4) 008 www.scecncewoldounal.og ISSN 597-64 SHORT COMMUNICATION ANALYSING THE APPROXIMATION MODEL TO BIRTHDAY PROBLEM *CHOJI, D.N. & DEME, A.C. Depatment of Mathematcs Unvesty of Jos, Ngea *(Coespondng autho) chod@yahoo.com Felle (968) stated that the mathematcal theoy of pobablty gans pactcal value and an ntutve meanng n connecton wth eal o conceptual expements such as tossng a con 00 tmes, thowng thee dce, fequency of accdents, o detemnng fom a goup of people those wth the same bthdays. All these descptons ae athe vague, and, n ode to ende the theoy meanngful, we have to agee on what we mean by possble esults of expement o obsevaton n queston. Consde an expement of detemnng fom a goup of people, the pobablty of two people n the goup havng the same bthday. We wll stat by fst assumng that thee ae days n a yea f leap yeas ae neglected. Ths assumpton s good enough as t taes fou yeas befoe a leap yea s ealzed and on condton that such a yea s also not dvsble by 00. Secondly, that each day has an equal chance of beng a bthday. If we have fo nstance a goup of say 70 people, t wll be cetan (a pobablty of one) that at least two people wll have the same bthday snce thee ae only possble bthdays to go aound. Howeve, f on the othe hand, thee wee only people n the goup, the chances that those people shae the same bthday to be qute small (a pobablty close to 0). But when the numbe n a goup nceases upwad fom the pobablty nceases that at least people shae a common bthday. The assumptons smplfy the theoy wthout affectng ts applcablty. The hstoy of pobablty (and of mathematcs n geneal) showng a stmulatng nteplay of theoy and applcatons; theoetcal pogess opens new felds of applcatons, and n tun applcatons lead to new poblems and futful eseach. The theoy of pobablty s now appled n many dvese felds and flexblty of a geneal theoy s equed to povde appopate tools fo so geat a vaety of needs (Felle, 968; Levne & Bue, 97). One of the aeas pobablty can be found useful s that of bthday poblems. We shall be concened wth how combnatons and pemutatons ae put to use, and the eo analyss nvolved. A smple pogam n the appendx has been developed to pedct many stuatons wth egads to bthdays. MATHEMATICAL DERIVATION Tang a andom sample of sze say wth eplacement fom a populaton of sze n wll esult n n possble ways. In ode to obtan the pobablty of the event that no element appeas twce (equvalent to samplng wthout eplacement we obtan n pemutaton, that s n p. If we assume that all aangements have equal pobablty, we obtan the pobablty of no epetton n ou sample s n n( n )...( n ) () X ) p n Such that fo ou bthday poblem we assume that the yeas ae of equal length that s n= days neglectng the Febuay 9 of leap yeas. Secondly we assume that the bth ates ae constant thoughout the yea. We can then obtan the pobablty that all bthdays ae dffeent equals x ) P 64 6 ( )..... () whch can be expessed as p x ) ( p p ( )( )( )( )( ( ) )...( ) ( ) ) )...( () (4) Equaton 4 depcts the pobablty that at least two people shae a bthday and so we use small p fo the case of shang the same bthday. We can deve a good numecal appoxmaton to p when the s small. Ths can be done by neglectng all coss poducts (what ths means s that though ( ) ae small such that the poduct of any two of them s vey small, fo example Cho & Deme (SWJ):-7 Analysng The Appoxmaton Model
SCIENCE WORLD JOURNAL VOL (NO4) 008 www.scecncewoldounal.og ISSN 597-64 ( ) (( ) ), whch s a small value. In essence n ( a )... a (5) That s neglectng tems shown n Equatons 6 to 8... a a (6) whch s postve n value negatve n value 4 l4... a a a... a a a a l (7) (8) postve n value and the le. By ths we wll have that P ( x ) [... ( )] ( ) (()) (9) Snce the sum of the fst - tems n a sees n Athmetc Pogesson s easly devable to be (-)/. Ths mples that the pobablty that at least two people n a goup of people wll have the same bthday wll be p ( )/(()) Suppose we would le to now the maxmum such that p</ (case of medan). Snce thee ae possble bthdays, t wll be temptng to suggest that we would need ust about half ths numbe, whch s 8. Howeve, we eque = fo the above to happen (Felle, 968; Ross, 976; Snell, 987). To show ths, we obseved the pobablty p usng Equaton that n a goup of people = people, thee s no duplcaton of bthdays, wll be less than one half, that s P ( ).( ).( ( ) )...( ) and tang logs of both sdes and usng the fact that log(-x) -x fo small x, we have log() / +/ +... + (-)/ = (-)/70 whch has a soluton =. Equatons and 9 gve close esults that fo a gven numbe people havng dffeent bthdays. Fo example when =0 Equaton gves p=0.88 but Equaton 9 gves p=0.877, a dffeence n value of 0.04. Howeve when s becomng lage an appoxmaton can be obtaned by Equaton. log(p) [ ( + + +... + (-) ]/ = (-)/70 () Such that fo =0 the Equaton gves the pobablty of 0.07 whee as by Equaton p=0.94. A bette appoxmaton when s becomng bgge s we ncease moe tems of the expanson, e.g., pa coss poducts, tple coss poducts e.t.c. ERROR ANALYSIS Ou concen wll be to see how the appoxmaton model wll tend to dffe fom the theoetcal pobablty model. We wll study the stuaton that at least two people wll shae a gven bthday, that s to say a gven numbe people wll not all have dffeent bthdays. The dagam n Fg. shows how Equatons 4 (the bthday model) p and Equaton 0 (the appoxmaton model) p dsplay the pobabltes that fo a gven Cho & Deme (SWJ):-7 Analysng The Appoxmaton Model 4
SCIENCE WORLD JOURNAL VOL (NO4) 008 www.scecncewoldounal.og ISSN 597-64 numbe of people wth at least two of them shang a bthday and the eo ncued d as a esult of the appoxmaton. The appoxmaton n Equaton 0 that s p s good enough when dealng wth goups of people below 6. Fg. shows that as the numbe of people n a goup becomes bgge, t wll eque that we ncease moe tems of the expanson n Equaton 4 fo a bette appoxmaton, that s t wll eque us to consde Equatons 5, 6, 7, e.t.c. Table dsplays the vaous esults unde dffeent numbe of people n a goup. The pobablty p ndcates that obtaned due to Equaton 4, p that due to Equaton 0 when tang nto consdeaton Equaton 5, we obtan pobablty p as p and p4 as p p...( ).( ) 4 p...( ).( ).( ) whle the dffeences (eos) of these p values fom p values ae d= p- p, d= p- p, d= p4- p. The models wee coded n Pascal pogammng language n ode to geneate Table. The data n Table wee used to obtan Fgs. and usng Mcosoft Excel. The pogam s pesented as Begn clsc; wteln; :=; wteln( p p p p4 d d d ); wteln( ----------------------------------------------------------------- ); Repeat c:=; w:=0; s:=0; t:=0; fo :=-+ to do c:=c*/; p:=-c; p:=*(-)/70; fo := to - do fo := to - do s:=s+(/*/); fo := to - do fo := to - do fo := to - do t:=t+(/*/*/); fo v:=4 to - do fo := to v- do fo := to - do fo := to - do b:=b+(/*/*/*v/); p:=p-s; p4:=p+t; d:=p-p; d:=p-p; d:=p4-p; wteln(:6,' ',p:6:6,' ',p:6:6,' ',p:6:6,' ',p4:6:6,' ',d:6:6,' :=+; untl =m; end. ',d:6:6,' ',d:6:6); Fom Table and Fg., f we do not want to ncu an eo (dffeence between p wth othes) of not moe than.05, we wll not wsh to use p as explaned above when the numbe n a goup does exceed 6. Whle fo p the numbe should not exceed. Fo p4 the numbe should not exceed 9. The p estmate fals to estmate well when the numbe n a goup becomes lage as fo example 8 we see that the pobablty exceeds, whch s outageous. Ths s so because the poduct (-) = (8)(7) exceeds 70. p neve exceeds, but that t stats to declne when the numbe n a goup s moe than 8 whch fals to appoxmate p. p4 s bette of the estmates, though t also exceeds pobablty of when the numbe n a goup exceeds 5. The ds ae qute smalle n value depctng how good the estmate p4 of p. The d successvely nceases to moe than when the numbe n a goup goes to beyond 40 due to the eason gven of p above. Cho & Deme (SWJ):-7 Analysng The Appoxmaton Model 5
SCIENCE WORLD JOURNAL VOL (NO4) 008 www.scecncewoldounal.og ISSN 597-64 Fg. PROBABILITY OF AT LEAST TWO PEOPLE SHARING SAME BIRTHDAY PROBABILITY.5 0.5 0 5 7 9 579579 NUMBER OF PEOPLE IN A GROUP p p p PROBABILITY.8.6.4. 0.8 0.6 0.4 0. 0 Fg. PROBABILITY OF AT LEAST TWO PEOPLE SHARING A BIRTHDAY 5 7 9 5 7 9 5 7 9 5 NUMBER OF PEOPLE IN A GROUP p p p p d d d Cho & Deme (SWJ):-7 Analysng The Appoxmaton Model 6
SCIENCE WORLD JOURNAL VOL (NO4) 008 www.scecncewoldounal.og ISSN 597-64 TABLE. PROBABILITIES OF AT LEAST TWO PEOPLE IN A GROUP OF SIZE N SHARING SAME BIRTHDAY UNDER VARIOUS SITUATIONS ALONG WITH THEIR RESPECTIVE DEVIATIONS. p p p p4 d d d 0.00740 0.00740 0.00740 0.00740 0 0 0 0.00804 0.0089 0.00804 0.00804 0.00005 0 0 4 0.0656 0.0648 0.0656 0.0656 0.00008 0 0 5 0.076 0.0797 0.075 0.076 0.0006 0.00000 0 6 0.04046 0.04096 0.040458 0.04046 0.0006 0.000005 0 7 0.0566 0.05754 0.056 0.0566 0.0099 0.00005 0 8 0.0745 0.0767 0.07495 0.0746 0.0077 0.000040 0 9 0.09464 0.09860 0.0945 0.09465 0.004006 0.00009 0.00000 0 0.6948 0.88 0.6757 0.695 0.0069 0.0009 0.000004 0.44 0.50685 0.40777 0.450 0.009544 0.00064 0.000009 0.6705 0.808 0.667 0.67045 0.0797 0.00065 0.00000 0.9440 0.699 0.905 0.9445 0.0988 0.0006 0.00004 4 0.0 0.495 0.0 0.8 0.06 0.0079 0.00008 5 0.590 0.8767 0.500 0.505 0.04770 0.00798 0.00049 6 0.8604 0.8767 0.7977 0.8868 0.0456 0.0047 0.00064 7 0.5008 0.760 0.0880 0.5457 0.057595 0.00607 0.000450 8 0.469 0.4978 0.80 0.47650 0.0767 0.008889 0.00079 9 0.799 0.46849 0.66665 0.8096 0.08975 0.045 0.0077 0 0.448 0.50548 0.94 0.464 0.090 0.0705 0.0085 0.44688 0.5754 0.40604 0.44645 0.654 0.0084 0.0076 0.475695 0.6877 0.44507 0.479786 0.578 0.00659 0.00409 0.50797 0.695 0.46765 0.56 0.8585 0.040 0.00599 4 0.5844 0.75664 0.486500 0.5468 0.780 0.05844 0.008468 5 0.568700 0.898 0.505 0.580576 0.58 0.06666 0.0876 6 0.5984 0.8904 0.547 0.64649 0.970 0.0850 0.06408 7 0.66859 0.96644 0.557 0.6496 0.4785 0.04 0.057 8 0.65446.0566 0.5574 0.68456 0.855 0.9087 0.00074 9 0.680969.9 0.564 0.70945 0.460 0.586 0.09977 0 0.7066.978 0.577 0.75887 0.485465 0.9599 0.05556 0.70455.797 0.497955 0.79884 0.5458 0.500 0.06886 0.7548.58904 0.474686 0.84480 0.605557 0.7866 0.088 0.77497.446575 0.440 0.88755 0.6760 0.75 0.56 4 0.7957.56986 0.40845 0.97874 0.74669 0.947 0.4557 5 0.848.607 0.584 0.99500 0.85754 0.46559 0.796 6 0.88.7607 0.9400.055557 0.89845 0.5978 0.75 7 0.84874.84658 0.079.548 0.97594 0.6794 0.7664 Fom the above wo, t s ealzed that the fewe the people n a goup the geate the chance that they ae bon on dffeent days of the yea. When numbe of people n a goup s as small as, the pobablty that at least two of them shae a bthday s geate than ½. Ths shows that we do not need have half the days of the yea to attend the pobablty ½. The appoxmaton model gves good estmates when the numbe n a goup s small, but eques moe tems of the expanson when the numbe n a goup becomes lage. Levne, G. & Bue, C. J. (97). Mathematcal Model Technques Fo Leanng Theoes. Academc Pess, New Yo. Ross, S. (976). A Fst Couse n Pobablty. Macmllan Publshng Co. New Yo. Snell, J. L. (987). Intoducton to Pobablty. Random House/ Bhause. Mathematcs Sees New Yo. REFERENCES Felle, W. (968). An Intoducton to Pobablty Theoy and Its Applcatons. John Wley and Sons, New Yo. Cho & Deme (SWJ):-7 Analysng The Appoxmaton Model 7