Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #383934
| From | Jamie M <jmorken@shaw.ca> |
|---|---|
| Newsgroups | sci.electronics.design, sci.math |
| Subject | Re: algorithm that can distinguish between a sequence of pi digits and e (natural log) digits!! |
| Date | 2015-11-05 01:17 -0800 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <n1f6rl$u63$2@speranza.aioe.org> (permalink) |
| References | (3 earlier) <n1dloa$4ic$1@speranza.aioe.org> <%ht_x.313$eu3.277@fx12.iad> <n1e0ol$ssb$1@speranza.aioe.org> <n1e1mb$uq9$1@speranza.aioe.org> <20151105065656.7db87d2c.joehey@mailinator.com> |
Cross-posted to 2 groups.
On 11/4/2015 10:56 PM, Joe Hey wrote:
> On Wed, 4 Nov 2015 14:43:24 -0800
> Jamie M <jmorken@shaw.ca> wrote:
>
> }snip{
>
>>
>> More testing required!
>>
>> cheers,
>> Jamie
>>
>>
>
> The details of what you are doing are way over my head and/or available
> time, but isn't it possible (and maybe you've mentioned this
> already before) that the bias you find is caused by taking a finite
> number of digits from an infinite sequence?
> Would this implicate that if this is true, the bias would reduce in
> sequences with progressive lengths?
>
> My 0.0001 cts :)
>
> joe
>
Hi,
I've been working on that most of the time to try to figure it out :D
One interesting thing though is that the "local" bias seems to be
maintained no matter where in the sequence the local sample of digits
comes from. At least up to my 160million available digits sampled,
there is still some bias when the 1000 digit or 10,000 or 100,000
etc individual compressed samples are averaged together.
Here is a graph of the bias I detected versus sequence length for
various constants averaged up to 160million digits at several
different input digit lengths:
1000, 10000, 20000,30000,80000,100000,200000
1000 digits is average of 160000 sequences (160million total)
10000 digits is average of 16000 sequences (160million total)
20000 digits is average of 8000 sequences (160million total)
30000 digits is average of 5333 sequences (160million total)
80000 digits is average of 2000 sequences (160million total)
100000 digits is average of 1600 sequences (160million total)
200000 digits is average of 800 sequences (160million total)
https://www.dropbox.com/s/jyxawl16hjxi8tu/averages%28merged%20multiple%20runs%2910%20%28160million%20graph%29.png
more detailed info:
https://www.dropbox.com/s/l66qlky00yte5i5/averages%28merged%20multiple%20runs%2910%20sci.electronics.design.xlsx
I need to add 100digit compressed samples to it still, I compressed
the 100 digit input sequences, which was 1.6million different
compressed sequences for each of pi, e, golden ratio, sqrt2 (took over
24hours on my PC I think to run) and generated 6.4million total
compressed sequences, with just the basic statistics file being
over 850MB, I didn't sort it all out to see what kind of bias there
is for this compressed digit length yet but here are some preliminary
results that are interesting and help explain how the compression
algorithm works by using the simpler example of compressing just 100
digits, to get an idea of what the "bias" I'm finding actually is.
Out of the above 6.4million compressed sequences, 6 stand out, the
only ones that have more than one "level2 chirplet" (a second order
pattern of digits). These 6 100digit sequences occurred at widely
spread out locations in the 160million digit sequence and here they
all are: (extracted from the 850MB+ stats file)
sequenceRowStart= 48490900 variable= sqrt(2) digitsCompressed= 100
compressedOutput= 25 FirstLevelChirplets= 22
SecondAndDeeperLevelChirplets= 2
sequenceRowStart= 50144700 variable= Golden digitsCompressed= 100
compressedOutput= 26 FirstLevelChirplets= 23
SecondAndDeeperLevelChirplets= 2
sequenceRowStart= 53942100 variable= Golden digitsCompressed= 100
compressedOutput= 28 FirstLevelChirplets= 25
SecondAndDeeperLevelChirplets= 2
sequenceRowStart= 62731400 variable= E digitsCompressed= 100
compressedOutput= 26 FirstLevelChirplets= 23
SecondAndDeeperLevelChirplets= 2
sequenceRowStart= 86952400 variable= sqrt(2) digitsCompressed= 100
compressedOutput= 24 FirstLevelChirplets= 21
SecondAndDeeperLevelChirplets= 2
sequenceRowStart= 123790000 variable= Pi digitsCompressed= 100
compressedOutput= 28 FirstLevelChirplets= 25
SecondAndDeeperLevelChirplets= 2
Using pi as an example, I took the sequence row starting point above
for pi in the 160million digits of pi sequence, and re-ran the
compression algorithm for 100 digits to regenerate the compressed
sequence that has 2 second level chirplets identified, so I could see
how it looks:
Here it is (the 100digit compressed pi sequence from start digit
123790000):
C0(null)[7,5,4,3,2,9,7,6,1,1,0,0,9,9,1,8,4]
C5(0,7)[]
C0(6,23)[2]
C1(23,6)[2]
C0(3,1)[15]
C6(7,8)[19,39]
C2(9,6)[28]
C22(2,9)[10]
C12(7,3)[25]
C13(3,6)[25]
C39(6,0)[10]
C44(4,7)[11]
C42(2,4)[17]
C48(8,6)[17,30]
C14(6,3)[52]
C28(3,5)[39]
C57(7,9)[13]
C58(9,2)[14]
C27(5,3)[47]
C62(3,0)[14]
C21(1,2)[59]
C26(8,5)[56]
C29(5,9)[54]
C18(9,8)[67]
C78(5,7)[10]
C45(7,4)[44,4]
C81(2,8)[17]
C7(8,4)[92]
That's it..
The level2 chirplets are the lines:
C0(6,23)[2]
C1(23,6)[2]
These are indented, and are members of the level1 chirplet C5(0,7)[]
(see above)
Now the way it works if interested!
The 100digit corresponding input sequence of the pi sequence from start
digit 123790000):
3,1,9,6,7,0,7,8,4,5,4,0,7,3,6,3,1,3,9,8,2,1,2,9,9,7,8,5,3,5,9,6,2,9,
0,7,7,7,3,6,0,7,2,4,4,7,4,6,8,6,0,1,1,0,0,4,7,7,9,2,4,9,3,0,7,8,6,3,
5,0,7,9,9,2,5,3,3,0,5,7,1,2,8,5,9,9,8,9,5,7,4,1,8,7,4,8,6,4,2,8,4
or in a format with commas:
31967078454073631398212997853596290777360724474686
011004779249307863507992533057128599895741874864284
..actually 101 digits I'll look into that maybe, but doesn't really
change how it works for this example.. :D
So the reason that is a very "unique" sequence out of all the
1.6million 100digit sequences I compressed in the first 160million
digits of pi, is that it is the only one with more than 1 level2
chirplet.. The level2 chirplets are 6,23 and 23,6, and if you look
at that sequence you can see how there is a pattern in the occurances of
the level1 chirplet C5(0,7) or just 0,7, that is the parent of the
level2 indented chirplets that is statistically low probability, ie
there are equally spaced gaps of digits between occurances of 0,7, here
is how the algorithm detects those:
list of subsequences from above sequence showing gaps between 0,7 chirplet:
07845407
0736313982129978535962907
07773607
0724474686011004779249307
07863507
Those are just cut and pasted right from that sequence of 100 pi digits.
07845407 has a gap of 6 from the first 07 to the second 07, as in the
number of single digit shifts that would be required to move the first
07 to the place of the second 07 (gap of 6 corresponds to 4 random
digits between the two 07's)
So the full list of gaps for all 5 of those:
07845407 (6)
0736313982129978535962907 (23)
07773607 (6)
0724474686011004779249307 (23)
07863507 (6)
The algorithm takes these gaps and creates a new sequence and if any
chirplets are found it recursively recompresses it too, looking for
n-order periodicity.
So this new gap sequence is: 6,23,6,23,6, which according to my own
definition of chirplets, which requires that two consecutive digits
have to occur in the sequence twice in order to be called a chirplet,
then there are two consecutive digits that meet this definition, 6,23
and 23,6, and they luckily are the second order chirplets above that
I was talking about, so that is basically a big chunk of how the
compression algorithm works..
Things to note:
first thing to note:
pi sequences seem to create fewer level2 chirplets than other sequences
I tested, implying that these types of patterns:
07845407 (6)
0736313982129978535962907 (23)
07773607 (6)
0724474686011004779249307 (23)
07863507 (6)
exist a tiny bit less than in other irrational number sequences of
digits, and instead there would be unmatched gaps more often in pi,
like this perhaps:
07845407 (6)
072447468601100249307 (18)
07773607 (6)
0724474686011004779249307 (23)
07863507 (6)
which would explain why slightly fewer level2 chirplets are created in
compressed pi sequences, since no level2 chirplets would be found in
the sequence: 6,18,6,23,6 since there need to be at least two 6,23's
etc to be defined as a chirplet..
(from way above, there are two 100digit sequences of the golden ratio,
and sqrt2 that have two level2 chirplets, and one 100digit sequence of
e that has a level2 chirplet (in the first 160million digits of the
sequences)
I hope that can kind of explain what I'm doing, anyway the spreadsheet
shows the statistical differences I am trying to find and I think this
is an explanation of what the difference is, which is that pi has
slightly lower second order periodicity I think.
Here's one last one to show the bias:
https://www.dropbox.com/s/03l7dhspfjv4qis/e%20%28natural%20log%29%20tends%20to%20have%20more%20compressed%20lines%20than%20pi.png
That one was done with 100,000 digit compressed sequences (1600
sequences up to 160million digits) for pi and e, and it shows the
bias that e has an excess of level2 chirplets quite consistently.
cheers,
Jamie
Back to sci.electronics.design | Previous | Next — Previous 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