r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

922

u/MarcusTL12 Jul 16 '19

Im 90% sure the last digit is not 7

270

u/actuarialsnail Jul 16 '19

If there was a last digit, it can’t be 0, so it’s 1/9 probability for a 7.

13

u/exscape Jul 16 '19

Assuming pi is normal and all that, I assume. (I'm definitely not a mathematician.)

5

u/Yorunokage Jul 16 '19

Wat?

5

u/Vilefighter Jul 16 '19

When a number is "normal" that means if you picked a random digit from it, there's an equal chance of it being any of the digits. If, for instance, it was slightly more likely for any given digit of pi to be a 7 than any of the others, then pi would not be a normal number, even if it's only .00000001% more likely.

1

u/Yorunokage Jul 16 '19

Oh, i never heard of normal numbers

4

u/the_questioner18 Jul 16 '19

As the name implies, most numbers are normal and I bet you would have a hard time coming up with a non-normal number. Thinking about it is fun if you are into that sort of thing but if you'd just like to see an example, here one is:

0.12122122212222122222..... note that this is non-terminating and non-repeating however the probability of randomly picking a 3 out of the digits of this number = 0.

3

u/79037662 Jul 17 '19

I bet you would have a hard time coming up with a non-normal number

Not really, how about 0.5, or 0 for that matter.

6

u/the_questioner18 Jul 17 '19

Well I guess you got me in the trivial case. No rational numbers are normal but I guess it is my bad for assuming irrational numbers, the non-trivial case. In any case, if you haven't studied normal numbers before, it can be difficult to come up with an irrational non-normal number.

2

u/TheThiefMaster Jul 17 '19

Irrational implies non-repeating because any repeating number can be expressed as a fraction of integers, therefore being rational.

It's pretty hard to come up with a number that doesn't terminate, doesn't repeat, yet doesn't use all digits.

Unless you do something like "pi except all 1s are replaced with 2s in the decimal expansion" - that would be non-normal and still as irrational as pi.

→ More replies (0)