It’s a uniform distribution. Both uniform distribution and next digit in decimal expansion map nicely onto the same concept, length. So it’s 1/10 for each digit each time.
There are 10 one-digit decimals. There are 100 two-digit decimals. You're saying the probability of picking a one-digit decimal is the same as the probability of picking a two-digit decimal?
444 makes up 1/1000th of all possible three-digit sequences. To see 1000 such sequences, we need at least 1002 digits -- the three-digit sequence starting at position 1, the one starting at position 2, ... all the way up to the three-digit sequence starting at position 1000 and continuing to 1001 and 1002.
Problem with this is that you don't account for a sequence of like 944 and then 411 which does produce the answer.
And you've done a pigeonhole principle approach, not an expectatio, which is invalid. If you were to take you're approach, it would be 999 triplets which is 2997 numbers, which is an overestimate due to the above point.
The reason is that it assumes having 444 at one position is independent of having 444 at any other position. But that's not the case. If 444 is at position 5, say, then the probability of 444 also being at position 6 is 1/10, not 1/1000.
90% chance: the first digit is not 4, and the expected value is now X+1.
9% chance: the first digit is 4 but the second is not. The expected value is now X+2
0.9% chance: the first 2 digits are 4 but the third is not. The expected value is now X+3.
0.1% chance: the first 3 digits are all 4, and the expected value is 3.
So we have X = (0.9)(X+1) + (0.09)(X+2) + (0.009)(X+3) + (0.001)(3)
Solving the equation, we get X = 1110. Scarily, I plugged the equation into Google, and Gemini both solved it and recreated the original question (in a slightly different form). Shit's getting real.
By "you can" I mean that the process is mathematically well-defined, so you can reason about it. There are a number of equivalent ways to express it. One is that you roll an infinite number of 10-sided dice, one per digit.
Of course in the actual physical world, I can't actually write one down.
Roll a ten-sided die for each digit to the right of the decimal point.
That works to generate random numbers uniformly on [0,1] but won't work in the other direction (to the left of the decimal point) because digit sequences aren't allowed to continue to the left forever in the Reals.
3
u/LatexSalesman1 5d ago
1110
1
u/lolcrunchy 5d ago
Wouldnt we need the probability distribution of the number of digits in the expansion, which is undefined?
1
u/AdvancedCarpenter888 5d ago
1002
1
u/OutrageousPair2300 5d ago
444 makes up 1/1000th of all possible three-digit sequences. To see 1000 such sequences, we need at least 1002 digits -- the three-digit sequence starting at position 1, the one starting at position 2, ... all the way up to the three-digit sequence starting at position 1000 and continuing to 1001 and 1002.
1
u/Loud-Guidance6912 5d ago
1110
1
u/Warm-Gear-2732 4d ago
should be 1110
1
u/BrotherItsInTheDrum 4d ago
Let the expected value be X.
90% chance: the first digit is not 4, and the expected value is now X+1.
9% chance: the first digit is 4 but the second is not. The expected value is now X+2
0.9% chance: the first 2 digits are 4 but the third is not. The expected value is now X+3.
0.1% chance: the first 3 digits are all 4, and the expected value is 3.
So we have X = (0.9)(X+1) + (0.09)(X+2) + (0.009)(X+3) + (0.001)(3)
Solving the equation, we get X = 1110. Scarily, I plugged the equation into Google, and Gemini both solved it and recreated the original question (in a slightly different form). Shit's getting real.
1
u/OneSushi 5d ago
1000?
1
u/Dr0110111001101111 5d ago
You cannot pick a real number on an interval of R uniformly at random.