- #36
EngWiPy
- 1,368
- 61
OK, that explains it. I will switch to C++. This is taking too much time in Python, and this is only to set the parameters right, and for one point!
The first formula in post #29 is missing ##f_Y(y_2)##, and thus it should be
[tex]
K(K-2)\int_{y_1=0}^{\infty}\int_{x_1=x_0}^{\max(x_0,\,y_1z_0)}\left[\int_{y_2=0}^{\infty}\int_{x_2=x_1}^{\max(x_1,\,y_2z_1)}\left[1-F_X(x_2)\right]^{K-2}f_X(x_2)f_Y(y_2)\,dx_2\,dy_2\right]f_X(x_1)\,f_Y(y_1)\,dx_1\,dy_1
[/tex]
but the code is correct, because it accounts for it. It was a mistake of typing the formula from my notes.
The first formula in post #29 is missing ##f_Y(y_2)##, and thus it should be
[tex]
K(K-2)\int_{y_1=0}^{\infty}\int_{x_1=x_0}^{\max(x_0,\,y_1z_0)}\left[\int_{y_2=0}^{\infty}\int_{x_2=x_1}^{\max(x_1,\,y_2z_1)}\left[1-F_X(x_2)\right]^{K-2}f_X(x_2)f_Y(y_2)\,dx_2\,dy_2\right]f_X(x_1)\,f_Y(y_1)\,dx_1\,dy_1
[/tex]
but the code is correct, because it accounts for it. It was a mistake of typing the formula from my notes.