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."

81 of 416 comments (clear)

  1. This just in: by falzer · · Score: 2, Funny

    PI is exactly three.

    1. Re:This just in: by g-san · · Score: 3, Funny

      you must be from Indiana...

  2. because it ain't random by frovingslosh · · Score: 3, Funny

    Gee, they found that pi wasn't random. Imagine that. Maybe someday we'll even be able to predict the value of pi.

    --
    I'm an American. I love this country and the freedoms that we used to have.
    1. Re:because it ain't random by mobby_6kl · · Score: 4, Funny

      That's only because they forgot to randomize first!

    2. Re:because it ain't random by i_should_be_working · · Score: 3, Insightful

      It's not that Pi is random or was ever though to be. But you can generate random (or not so random according to the article) numbers by picking out single digits from Pi.

      So I could take, for example, every 14th digit in Pi and that would make a good random string of numbers between 0 and 9.

    3. Re:because it ain't random by Anonymous Coward · · Score: 4, Informative

      Yes, picking every 14th digit of Pi may share the properties of a good random number (although, once again, the article points out that it is not as good as a RNG). However, actually using said digits for anything would be very unwise, since it wouldn't be that hard to determine that you were using a periodic subsequence of Pi's digits. I.e. don't use this for cryptographic keys.

    4. Re:because it ain't random by Rei · · Score: 3, Insightful

      I don't see why one should expect Pi to be the ultimate in mathematical random number generation. Its chaos comes from the fact that it is an iterative function; why should we assume that this particular iterative function generates more chaos than others? That would be too convenient.

      --
      Dear Lord: One of your creatures may be hurt tonight. Please let it be the other creature.
    5. Re:because it ain't random by calambrac · · Score: 4, Informative

      Being able to reproduce random sequences is a good thing. Let's say you want to set up a test that feeds random data into a program until it crashes. It would be nice to be able to rerun that sequence (without having to store the sequence) to make sure the problem gets fixed.

      That's why most random number generators let you specify a seed value. As long as you use the same seed value, you get the same sequence back. If you want a new sequence every time, peg your seed value to some number that varies, like the current time...

    6. Re:because it ain't random by Anonymous Coward · · Score: 2, Funny

      " "The" value of pi is theoretically unknowable. An approximate value is calculable"

      And drum roll please:

      3 !

    7. Re:because it ain't random by masklinn · · Score: 2, Informative

      The computed digits number doesn't even matter anymore since we can calculate the value of a given byte of PI without having calculated any of the previous ones.
      As a side note, the current record by the Kanada lab is 1.2411 trillion digits, their previous record was a bit above 200 billions.

      --
      "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
    8. Re:because it ain't random by shreevatsa · · Score: 5, Insightful

      Pi is a transcendental number
      Yes, that's right...
      and therefore cannot be exactly determined
      Er, that depends on what you mean by "exactly determined". Do we need to know the digits in decimal expansion (base 10) to "determine" pi? How about saying that pi is exactly "1.000" in "base pi"? IMHO, whether or not a number can be exactly determined is independent of whether its decimal expansion is known. By your logic, sqrt(2) cannot be exactly determined, as it is an irrational number and has infinitely many digits (and they aren't periodic, unlike 1/3=0.33333333333... which also has infinitely many digits). But I am not entirely comfortable with saying that sqrt(2) cannot be exactly determined. After all, we know exactly what it is -- the positive number whose square is two.

      I expect e and the square root of 2 to be better choices
      WTF? How is e a better choice? It is also a transcendental number, just like pi. And sqrt(2) isn't even transcendental!

    9. Re:because it ain't random by Tango42 · · Score: 2, Informative

      1.000 in base pi is 1 in base 10. You mean 10 in base pi, which is about 3.14159 in base 10.

    10. Re:because it ain't random by Gloggy · · Score: 2, Funny

      Yes, you're obviously right. And to prove your point, you can find my online poker game at a 10 digit sequence of numbers taken from the decimal expansion of Pi...

    11. Re:because it ain't random by Doc+Ruby · · Score: 2, Funny

      Yes, an economic argument for pi's value would choose 3 because, though wrong, it's at least cheap to learn.

      --

      --
      make install -not war

    12. Re:because it ain't random by syousef · · Score: 2, Insightful

      How about saying that pi is exactly "1.000" in "base pi"?

      Except that usually you use integers as number bases...and for good reason. I can't show you what 1 apple in base PI looks like without fractions. I'd hate to have 1 Pi fingers to count on etc. It gets tough when you count with fractions.

      --
      These posts express my own personal views, not those of my employer
    13. Re:because it ain't random by gtkuhn · · Score: 2, Funny

      Three factorial? Six is way too high.

  3. 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.

  4. 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.
    1. Re:Computing any digit of pi by cperciva · · Score: 5, Funny

      Not only that, but the five trillionth, forty trillionth, and the quadrillionth bits of Pi are all zero... I did all that work, and it all came to naught.

    2. Re:Computing any digit of pi by jfengel · · Score: 4, Informative

      I just remember that it was possible because pi was periodic in some obscure fractional base.

      I don't believe that's true. Pi is a transcendental number, which pretty much precludes it being periodic in an fractional base.

      (Assuming by "fractional" you mean "rational", the ratio of two whole numbers. Sorry to be picky; I'm just trying to be complete.)

      You can compute arbitrary digits of pi in hexadecimal (and binary and octal and any other 2^n base), but as far as I'm aware there isn't any corresponding algorithm for decimal numbers. I'm not certain it's been precluded, either, but I'm fairly certain you won't find pi to be periodic in any fractional base.

      If there does exist a proof that you can't do it in decimal, I suspect it will involve the fact that there exist fractions in base 10 that don't have terminating representations in base 16 (e.g. 1/5). That'll make it hard to apply the algorithm from base 16 back to base 10; a one-bit change in the base 16 representation will have dramatic effects all over the base 10 representation.

      (I'm not a mathematician, but I used to be, which is why this post is so maddeningly vague. I hope somebody gives you a better answer than I just did.)

    3. Re:Computing any digit of pi by amehra · · Score: 2, Funny

      Sorry to be picky; I'm just trying to be complete

      Can't we have a decent talk without someone bringing in analysis?
      Yikes!

    4. Re:Computing any digit of pi by Rufus88 · · Score: 2, Funny

      Assuming by "fractional" you mean "rational", the ratio of two whole numbers

      No, he means fractional. It's exactly equal to 1.0 in base Pi.

    5. Re:Computing any digit of pi by coopex · · Score: 3, Informative

      The same guy came up with a new proof that allows computation in any base, check it out http://fabrice.bellard.free.fr/pi/pi_n2/pi_n2.html

      --
      The road to hell is paved with good intentions.
  5. I had great hope when clicking on the link... by Anonymous Coward · · Score: 5, Insightful

    ... but it seems a shitty research, based on the article:

    > Pi never scored less than a B on the tests, and in one case outperformed all the RNGs, which in addition to mathematical algorithms included a device that uses turbulence in a fluid as its source of randomness. But in most cases, pi lost out to at least one RNG, and in several it finished decidedly in the middle of the pack.

    Obviously. There is no reason that pi would beat every RNG out there on a sample of numbers. It should just be slightly ahead the pack (if some RNG are bad), or just in the middle (if all are good).

    > "Our work showed no correlations or patterns in pi's number set - in short, pi is indeed a good source of randomness," Fischbach said. "However, there were times when pi's performance was outdone by the RNGs."

    Well, there is a reason why mathematicians consider that statistics are not a branch of mathematic. And such article are a proof of it.

    pi output on the statistical tests were correct (if they werer not, then it would be an important news, as it would imply correlations). The fact that some other RNG generated "better" output for the (relatively) small sample they used is meaningless.

  6. GOD HAS 16 FINGERS! by Colin+Smith · · Score: 2, Funny

    Y'know I would have thought this fact would have made it into at least some religious text books.

    --
    Deleted
  7. 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.
    3. Re:Completely Unsurprised by Anonymous Coward · · Score: 3, Informative

      (I believe this is proven)

      Pi has not been proven normal.

      http://mathworld.wolfram.com/NormalNumber.html

  8. There must be a bug in my implementation... by exp(pi*sqrt(163)) · · Score: 3, Funny

    ...of pi. It's not random at all, I always get 3.14159....

    --
    Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
    1. Re:There must be a bug in my implementation... by LiquidCoooled · · Score: 2, Funny

      I didn't think calculators needed Pentium cpus to run?

      --
      liqbase :: faster than paper
  9. Re:infinitely improbable by moonbender · · Score: 3, Insightful

    As far as I have read, this has yet to be proven.

    --
    Switch back to Slashdot's D1 system.
  10. Re:can pi be described in one line of perl? by Anonymous Coward · · Score: 2, Insightful

    $pi = 4 * atan 1;

  11. 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?
  12. Did Sagan See This? by NOLAChief · · Score: 3, Funny
    Calculate it in base 11. Eventually you'll get a sequence of zeroes and ones that when arranged into a square raster form a circle.

    Or so I'm told... :)

    1. 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.)

    2. Re:Did Sagan See This? by Bishop · · Score: 2, Funny

      I hope pi is normal. One of my computers is calculating the digits of pi. I am hopeing to find the blue prints for an infinite inprobability drive.

    3. Re:Did Sagan See This? by KI0PX · · Score: 4, Funny

      Calculate it in base pi. After one digit, you'll get an infinite sequence of zeroes.

      10.000000......

    4. Re:Did Sagan See This? by SeanAhern · · Score: 2, Funny

      But which end is first? The end closest to 3.14 or the other end? :-)

    5. Re:Did Sagan See This? by earthbound+kid · · Score: 2, Funny

      Be careful! Pi also contains an infinite number of blueprints that look like an infinite improbability drive, but actually explode and kill you.

  13. More on pi and randomness by karvind · · Score: 4, Informative
    The randomness of Pi: Frequency of the digits and Patterns appearing in the number Pi.

    ScienceNews article (2001) on Randomness of Pi's digits

    Interesting work from Johan on Testing the a-periodic randomness of and comparing it with a Quantum Mechanical source.

    But are the digits truely random ? In 1996, NERSC Chief Technologist David H. Bailey, together with Canadian mathematicians Peter Borwein and Simon Plouffe, found a new formula for pi. This formula permits one to calculate the n-th binary or hexadecimal digits of pi, without having to calculate any of the preceding n-1 digits. This formula was discovered by a computer, using Bailey's implementation of Ferguson's PSLQ algorithm

  14. Re:Not Random by OOGG_THE_CAVEMAN · · Score: 2, Informative

    Pseudo-random number generators not "known to be random." They are constructed to pass certain statistical tests with high certainty. Output of these generators, however, NOT RANDOM in strongest sense. Instead, are generated by DETERMINISTIC ALGORITHM.

    Pi's digits also pass certain tests for non-correlation.

    OOGG wish correct additional mistaken assumption of yours:
    Knowledge or proof of FACT does not CHANGE fact. ONLY CHANGE OUR KNOWLEDGE.

    Digits of PI either "random" or "not random" depending on definition you choose for word "random." If not proven, must make experiment study to understand.

  15. 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.
  16. Re:infinitely improbable by Jozer99 · · Score: 3, Funny

    I wrote a Pi calculating program, that worked in base Pi. It didn't take long at all to compute pi, and it is a great source of random binary. The answer I got was "10". Now, simply take one of those digits 8 times, and you have a completely random byte.

  17. Re:infinitely improbable by keesh · · Score: 4, Informative

    Mod parent down, he needs to take a basic number theory class. It has not been proven that pi is normal. It has been proven that there are all kinds of infinite sequences which are not normal. Random is not the same as normal

  18. 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
  19. Re:infinitely improbable by Avenger337 · · Score: 4, Funny

    OMG!!! You mean Pi knows my SSN??? It must be a terrorist! We have to do something! (Maybe it knows where WMDs are, too)

  20. Re:Why pi has no exact value by OOGG_THE_CAVEMAN · · Score: 2, Funny

    Value of pi not depend on coordinate system. pi simply transcendental number with certain value.

    Polar coordinate can also use pi: circle of radius pi, arc length of arc subtending angle of pi radians, etc.

    OOGG recommend you not change major to math. Otherwise, GPA likely much less than pi.

  21. In other news ..... by ded_si_luap · · Score: 2, Funny

    Physicists have completed a study comparing the randomness in Darl Mcbride's brainwaves to that produced by 30 typing rats. After conducting several tests, they have found that while sequences of digits from Darl are indeed an acceptable source for randomness, Darl's digit string does not always produce randomness as effectively as rats if the rats are using unixware.

  22. Re:Truly random by Anonymous Coward · · Score: 3, Informative

    "I was under umpression that truly random data should be completely uncomressible."

    Technically it is *chaotic* data that is not compressible. Since random data is almost always chaotic, people tend to play loose with the terminology. But random data can happen to be ordered very well, in which case you can compress it.

    "Random" is a feature of the method by which a number was created.

    "Chaos" is a feature or the number itself, regardless of how it was created.

  23. Re:infinitely improbable by Anonymous Coward · · Score: 3, Insightful

    That is a true and fun little fact, but it is nothing special to pi. You can do that with any irrational number, i.e. sqrt(2). Anyway, this story is ridiculous, noone pay attention to it. They did (from the article) 2 or 3 tests, the most significant appearing to be dividing 100 million digits into blocks of 10, plopping a decimal in the front. They then grabbed these blcoks in groups of 3 for x,y, z coordinates. They mapped these points in an imagnary cube and then graphed their distribution in the cube. From this they concluded that the other RNGs are more random. That is an extremely false conclusion. Arguing that one distribution is more random simply because it covers more of the cube or it's distrbution is more of a bell curve is just plain stupid so I really hope I missed some important fact when I read the article. Random is random and there is no rule saying that randomness is only random if it is distributed evenly or forms a bell curve (any such constraint would go against the nature of being random). Most RNGs try to distribute digits in a even manner because for cryptography purposes it is important, but is pointless when trying to deal with true sources of randomness. The fact that there is any such predefined distribution obviously shows that it isn't random (thus they are called pseudo-random), but arguing one algorithm generates a bell curve and another doesn't so the first one is better is just a dumb argument when dealing with random numbers. I hope a few mathematicians chime in and either blow my argument out of the water or confirm what I said.
    Regards,
    Steve

  24. Re:infinitely improbable by crmartin · · Score: 2, Informative

    The point is that what you're describing --- that an infitite sequence contains all possible finite subsequences infinitely often --- is what's called "normal" in this context, and while all tests show the digits of pi look normal, there's no proof that they are, so you can't say absolutely that it's true.

  25. Rnadomn by EpsCylonB · · Score: 2

    Isn't randomn just something we can't understand ?. Technically speaking if we had enough infomation nothing would be considered randomn. I guess with encryption you pick something thats pretty damn complex and then hope that your competitors agree with you.

    1. Re:Rnadomn by Vellmont · · Score: 2, Insightful


      Technically speaking if we had enough infomation nothing would be considered random.

      That might be true, except for the heisenburg uncertainty principle. In short it says you can never determine both the exact position of a particle and its momentum. The essential problem is that measurement of either of these properties disturbs the thing you're trying to measure in an unpredictable way.

      The end result is that you can never have enough information. Randomness isn't a lack of understanding, it's a fundamental part of the universe.

      --
      AccountKiller
  26. Who said pi was *supposed* to be random?? by interstellar_donkey · · Score: 2

    I know this has been said before, but perhaps not in this way. Pi is a number that represents a (ideal) physical phenomenon. Yes, it's complex and (probably) infinite, but it still is a numeric representation of an exact property. To me, that automatically presupposes that by its nature it's ordered.

    The only reason anyone could think it would be a good indicator of randomness is because its complexity goes beyond the comprehension of man or machine. I'm not a professional mathematician, so there's not a lot about the nature of pi I can comment on, but it seems to me that in being an ordered number that describes a physical phenomenon, pi has about as much chance to produce randomness as counting the number of leafs on clovers.

    --
    The Internet is generally stupid
  27. and thus God disappears in a puff of logic by TrekkieGod · · Score: 3, Funny

    be careful what you prove next or zebra crossings might become dangerous.

    --

    Warning: Opinions known to be heavily biased.

  28. Duh... by ValiantSoul · · Score: 2

    At the risk of losing karma, what an obvious statement!! Pi is a mathematical number used to calculate certain things such as circumference OF COURSE ITS NOT RANDOM, if it was then we wouldn't be using it for so many important functions

  29. 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.
  30. and this has what to do with random? by frovingslosh · · Score: 2, Insightful

    I don't agree with the term unknowable. Pi is certainly knowable. It just can't be expressed as a finite string of digits after a decimal point. But even if it were unknowable, that doesn't mean it is random. There are many algorithms in mathamatics that produce infinite series, but that doesn't mean they are random. Look at fractals for one example. A very simple math formula can produce an infinite and extremely complex mathmatical result, but even though that result is infinite it is certainly not random. Nor is Pi.

    --
    I'm an American. I love this country and the freedoms that we used to have.
    1. Re:and this has what to do with random? by Fortran+IV · · Score: 2, Informative

      That's bollocks. I reckon that one day those maths nerds will discover the exact value of pi, and it will be a finite string of digits. There's no reason to believe it goes on for ever. Even if it's not in denary, it may be in another number system.

      It's just arrogant to believe that pi goes on forever just because we want it to. When we find that pi comes to an end, all those mathematicians will look really fucking stupid.


      Bollocks yourself. If pi can be expressed as a finite series of digits, then it can also be expressed as the quotient of two integers--which would make it a rational number. I can't quote you a proof, but mathematicians have long accepted that pi is irrational.

      In any case, the important thing is not that it has an infinite series of decimal digits; so does 1/3. The important fact is that its sequence is non-repeating and apparently patternless.

      --
      I figure by 2030 or so my 6-digit UID will be something to brag about.
  31. In school by gsasha · · Score: 4, Funny

    I had a teacher who insisted that Pi is exactly 3.14, and that the radiation after nuclear explosion decays by a factor of 2 in exactly 5 hours.
    Admittedly, he wasn't a math teacher though...

  32. Slightly different view.. by beldraen · · Score: 4, Insightful

    The real issue with statistics is that people who use them generally do not understand them. I get irritated with people all the time when people "prove" some statement. Statistics shows that a sample of the populace has some correlation within some bound that is likely to be true some percentage of the time. So, the real question is: what was the bound and what percentage of the time was the randomness within that bound. If PI's bound exists outside of the statistical error of the bounds of the other tests then one could say that PI is less random; however, it sounds like they indeed found a few tests where PI "beat" the other tests. In other words, the bound PI was within the statistical error of the other tests, but the computed mean was occasionally better. But, occasionally better is to be expected some percentage of the time. If it is with in that number of times, it is as you say, a meaningless conclusion. Statatics within the bounds of error are completely equal. Probability is math, but it is also just very probable that it is used wrong.

    --
    Bel, the mostly sane.. "Of course I can't see anything! I'm standing on the shoulders of idiots." -- Me
  33. Re:I'm not too suprised by Glonoinha · · Score: 5, Funny

    Even quantum physics, although theoretically 'random', is generally predictable and reliably recreatable for a large T distribution over time.
    If you want truly unpredictable, unrecreatable, random numbers - let my wife balance your checkbook.

    --
    Glonoinha the MebiByte Slayer
  34. Re:Why pi has no exact value by Sage+Gaspar · · Score: 2, Insightful

    I'm going to take "not exact" to mean transcendental, which is probably the strongest "weird" condition that's commonly accessible. In that case, it has nothing to do with our choice of coordinate system, rather our choice of metric and, even more fundamentally, number system.

    What I mean by metric is that, after change of coordinates into the polar system, points are still the same distances apart from each other (the mapping from the cartesian plane to the polar plane is an isometry). Therefore, any circle still has the same length (circumference) and diameter, so Pi still has the same value.

    If we define Pi by infinite series rather than the ratio of circumference to diameter of circles in Euclidean geometry, however, it's still transcendental because of the real number system. Transcendental, for the non-math people, means it's not a solution to any polynomial equation with rational (i.e., p/q, where p and q are integers) coefficients. So, for example, sqrt(2) is irrational, but it's not transcendental, because it's the solution to x^2 - 2 = 0. Pi is transcendental because of the properties of the real numbers as a field, which takes the problem even deeper than the geometry.

    Now, I think what you might've been getting at is we can go back and look at our number system and define the Pi-rationals (rational multiples of Pi) as our new rationals, because our choice of the "regular" rationals was arbitrary. However, if our circle has Pi-rational radius and diameter, their dividend is going to be in the "regular" rationals. This is impossible, so at least one of the two must be irrational in our new number system. Therefore, you still have an irrational number involved somewhere in the process, no matter how you slice it.

  35. Re:Wow: a spoon isn't a good fork! by erktrek · · Score: 2, Funny

    Unless of course it was migrated from the open source "stick" project.

  36. From a mathematician ... by rkmath · · Score: 2, Insightful

    (1) "Pi is not random becuase I have a formula for its digits" is nonsense. Randomness is not the inability (or impossibility) to predict (at least in this situation). Randomness refers to statistical properties of the sequences. For ex. no correlation between conseq. digits, no corr. betweteen conseq. pairs of digits and so on brings a sequence closer to randomness.

    (2) If you REALLY want randomness (with impossibility of prediction, and unreplicability of the sequence) - go and count events in a radiactive decay experiment. (More precisely, count waiting times for each successive decay - they follow an exponential distribution). (I think fourmilab has a 1-time rnadom number generator linked up to a geiger counter - don;t remmeber the URL any more).

    (3) Why do mathematicians find "randomness" in digits interetsing? The reasons are similar to why people prove theorems about "how randomly are the primes distributed among the integers". It says something about the structure of the primes. I am not a number theorist - so I cannot give explicit results.

  37. 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!

    1. Re:Al-Kashi, a cool mathematician by kronocide · · Score: 2, Informative

      Al-Kashi used the same method as the Greeks. He calculated the ratio of the radius of a circle to the circumference of a polygon (that's trivial, of course) that fit inside the circle, with an increasing number of sides on the polygon. The more sides on the polygon, the closer to the circle it gets, and the more precise value for pi you get.

      I have a vague memory that the Chinese actually built a large circle that was so exactly round that they _measured_ pi to an impressive number of decimals. So there is obviously more than one way to do it. :-)

    2. Re:Al-Kashi, a cool mathematician by cryptor3 · · Score: 5, Funny

      Problem solved, next problem. ... Here's to Al-Kashi, a sane man and a pragmatic!

      Lazy bastard.

  38. Are you sure it's random? by waynemcdougall · · Score: 4, Funny

    Accounting Troll: "Over here we have our random number generator"

    Number Generator Troll: "Nine Nine Nine Nine Nine Nine"

    Dilbert: "Are you sure that's random?"

    Accounting Troll: "That's the problem with randomness: you can never be sure"

    --
    Recycle PCs and build a wireless community network www.hillsborough.org.nz
    1. Re:Are you sure it's random? by Lars+T. · · Score: 2, Funny
      http://www.angio.net/pi/piquery

      "The string 999999 was found at position 762 counting from the first digit after the decimal point. The 3. is not counted."

      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

  39. Re:My crackpot PI theory by jim_deane · · Score: 3, Insightful
    A truly random number would never repeat a sequence no matter how many digits were in the sequence.


    This is untrue. The most common fallacy about random numbers is that they need to "appear" random.

    Of the list of numbers,

    734901253789
    666666666666
    123456789012

    Which is random? One answer is that all of them may be random. There is no reason why 1234 is any less random than 7305. A truly random number with infinite digits will absolutely repeat any sequence of numbers you can think of of any length whatsoever.

    Think of it this way: If you have a true random number generator, spitting out a digit every second, and you see it spit out:

    1...2...3...4...

    then can you predict what the next digit will be? If it is truely a random number generator, the answer is no, you can not. However, the next digit has a 1 in 10 chance (0..9) of being a 5, so it is possible. If you reject 1...2...3...4...5 as possible sequence, then you have instituted a rule restricting the possible outcomes of the random number generator--and have therefore reduced it's effective randomness. Rules defeat randomness, so 12345 is as valid a random number as any other sequence of five digits.

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

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

    Quite an entertaining read :)

  41. Re:infinitely improbable by Tango42 · · Score: 3, Informative

    No... 1 is one in all bases, by definition. 10 is the number of the base in all bases, again by definition. In base ten with represent ten as 10. In base pi, pi is 10.

  42. Re:I detect a disturbance in the force... by Autobahn · · Score: 2, Informative

    My understanding is that randomness of a sequence is measured as the degree of predictability: a sequence is random if you can't predict the next bit even if you know any other set of bits in the sequence. So if you have 1,0,1,0,1 and the next bit is 0 with 100% probability, it's not random, but if the next bit is 0 with 50% probability it is. Just being given a portion of a sequence it's not possible to deterministically compute the probability, but it can be computed to within a (exponentially decreasingly small) margin of error. So from a sequence you can't determine if something is truly random, but you can get 99.9999% sure that is.

    This is the degree of randomness: they can say that pi is less random than various RNGs because given a few digits of pi, you can calculate remaining digits with 50%+n accuracy, while given the same number of digits from a pseudorandom generator the odds of getting the next bit right are 50%+1/2^-s where s is a large number determined by which RNG you use, among other things. For pi, n is unknown, but these researchers are saying it's not small and possibly not even exponentially small. Truly random has n=0, but exponentially small is good enough for practical use.

    And for the sticklers, pseudorandom != random and there are other issues about that too, but that's for another post. Also as a side note, IIRC the absolute predictability of any set of digits of pi from any other set has not been generally ruled out.

  43. Re:What about trancendentals in general? by PDAllen · · Score: 2, Informative

    First question: no. The number:
    \sum_{n=1}^{\inf} 10^{-n!} is transcendental; it's a Liouville number. But the digit string is all zeroes (in base 10) except for 1 at position 1!, 2!, 3!, ...

    pi and e may be absolutely normal (i.e. every possible digit sequence in any base occurs about as often as you'd expect if the digits were random) but this is AFAIK not proven. It's also conjectured that every irrational algebraic number is absolutely normal.

  44. 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

  45. Re:Measuring Randomness by kronocide · · Score: 2, Informative

    I suppose "randomness" might be the opposite of "order" in an information-theoretical sense. It is also a measure of the level of compressibility of a string. A chessboard pattern can be compressed a lot, white noise can't be compressed. So that would make white noise less ordered and more random. To me as a philosopher however, that looks fishy, because it puts a restriction on how a random sequence can look. It means that if order, or perhaps "correlation," is a property C, then supposedly random series always have the property ~C. But what causes them to have this property? They are supposed to be random! That is not what random is supposed to mean; there are no causes involved in randomness, so it seems to be nonsense to claim that all random series share a property. This information-theoretical notion also seems to jive poorly with cryptographic ideas, where as soon as you introduce a rule, you lose randomness. (In essence, the password gets easier to guess.) But, I'm not a mathematician, so I may have it all wrong. :-)

  46. Slide Rule accuracy by stinkpad · · Score: 2, Insightful

    Plenty good enough for most of the great engineering of the 20th century. Another example of practical and "good enough".

  47. 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..."