DailyDirt: Pi Math

from the urls-we-dig-up dept

National Pie Day is not actually March 14th (although it really should be, if only to make it more memorable). But here’s to the number, not the delicious dessert.

If you’d like to read more awesome and interesting stuff, check out this unrelated (but not entirely random!) Techdirt post.

Filed Under: , , , ,

Rate this comment as insightful
Rate this comment as funny
You have rated this comment as insightful
You have rated this comment as funny
Flag this comment as abusive/trolling/spam
You have flagged this comment
The first word has already been claimed
The last word has already been claimed
Insightful Lightbulb icon Funny Laughing icon Abusive/trolling/spam Flag icon Insightful badge Lightbulb icon Funny badge Laughing icon Comments icon

Comments on “DailyDirt: Pi Math”

Subscribe: RSS Leave a comment
38 Comments
Anonymous Coward says:

Pi

Pi is an irrational number, which means that it cannot be expressed exactly as a ratio of two integers (such as 22/7 or other fractions that are commonly used to approximate π); consequently, its decimal representation never ends and never settles into a permanent repeating pattern.

Does pi contain every set of finite number sequences? The answer to that question may not be known

WRONG, IT IS KNOW… YES

Anonymous Coward says:

Re: Pi

Just because it never ends and never settles into a permanent repeating pattern, does not mean it contains every finite number sequence.

For example, if you converted pi to base 9 but then treated that pattern of numbers as base 10, you would still have a sequence of numbers that never ends and never settles into a permanent repeating pattern – but there would be no 9’s in it, and that number would therefore not contain every set of finite number sequences.

Unless you have some other proof? I’m sure the mathematical world would be glad to hear it.

JustSomeGuy says:

Re: Re: Pi

@AnonCwrd: you’re NOT converting it to base9 and then treating it as base10, that’s just stupid. Either convert it to base9 and treat it as base9 or leave it as base10. In base9, every possible sequence of the digits 0-8 will be there.

It’s the same as if the universe was infinite. Every possible combination of particles would be duplicated an infinite number of times so there’d be an infinite number of me’s out there. Wow, I might finally be able to get some work done around the house 🙂

Mike Uchima (profile) says:

Re: Re: Re: Pi

No, the original article is correct. While the digits of pi do pass statistical tests for randomness, they are not truly random. If they were truly random, we would not be able to calculate them, by definition.

It is possible (even probable, I’d say) that it contains all possible digit sequences, but this is conjecture.

Anonymous Coward says:

Re: Re: Re:2 Pi

that’s why it’s a random distribution, not in itself a random number.

it is far from random as you correctly stated because you can calculate it, but once you do that calculation you find the distribution of any number position to have a random distribution.

and as it meets the definition of a random distribution, given a string long enough all possible sequence combinations of any length will occur, 100% of the time.

and infinitely long random distribution of numbers IS LONG ENOUGH.

even a small number like 100 million random numbers give a 100% chance of getting 1 to 5 length string matches.

and 100 million is TINY, compared to 10000000 trillion which is tiny (equally tiny) compared to infinity.

you could put a digit on every cell in your body (approx. 50 million million) or 50 trillion cells and you would not even come close to finding that length sequence of numbers in an infinite sequence of random (distributed) numbers.

if fact the set of sequences of random number that would occur in an infinite set of random numbers is itself infinite.

so the probability of any sequence of any length is 100% that it will occur and infinite number of time within that infinite sequence. (of randomly distributed decimal numbers).

The length of the string of randomly distributed decimal numbers to ensure 100% chance of a sequence of ANY size can be calculated.

That calculation does not equal infinity, with a finite sequence length it’s a finite number of randomly distributed numbers.

you could probably write a random number generator and have it generate a 100 digit number of random distribution.

very good odds you will have in it 10 1’s

make it 1000 and you will have close to 100 1’s

if it is a random distribution with 10 1’s on your 100 digit number one of those 10 1’s will be followed by the random number 2

so with a 100 length distribution you can expect 10 1’s and 1 followed by 2 occurring on one occasion.

therefore with a 100 length distribution you have an almost 100% chance of getting the sequence ’12’ or any other 2 length sequence.

for 3 digits match, you are going to need all the 2 digit sequences to have occurred at least 10 times (to cover 0 to 9) so you are going to need 1000 random numbers to ensure 100% chance for a 3 digit match (of non-repeating random numbers).

to ensure 4 digits match, 10,000

with pi only calculated to 100 million places you can have 100% probability that a 0 to 5 length sequence will occur.

so if you need 100 million to ensure 5 length sequence, you would need 10 times that value for your 5 length to occur assuming a random number between 0 and 9 fall as the next number, now if it’s only 10 times bigger there is a possibility of a number repeating, so if you make the size 100 times larger, your 5 sequence will occur 100 time within that sequence, out of that 100 time there is 100% chance the next digit will be a 0 to 9 digit.

so you can clearly see that you do not need a string of infinite length of distributed numbers to find any length finite size string match with 100% probability you just need an exponentially larger initial number.

No where even close to infinite

Anonymous Coward says:

Re: Re: Re:4 Pi

yes it has..

there is no ‘current best statistical tests’ it’s either a random distribution or it follows some sequence.

but it is PURELY random distribution, that means if you have a large enough sample size you will get an equal number of all possible value.

so a number of 100 length will have an relative even distribution of each number and there will be approximately 10 of each.

That is what a random distribution means

you cannot ‘prove’ a truly random distribution, it’s either random or it is not.

Anonymous Coward says:

Re: Re:

Yes, it is a well known fact and legislators have attempted to correct this in the past – but those pesky mathematicians.

http://en.wikipedia.org/wiki/Indiana_Pi_Bill

For some reason an irrational number is just too much, rather than a circle it must be a square as this would be much more easier you see.

Round peg – insert – square hole == typical legislator.

Robert (profile) says:

Pi

In my hometown of Princeton, NJ, we celebrate Pi day, as well as Einstein’s birthday, each March 14. One of the highlights of the day is the Pi Recitation Contest. The winner is the person who can recite Pi to the most digits — from memory of course. Last year, the adult winner recited Pi to 2,222 digits.

See link – http://www.pidayprinceton.com/events

Anonymous Coward says:

pi is 3.1415

so 31415 would be a sequence of numbers.. RIGHT AT THE START..

it also occurs in position 88,008

73520514593330496265 31415 14138612443793588507

“1234567” occurs at position 9,470,344

LESS THAT 10 MILLION and you get 1234567

you get “12345678” at position 186,557,266

what about ‘88888888’ yes at position 46,663,520

and that is only in the first 200 million digits of Pi, infinity smaller than the size of pi. (which is infinite).

Anonymous Coward says:

Re: Re: Re:

and YES, it can be mathematically proven to be true, any number sequence will be found in pi, assuming your sample size is large enough.

infinite is large enough.

you have a 100% chance (statistically) of finding a 5 digit number sequence in pi within the tiny first 100 million digits of pi.

you have about a 1% chance of finding a 10 digit number in the first 100 million.

so make that 100 million 100 googles and recalculate !!!.

100 googles or 100 million googles is nothing compared to the actual size of pi. (again infinite).

so calculate pi to 100 times 100 million and you have a 100% chance of finding any 10 digit number combination. if not, then calculate pi 100 times again.. or a sooner or later you will get a number big enough to have a 100% statistical chance of finding any (finite) length number sequence in pi.

the answer to that question IS KNOW, just not by Ho.

Anonymous Coward says:

There are an infinite number of finite sequences

REALLY !!!!!!!!!!

now I know your way out of your depth.

IF.. there is an infinite number of finite sequences it will be really easy to have all of those finite sequences contained within an infinite sequence of non-repeating numbers.

you’ve proven false your own (confused) argument, in fact that infinite set of ‘finite’ sequences will occur an infinite number of time within an infinite sequence of numbers (such as pi). If fact the set of infinite sequences with pi could be larger than the infinite size of pi.

Yes, set of infinites can be larger or smaller that other sets of infinities.

I hope that clears that up for you Mr Ho.

Anonymous Coward says:

ok calculate pi to 1 decimal place you the value 3

you have your sequence of numbers to want to match, you make a guess, you have 0123456789 to choose from. you have a 10% chance of finding your ‘sequence’ in pi.

so if you calculate pi to 10 digits and you get

3.124567890 and your sequence size is still 1 digit (5 for example) you have 100% chance to find your sequence within your calculated value of pi.

(10% x 10)

so you increase your sequence size to 2 digits (eg 12), that would mean you have a 0.01% chance of finding your sequence. (10% of 10%).

but I think even you can see that if the original number is bit enough a point is reached when no matter how large your sequence is, it will exist somewhere in the original number 100% of the time..

I guess there is something to be said regarding the quality of mathematics education in the US..

Anonymous Coward says:

it’s not even a valid question, clearly with an infinite number any number sequence even an infinite one will be found in the sequence.

what the question really is, is ‘how big does the number have to be to ensure that a specific size sequence will occur.
That can easily be worked out statistically.

for example.

with a sequence of 10 digits of random numbers you have a 100% chance of finding a 1 digit sequence in that. 1 in 10 for each digit.

so if your number sequence is 9876543210 you have a 10% chance for each digit to get a match to your sequence and a 100% chance your single digit sequence can be found in the number.

if your search sequence is 23 then you only have 10 possible numbers that can follow a 2 (0123456789), so if you have a sequence or 100 numbers there would be a 100% chance of 2 occurring 10 times, and only 10 different possibilities that can follow the 2 (3 being one of them).

therefore with 10 numbers you have 100% chance of finding a sequence of 1.

with 100 numbers you have a 100% chance of finding a sequence of 2. It’s very simple, the longer your required sequence the larger the initial number has to be.

of for infinite sequence of finite numbers joke.

lets try, we’ll use a finite number of digits (3) we’ll call them 1, 2, 3.

now according to you I can arrange that sequence an infinite number of ways !!!.. LETS TRY.. (this could take awile).

123
213
231
321
312
132

does not look infinite to me !!! yet every possible sequence is covered

Anonymous Coward says:

0123456789

this is a number that contains every possible 1 digit sequence of numbers.

you cannot make up or think of a number that is not contained in this number.

for a 2 digit sequence you would need to have a 0123456789 after every occurrence of 0123456789 from the original 10 digit number.

ie.

00010203…… 09….10111213….19…2021222324…29…..
….
….
90919293949596979899

no matter what combination of 2 digit sequence you choose it will be contained in this one fixed (not random) FINITE NUMBER..

if your sequence is 3 digits long, for every 2 digit sequence (ie 12) you will need a 0 to 9 after it..

120121122123124125126127…..

that gives me a number that contains every possible combination of 3 digit sequence.

you notice that as long as you have a finite sequence (a specific length, it will within a finite number length of random digits.

you don’t need an infinity of numbers you only need an even statistical distribution and a large number set to contain ANY number sequence of any finite length. You may need a very large number but you do not need an infinite number.

in an infinite number a sequence of infinite length will occur an infinite number of times.

which I believe is a few more than none !!!!!.

you can have a sequence of infinite length (such as pi0 but you cannot have a infinite number of combinations of a sequence of a fixed length.

Anonymous Coward says:

if you have a random distribution of 100 numbers (0 to 9) each of those 100 positions has a 10% chance of containing any of those positions. I is possible (not probably) that you will roll 100 random numbers (0 to 9) and never have the number 1 occur. But generally with a random distribution you would expect about 10 1’s to occur (10% of 100).

so make your start number 1000 numbers in length, and you can expect on average 100 1’s 2’s .. 0’s to occur approx. 100 times each.

Yes, it is still possible to roll your 0-9 dice 1000 times and never get a 1, but probably not.

out of those 100 1’s or 2’s or 3’s you get from your list of 1000 numbers you have a 10% chance that the following number will be 0 to 9. so with 100 occurrences of any 1 number you have 100 x 10% chance of getting and complete 2 digit sequence.

so therefore sooner or later in a very long sequence of randomly distributed numbers you will get any one specific sequence. What is necessary is your initial number length is enough.

what is surprising to me is how SMALL a string of randomly distributed numbers are to achieve an extremely high to 100% probability of a sequence to occur.

like what are the odd’s of rolling your 10 dice and getting 9 ‘8s’ in a row !!!.

But it occurs in pi at around 50 million decimal places !!

you get 0 to 9 dice and roll them 50 million times and you might roll 8 ‘0s’ too.

everything does and will occur if you do it long enough.

Add Your Comment

Your email address will not be published. Required fields are marked *

Have a Techdirt Account? Sign in now. Want one? Register here

Comment Options:

Make this the or (get credits or sign in to see balance) what's this?

What's this?

Techdirt community members with Techdirt Credits can spotlight a comment as either the "First Word" or "Last Word" on a particular comment thread. Credits can be purchased at the Techdirt Insider Shop »

Follow Techdirt

Techdirt Daily Newsletter

Ctrl-Alt-Speech

A weekly news podcast from
Mike Masnick & Ben Whitelaw

Subscribe now to Ctrl-Alt-Speech »
Techdirt Deals
Techdirt Insider Discord
The latest chatter on the Techdirt Insider Discord channel...
Loading...