Suppose Xi for i=1, 2, 3… has uniform (0, 1) distribution.
Let M = min (n: X1 + X2 + … + Xn> 1). Find expected value of M; E(M) = Mean of M.
Let N = min (n+1: Xn > Xn+1). Find expected value of N; E(N) = Mean of N.
* I have to create a SAS program with at least 10000 simulations and follow the directions above. I am new to SAS programming so I don't know how to create a formula to find M or N. My first step would be to create a simulation of 10000 values, but after that I am lost.
Any help would be appreciated!
... View more