Re: Chi-square
jtauber wrote:zip, gzip and bzip2 all fail to compress it. That's pretty tightly packed
Bingo! Compression and macro statistical randomness go together like Python and joy
Moderators: UncleTimmy, mjpieters
Enjoying the challenge? Need a hint?jtauber wrote:zip, gzip and bzip2 all fail to compress it. That's pretty tightly packed
UncleTimmy wrote:The chi-square calc is fine -- it's about 304 with 255 d.f. This is larger than the mean, but about 1.8% of truly random sequences would exceed that chi-square stat.
UncleTimmy wrote:I have to quit for the night, so it's up to you to examine the 500 places this might lead.
dfsmith wrote:UncleTimmy wrote:The chi-square calc is fine -- it's about 304 with 255 d.f. This is larger than the mean, but about 1.8% of truly random sequences would exceed that chi-square stat.
I see your problem: there is only 1 d.f. (is it a 255 or not a 255).
This gets me a chi2 of 24.0 (23.9+0.1); i.e., about 1:1000000. (Not far off my quick calculation.)
dfsmith wrote:I see your problem: there is only 1 d.f. (is it a 255 or not a 255) ...
jtauber wrote:One way then another way then the first way then the second way. Back and forth. 7 times then 4 times then 11 times then 4 times...
After 6 of these pairs I end up with something I can no longer do anything to. Unless I do it b...
UncleTimmy wrote:but not enough to make the overall distributiion extremely unlikely.
Return to Python Challenge Hints
Users browsing this forum: No registered users and 1 guest