Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #383899
| From | Jamie M <jmorken@shaw.ca> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! |
| Date | 2015-11-04 14:43 -0800 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <n1e1mb$uq9$1@speranza.aioe.org> (permalink) |
| References | (1 earlier) <n1cth3$p33$3@dont-email.me> <zfn_x.60878$kk3.40294@fx15.iad> <n1dloa$4ic$1@speranza.aioe.org> <%ht_x.313$eu3.277@fx12.iad> <n1e0ol$ssb$1@speranza.aioe.org> |
On 11/4/2015 2:27 PM, Jamie M wrote: > On 11/4/2015 11:48 AM, bitrex wrote: >> On 11/4/2015 2:19 PM, Jamie M wrote: >>> On 11/4/2015 4:56 AM, bitrex wrote: >>>> On 11/4/2015 7:29 AM, John S wrote: >>>>> On 11/4/2015 3:51 AM, Jamie M wrote: >>>>>> Hi, >>>>>> >>>>>> Continuing my irrational? quest of compressing and then comparing >>>>>> irrational numbers, I have found a clear bias in the compressed >>>>>> sequences of pi and e. >>>>>> >>>>>> The simple test: >>>>>> >>>>>> 1. black box compression algorithm (well not so black box as I posted >>>>>> the C# code for it in a previous thread) >>>>>> >>>>>> 2. two sequences: >>>>>> a. 160million digits of e (natural log) ascii text base10 sequence >>>>>> b. 160million digits of pi ascii text base10 sequence >>>>>> >>>>>> 3. script to compress digits from the 160million sequences in this >>>>>> format: >>>>>> >>>>>> a. break the 160million digit sequence into 1600 consecutive chunks, >>>>>> each of 100,000 digits >>>>>> b. compress each of the 100,000 digit chunks >>>>>> c. make a list of the "compressed lines" output for each of the 1600 >>>>>> compressed sequences (compressed lines is the output of the >>>>>> compression >>>>>> algorithm) >>>>>> d. sort the list of 1600 compressed sequences in ascending order from >>>>>> lowest compressed lines to highest. >>>>>> e. compare the sorted 1600 compressed sequences of pi to the sorted >>>>>> 1600 compressed sequences of e (natural log) by subtracting to find >>>>>> the difference in compressed lines for each of the 1600 sorted >>>>>> compressed sequences. >>>>>> f.graph the difference >>>>>> >>>>>> 4. success! There is an obvious bias in the vast majority of >>>>>> the 1600 compressed sequences, showing that e has slightly >>>>>> more compressed lines per compressed sequence than pi does. >>>>>> >>>>>> >>>>>> The bias is a small one, but it exists, and the bias between >>>>>> e and pi is not the biggest one either, out of the four sequences >>>>>> I tested, e, golden ratio, pi, and sqrt2, golden ratio had a larger >>>>>> bias than e to pi: >>>>>> >>>>>> 100000 sequence length compressed averages (1600 samples per up to >>>>>> 160million) >>>>>> >>>>>> compressed lines: >>>>>> e 1202.123 >>>>>> golden ratio 1203.872 >>>>>> pi 1200.819 >>>>>> sqrt2 1202.009 >>>>>> >>>>>> https://www.dropbox.com/s/03l7dhspfjv4qis/e%20%28natural%20log%29%20tends%20to%20have%20more%20compressed%20lines%20than%20pi.png >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> This bias is seen in other ways too, but I think this comparison >>>>>> really is hard to refute statistically. >>>>>> >>>>>> More comparisons of sequences are in here if interested: >>>>>> >>>>>> https://www.dropbox.com/s/sxiircwgyrf3ovw/averages%28merged%20multiple%20runs%298%20sci.electronics.design.xlsx >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> I have reached the limit of my sequence digits (160million) but >>>>>> am trying to get ones up to 10billion digits! >>>>>> >>>>>> cheers, >>>>>> Jamie >>>>> >>>>> You should submit your findings to the Math Institute of the World >>>>> (MIW) >>>>> and have it publicised. >>>>> >>>> >>>> I'm not sure exactly what Jamie is doing, but whatever it is, I don't >>>> think it's a viable method for comparing the correlation between >>>> sequences of "random" numbers... >>> >>> I think one of them, pi or e, has a very slight periodicity so I am >>> not comparing correlations between random numbers but instead trying >>> to find the non random part. Most likely e has a very small bias in >>> non randomness, at least compared to pi, in that it has slightly more >>> equal interval repeating pairs of digits, ie 3,4,x,y,z,3,4,a,b,c within >>> the vast majority of any 100,000 digit block of the sequence. >>> >>> Not sure exactly but I'm trying to figure out what the exact difference >>> in periodicity is, and then it should be easy to just look at any >>> random 100,000 digit block of pi or e and compare if the vast majority >>> of them do have the same small bias. I don't know if it qualifies as >>> random or non random if there is a detectable bias like this, but I >>> think it should be *theoretically* to "reverse engineer" a >>> transcendental sequence back to the formula(s) that were used to create >>> it maybe eventually. >>> >>> cheers, >>> Jamie >>> >> >> But your code is always looking at a finite sample of a countably >> infinite set. How do you propose to extrapolate any bias you find in a >> finite sequence to the whole? >> >> Your sample set might as well be a single point. > > > Hi, > > I am looking for a pattern of digits to explain the bias I found, > something like a difference in the number of periodic repeating pairs > of digits, ie 3,4,(x digits),3,4, which my compression algorithm > identifies for any repeating digits a,b (ie 3,4) and any number of > equal gaps x. > > If some simple pattern like that occurs slightly more in e than pi > in general consistently over any range of digits checked, then the > question becomes why, which is beyond me, but probably something to do > with pi digits being more random than e.. I am just looking for the > initial reason why there is a bias :D > > cheers, > Jamie > I think I've narrowed the identified bias down to blocks of 1000 digits making it easier to identify any patterns. I compressed 1000 digit blocks up to 160million digits of pi and e using the sequences available here: http://numberworld.org/constants.html This created 160,000 compressed sequences for e and pi each. I compared the ouput "compressed lines" from the compression algorithm for e and pi for all of these 160,000 compressed sequences, and sorted them from fewest compressed lines to most compressed lines. For the sorted compressed sequences, there are 99 occurances where the compressed lines vary between pi and e out of the 160,000 compressed sequences, and for 97 of them e has one more compressed line than pi, and for 2 of them pi has one more compressed line than e. So the compression is almost identical for the vast majority of the sequences, however the small amount, 99, that aren't equal, there is a large bias towards e having more compressed lines than pi (97 vs 2). This pattern of pi tending to have fewer compressed lines has been observed by me all over the place so it isn't surprising to me, but I'm trying to figure out why pi sometimes compresses to fewer lines. Here is a small spreadsheet showing the 97 occurrences where e compresses to one more line than pi and the 2 occurrences where pi compresses to more lines than e: https://www.dropbox.com/s/yo676zns28795v8/pi%20vs%20e%20compression%20distribution%20sorted2%20sci.electronics.design.xlsx e (natural log) data is column A to K and pi data is column P to AA The column B (for e) and column Q (for pi) are the digit start points for the 1000 digit blocks that have the compression difference. ie for row 3: e digits from 0 to 1000 compress to one more line than row3: pi digits from 158292000 to 158293000 This test has showed how uneven the distribution of compression differences is, ie there are many compression difference near the end of the sequence of 160million digits of pi, so I think the pi digits from http://numberworld.org/constants.html may be incorrect but really not sure. More testing required! cheers, Jamie
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! Jamie M <jmorken@shaw.ca> - 2015-11-04 01:51 -0800
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! John S <Sophi.2@invalid.org> - 2015-11-04 06:29 -0600
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! bitrex <bitrex@de.lete.earthlink.net> - 2015-11-04 07:56 -0500
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! John S <Sophi.2@invalid.org> - 2015-11-04 07:02 -0600
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! Jamie M <jmorken@shaw.ca> - 2015-11-04 11:19 -0800
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! bitrex <bitrex@de.lete.earthlink.net> - 2015-11-04 14:48 -0500
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! Jamie M <jmorken@shaw.ca> - 2015-11-04 14:27 -0800
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! Jamie M <jmorken@shaw.ca> - 2015-11-04 14:43 -0800
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! Jamie M <jmorken@shaw.ca> - 2015-11-04 17:51 -0800
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! Joe Hey <joehey@mailinator.com> - 2015-11-05 06:56 +0000
Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! Jamie M <jmorken@shaw.ca> - 2015-11-05 01:17 -0800
csiph-web