A random, 7-digit positive integer is selected. What is the most likely value for the sum of its digits?
Bonus: Generalize your answer to n -digit integers.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
correction needed : instead of n, it should be n-1 because 4.5 is for the last n-1 digits. Answer = 5 + 4.5(n-1) = 0.5 + 4.5n
Let S represent the sum of the digits of a random 7-digit positive number. If X n is the value of the nth digit from left to right, then S = X 1 + X 2 + X 3 + X 4 + X 5 + X 6 + X 7 and by linearity of expectation E [ S ] = E [ X 1 ] + E [ X 2 ] + E [ X 3 ] + E [ X 4 ] + E [ X 5 ] + E [ X 6 ] + E [ X 7 ] . Since the distribution of X n is the same for n ≥ 2 , E [ S ] = E [ X 1 ] + 6 E [ X 2 ] . The range of values for X 1 is [ 1 , 9 ] with each digit being equally likely to be chosen, so E [ X 1 ] = 9 1 2 9 ( 1 0 ) = 5 . The range of values for X 2 is [ 0 , 9 ] with each digit being equally likely to be chosen, so E [ X 2 ] = 1 0 1 2 9 ( 1 0 ) = 4 . 5 . Thus, E [ S ] = 5 + 6 ( 4 . 5 ) = 3 2
Problem Loading...
Note Loading...
Set Loading...
Normally, we shouldn't conflate expected value with median (the most likely outcome), but in this case, they are the same.
The possible choices for the 1st digit are 1 through 9 , and so the expected value of the first digit is 2 1 + 9 = 5 . The possible choices for all the other digits are 0 through 9 , and so the expected value of each other digit is 2 0 + 9 = 4 . 5 . Then the expected value for the 7-digit number is 5 + 4 . 5 × 6 = 3 2 .
Generalized to n digits, the expected value of the digit sum is 5 + 4 . 5 n .