Slashdot Mirror


Pi: Less Random Than We Thought

Autoversicherung writes "Physicists including Purdue's Ephraim Fischbach have completed a study comparing the 'randomness' in pi to that produced by 30 software random-number generators and one chaos-generating physical machine. After conducting several tests, they have found that while sequences of digits from pi are indeed an acceptable source of randomness -- often an important factor in data encryption and in solving certain physics problems -- pi's digit string does not always produce randomness as effectively as manufactured generators do."

19 of 416 comments (clear)

  1. We're surprised? by Anonymous Coward · · Score: 2, Interesting

    Uhh.. we're surprised? Pi can be described by numerous simple iterative formulas. When we do that with especially built algorithms we get pseudo random numbers.

    I'd expect pi to be much worse than a PRNG.

  2. infinitely improbable by everett3 · · Score: 1, Interesting

    If you calculate pi long enough you'll come up with everything of any significance. Try downloading a pi generating program, such as PiX and requesting enough digits to run for a few days, then open the file in a basic text editor and search for things like your social security number, your phone number, etc. Part of it being infinate is comming across every possible sequence.

    1. Re:infinitely improbable by Shaper_pmp · · Score: 2, Interesting

      Better still, use this site to find any number string in the first 200,000,000 digits of pi:

      http://www.angio.net/pi/piquery

      --
      Everything in moderation, including moderation itself
  3. Computing any digit of pi by G4from128k · · Score: 4, Interesting

    Given that its possible to compute any digit of pi without computing the preceding digits its not surprising that the digits have structure. The bizarre part of this algorithm is that computes digits in hexadecimal.

    --
    Two wrongs don't make a right, but three lefts do.
  4. How is something by Aruthra · · Score: 0, Interesting

    "less random"?

    1. Re:How is something by Stonehand · · Score: 2, Interesting

      The article actually specifies a few tests. One test involved the segmentation of pi's digits (10-digit chunks), and interpreting consecutive triples of these distances as points in 3-dimensional space. The experimenters then considered the distribution of the magnitudes of these vectors against a particular idealized distribution which is presumably that of independent digits and coordinates. This short bit does not specify how they compared distributions, but there are a number of statistical tests that may apply.

      So here it's not a question of "is pi random", but "how likely is it that the decimal digits of pi, interpreted in a specific and arbitrary fashion, could arise from a specific distribution which likely presumes independent identically-distributed digits?"

      In terms of randomness, it's a symbol string, and an infinite one at that. In theory one could measure the Kolmogorov complexity (sometimes expressed as the shortest possible length of two parts: the string necessary for a Universal Turing Machine to function as a specific TM, defining the 'model'; and the string that provides instructions for this particular instance, e.g. model parameters/data). A more 'random' string should be less easily predictable and require more symbols for the UTM to replicate it, compared to a string that can be represented by few parameters.

      Of course, there's the slight problems that (a) the choice of UTM does matter, and (b) it's incomputable in the general case.

      --
      Only the dead have seen the end of war.
  5. Completely Unsurprised by DumbSwede · · Score: 3, Interesting
    I actually find this completely unsurprising. PI is completely UNRANDOM. It can be compressed very efficiently with the progression Pi =4 (1-1/3+1/5-1/7+1/9- ...). It is even possible to derive binary or decimal digits of PI in isolation with a formula as well. My point is that since the digits can be represented as a formula, they may completely screw up other functions expecting randomness from them. When they do I would predict there is some deeper connection between the function being tested and Pi than is realized.

    When you cite for example a deviation from a Chi distribution, then there is probably some connection between Chi and Pi that doesn't seem obvious from how Chi is calculated, but is there non-the-less.

    I am not a mathematician (though I did work at Wolfram Research for ten years). I look forward to seeing real mathematicians take on this.

    1. Re:Completely Unsurprised by crmartin · · Score: 4, Interesting

      Well, define "random". The digits of pi occur equiprobably (I believe this is proven) and so represent a random number in the usual sense.

      On the other hand, as you say, they're essentially "pseudorandom" in the sense that they can be computed by a deterministic program.

      What you're groping for here is called "Kolmogarov complexity", or sometimes "Kolmogarov- Solomonov- Chaitin complexity" which can be defined as the length in instructions for some fixed machine of the shortest program that can compute an output sequence. If, without loss of generality, we choose something like a conventional machine, you can think of this as the length of the shortest program in bits.

      What's kind of amazing about it is that there is a supremely elegant and simple proof that there are "really" random sequences in the sense that there is no program that can compute and output a sequence random sequence R that's any shorter than "print R". This is what you're looking for in the sense you're talking about "randomness".

      (The proof comes directly from the fact that there are more bit sequences of length n than there are sequences of length (n-k) for k>0. Thus there must exist sequences of length n which can't be computed by a program of length (n-k).)

      This leads to all sorts of cool stuff, including things like a unification of Gödel's Proof, Turing's Halting proof, Hilbert's Tenth Problem, and chaos theory.

      To learn more, Google for "algorithmic information theory" and "Gregory Chaitin".

    2. Re:Completely Unsurprised by bnenning · · Score: 2, Interesting

      This leads to all sorts of cool stuff, including things like a unification of Gödel's Proof, Turing's Halting proof, Hilbert's Tenth Problem, and chaos theory.

      And provably optimal AI. Truly fascinating stuff.

      --
      How to solve most of our problems: 1.Lots of nuclear plants. 2.Cure aging.
  6. Pi experiments and random numbers by rice_burners_suck · · Score: 3, Interesting
    I would say that it's not too wise to get random digits from pi anyway, because it's too obvious a source. It's also not too difficult, what with storage and whatnot nowadays, to store about ten billion digits and then, knowing a few digits in the sequence, perform a quick pattern match, find it in pi, and know the next digit in the sequence.

    I was wondering, maybe not more than an hour ago, why not get a TV card and gather randomness from there? There are lots of channels on TV, and they have both a video and an audio component. You could set the thing up to change channels at random intervals, and gather things like the color of random pixels at random times, the frequency of random sounds, etc. Perhaps you could use a radio card to do something very similar with the radio. That, combined with entropy from the keyboard, mouse, the time between interrupts of various kinds, the contents of various processor registers or random memory locations, or whatever, should provide basically a random pool that is so random, you'll never have to worry about security problems with relation to them.

    Speaking of which, there are ten digits used in our radix 10 notation; if you want to store a character string in a strange format, you could conceivably store two digits in one byte, because four bits are enough to describe all ten digits, leaving plenty of room for things like a decimal point or a negative sign. I'm saying this because it's not too terribly expensive these days to get a terabyte of storage. If you store, on this terabyte, nothing but digits from pi, in this space-saving format I'm describing, you could store 2,417,851,639,229,258,349,412,352 digits from pi. You'd need some kind of cluster, like PI@home, to compute all those digits. Once computed, who said you can't use pattern-matching algorithms to see if there isn't some kind of pattern? I still believe that somewhere in there, there is a pattern, though it is very large. Hell, who said you can't get an exabyte of storage and do this? If anything, it could become one component in a random number generator that simply never repeats itself.

    1. Re:Pi experiments and random numbers by imsabbel · · Score: 2, Interesting

      Why bother with channels/channel changing?

      Just dont tune in a channel and listen to the noise/take only the least significant bits.
      Should work more reliable.

      --
      HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
  7. chaos by potpie · · Score: 2, Interesting

    Fractals, which resemble nature, are not random though they appear to be. Therefore, I've often considered all the universe to be one giant, multi-dimensional fractal.

    I think "random" has a misleading connotation. Just because something is highly unpredictable, it is not necessarily without pattern. We take "random" to mean something that cannot ever be predicted, that follows no pattern. But attractor fractals and many areas of Chaos Theory have proved that there are patterns that defy the human pattern recognition faculty (or at least require the use of a pencil, calculator, super-computer, etc.).

    --
    Esoteric reference.
  8. Re:Did Sagan See This? by crmartin · · Score: 5, Interesting

    The fun thing about this is that if pi really is "normal", then if you compute long enough, you'll not only eventually find pictures of circles in base 11, you'll also find an MPEG-4 of NTS video of a hand writing, with goose-quill pen, "I exist, yours sincerely, God."

    What's worse is that somewhere else is NTS video of the same hand, writing "I don't exist after all, yours sincerely, God."

    (I leave the proof of this as an exercise for the interested student.)

  9. Re:This just in: by Anonymous Coward · · Score: 1, Interesting
    PI is exactly three.


    Good enough for Solomon, good enough for me.

  10. Al-Kashi, a cool mathematician by kronocide · · Score: 5, Interesting

    I must tell you a story.

    In the first half of the 15th century the Persian mathematician Al-Kashi calculated pi to 14 places. It would be over a hundred years until a European calculated it to 9 places. But that's not what makes Al-Kashi cool, the Arabs where so much better at math in that period. What made him cool was that he stopped. He observed that, with his pi, the calculation of the circumference of a circle with a radius twice the size of Earth would have a margin of error smaller than a "horse hair" (a Persian unit). Problem solved, next problem. Meanwhile, people are still today using computers to get pi to _hundreds_of_billions_of_decimal_places!! As if there's something unique about pi because it's irrational and transcendental, when this is in fact true of the vast majority of all real numbers. Here's to Al-Kashi, a sane man and a pragmatic!

  11. Re:Did Sagan See This? by Anonymous Coward · · Score: 1, Interesting

    Detection of patterns starting at the buzillionth digit of pi (and other transcendentals) provided the starting point of a really good sci-fi book written probably 20+ years ago. The primary character, a nerdy and rich but manly guy (much like most /. readers) harnesses a supercomputer to compute the digits, finds patterns, deciphers same, uses knowledge gained to convert his personal 737 to a starship and sets off to explore. Accompanied (much like most /. readers) by his adoring and beautiful female companion. Sorry, can't remember the name of the book.

  12. The Pi Code by QJimbo · · Score: 2, Interesting

    http://users.aol.com/s6sj7gt/picode.htm

    Quite an entertaining read :)

  13. A lot of numbers are less random than expected. by pyite · · Score: 2, Interesting

    For example, lots of large numbers follow Benford's Law. Excerpt: "Benford's law states that in listings, tables of statistics, etc., the digit 1 tends to occur with probability ~= 30% , much greater than the expected 11.1%" The probability distribution is logarithmic; the probability of a digit D is log10(1 + 1/D). This is a way the SEC checks filings for fraud. If the numbers are too evenly distributed, there's a good chance of fraud. Obviously if you know about this law you can spoof it to some degree, but it was an effective tool for a while (still probably is for some not so smart firms).

    --

    "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

  14. Chudnovsky Brothers, a cool mathematician by Schwarzchild · · Score: 2, Interesting
    Check out this old story on the Chudnovsky brothers. They computed PI to billions of digits using their own home brew supercomputer.

    In case, you find that interesting, here is a more recent article on their exploits.

    Capturing the Unicorn

    --

    "sweet dreams are made of this..."