3
u/BrickyFu 2d ago
First, I split the the product into MS-M^2. The probability M<=x is the product of the each xi<x = x^100, thus the pdf M(x)=100x^99 thus E(M^2) = int x^2 *100x^99 dx from 0 to 1 which is 50/51. For M*S, we can split into M(x1+x2+x3...x100) and take each expectation individually. We can consider a fixed M (which we'll integrate over) and split E(Mxi)=(1/100)E(Mxi|M=xi)+99/100E(Mxi|M>xi) weighted by the probability if a considered xi is or isnt the max M. The first summand is M^2. the second summand is given a fixed M, xi will be uniform between 0 and M so its expectation is M/2. Therefore, E(Mxi) = E( 1/100 M^2 +99/100 M^2/2) = 50/51*1/100 + 25/51*99/100. We do this 100 times so E(MS)=50/51+25/51*99. The solution is thus E(MS-M^2)=50/51+25/51*99-50/51= 25/51*99
The simplicity of the answer probably means theres a much cleaner way to solve this
3
u/Ok_Body_2830 2d ago edited 2d ago
Here is what I think is a simpler path.
Start by conditioning on M=a.
We know that the other 99 X values are uniformly distributed on [0,a]. They have expected value a/2.
Therefore E(S|M=a)=a+99(a/2) ->E(S-M)|M=a)=99(a/2)->E(M(S-M))|M=a)=99(a^2/2).
Using LIE, this gives us E(M(S-M))=99/2 E(M^2).
There is a property that if M is the highest of n draws from a uniform [0,1] distribution, E(M^k)=n/(n+k). So in this case 100/102=50/51.
Therefore the answer is (99/2)*(50/51), which is the same as your (25/51)*99
If you want to develop the property in step 5 instead of just citing it:
Suppose there were actually 102 draws and we are just looking at the first 100.
Conditional on M. The probability either of the final two draws are less than M is M, so the probability both are less than M is M^2.
To take away the conditioning, we take the expectation of M. So the probability X_101 and X_102 are both less than M is E(M^2)
Any of the 102 numbers is equally likely to be the higest of the 102, so the probability that the highest of all 102 numbers is in the first 100, and therefore is equal to M, is 100/102.
Since M is the highest of all 102 numbers if and only if X_101 and X_102 are less than M, steps 3 and 4 are both calculations of the same thing. So E(M^2)=100/102
Disclaimer: When working it through myself. I kind of faked Step 5. I saw that E(M)=100/101, and then sort of concluded that E(M^2)=100/102 gave me your answer and seemed like it could be a logical extension of E(M)=100/101, but I couldn't see exactly why. I looked up the proof in the second set of steps. Which I do think is pretty clever and elegant.
2
u/lolcrunchy 2d ago
I got (97 x 98 x 99)/(2 x 101 x 102) or 156849/3434, but I made an assumption I wasn't confident about.
1
1
6
u/DanielShaww 2d ago
The answer is always 50 or 1/2