Using your method of differential equation, this problem should be easy. The answer should be 3-e.
Let f(x) be the expected value of the smallest number when the initial number is x.
Say \(x_1>x_2>...>x_n=x\),
for \(x_{n+1}\), consider the two cases: either \(x_{n+1}\ge x \) or \( x_{n+1}<x\), We can build the equation
\( f(x)=(1-x)x+\int_0^x f(y)dy \)
Using the initial value f(0)=0, we get \(f(x)=1+2x-e^x\), and we have \(f(1)=3-e.\)
Could you explain this: \(f(x)=(1-x)x+\int_0^x f(y)dy\)?Using your method of differential equation, this problem should be easy. The answer should be 3-e.
Let f(x) be the expected value of the smallest number when the initial number is x.
Say \(x_1>x_2>...>x_n=x\),
for \(x_{n+1}\), consider the two cases: either \(x_{n+1}\ge x \) or \( x_{n+1}<x\), We can build the equation
\( f(x)=(1-x)x+\int_0^x f(y)dy \)
Using the initial value f(0)=0, we get \(f(x)=1+2x-e^x\), and we have \(f(1)=3-e.\)
Found it.Could you explain this: \(f(x)=(1-x)x+\int_0^x f(y)dy\)?
Thank you.
I really like that differential equation trick! It's the continuous version of another trick you see a lot on this forum...
Here's a related question, which can also indirectly be used to solve this one: Pick numbers \(x_1, x_2, x_3, ...\) in \(U[0,1]\) as long as the running sum is \(\leq 1\). Find the expected value of the last running sum.
I haven't seen this ODE approach before, but it is very cute!
I first saw this problem exactly 1 year ago, and it defeated me.
The answer is e
But I am having trouble solving it using the ODE approach.
I got this far:
We condition the expected value of the sum on the first value obtained (what you called \(x_1\)).
Let f(S) be the expected value, given that the first value obtained is S.
Then \(f(S)=S^2+\int_0^{1-S} (S+f(y))dy\) subject to the initial condition f(1)=1.
f(0) is the expected value of the sum.
Differentiating this to get an ODE, we get:
\(f'(S)=1-f(1-S)\)
I don't know how to solve this analytically.
If I'm doing something wrong, please correct....
Looks correct to me. Good one.