EngWiPy
- 1,361
- 61
Yes, there is a missing ##f_Y(y_2)## in the first formula. ##z_{m-1}=z_{m-2}-\sum_{l=1}^{m-1}\frac{x_l}{y_l}## for ##m=2,\,\ldots,\,M## and ##z_0=z##, which is passed as parameter. I get ##1.44\times 10^{-6}## from the program. The MC simulations is tractable, and the results make more sense. Basically, I want to evaluate
\text{Pr}\left[\frac{X_{(1)}}{Y_1}+\frac{X_{(2)}}{Y_2}\leq z\right]
where (##K\geq 2##)
X_{(1)}\leq X_{(2)} \leq \cdots X_{(K)}
are the order statistics of the RVs ##\{X_k\}_{k=1}^K##, which are i.i.d. exponential random variables with parameter 1, and ##Y_1## and ##Y_2## are also i.i.d. exponential random variables with parameter 1.
Setting dx and or dy smaller that 0.01, makes the running time significantly longer.
I think there is a problem in the logic of the program, and probably something to do with the argument ##z-ux/uy##, but not sure what it is!
\text{Pr}\left[\frac{X_{(1)}}{Y_1}+\frac{X_{(2)}}{Y_2}\leq z\right]
where (##K\geq 2##)
X_{(1)}\leq X_{(2)} \leq \cdots X_{(K)}
are the order statistics of the RVs ##\{X_k\}_{k=1}^K##, which are i.i.d. exponential random variables with parameter 1, and ##Y_1## and ##Y_2## are also i.i.d. exponential random variables with parameter 1.
Setting dx and or dy smaller that 0.01, makes the running time significantly longer.
I think there is a problem in the logic of the program, and probably something to do with the argument ##z-ux/uy##, but not sure what it is!