Suppose Xi for i=1, 2, 3… has Uniform(0,1) distribution. Let N = min (n+1: Xn > Xn+1). Find E (N) by simulation. 10,000 simulations required.
For the first part I think this is :
S1 = symsum(x, x, 2, inf); %Summation for Xi for i = 2,3,4...
a = 1; %beta distrubtion Uniform(0,1) distribution with a=1 & b=1
b = 1;data = S1(a,b); %Xi has Uniform(0,1) distribution
N = (S1) > (S1+1) % setting N
if this is correct then i'm only confused on finding E(N) here..
I was horribly off, thank you for the help here
Best Answer