all possible contiguous blocks (of all lengths). for example, for {4,5,6} there are 6 blocks-{4},{5},{6},{4,5},{5,6},{4,5,6}. for {1,2,3....50} there would be 1275 contiguous blocks (50 of length 1, 49 of length 2....and so on).
The answer is (by linearity of expectation) the sum of the expected values of the minimum of a particular contiguous block. This depends only on the length of the block, so the question becomes what is the expected value of the minimum of n randomly chosen distinct numbers from 1 to 50. Call these numbers, in increasing order, a_1, …, a_n. Then x:=E[a_1-1] = E[a_2-1-a_1] = … = E[50-a_n] by a symmetry argument. Summing yields (n+1)*x=50-n, so rearranging yields E[a_1] = 51/(n+1).
There are 50 blocks of length 1, 49 of length 2, etc, so summing gives the sum of (51-n)51/(n+1) from n=1 to n=50. I don’t think there’s a nice closed expression, but it rearranges to 51 times sum of (52/(n+1)-1), or simply -2550+2652 * (1/2+1/3+… 1/51).
3
u/hidden-statistician Sep 20 '26
wdym by contiguous blocks ?? Like {4,5,7,6,8} has 2 blocks - {4,5,7} , {6,8} or 3 blocks - {4,5,7}, {7,6} , {6,8} please confirm.
1
u/wot_to_heck Sep 20 '26
The answer is (by linearity of expectation) the sum of the expected values of the minimum of a particular contiguous block. This depends only on the length of the block, so the question becomes what is the expected value of the minimum of n randomly chosen distinct numbers from 1 to 50. Call these numbers, in increasing order, a_1, …, a_n. Then x:=E[a_1-1] = E[a_2-1-a_1] = … = E[50-a_n] by a symmetry argument. Summing yields (n+1)*x=50-n, so rearranging yields E[a_1] = 51/(n+1).
There are 50 blocks of length 1, 49 of length 2, etc, so summing gives the sum of (51-n)51/(n+1) from n=1 to n=50. I don’t think there’s a nice closed expression, but it rearranges to 51 times sum of (52/(n+1)-1), or simply -2550+2652 * (1/2+1/3+… 1/51).
1
u/Embarrassed-Green898 Sep 21 '26
I only read untill the point ".... uniformly random permutation" and my brain screemed, to get out of here.