MATLAB: How to Calculate the PDF and CDF of a product of two i.i.d exponentially distributed random variables with mean a and b respectively exponential Hi Best Answer You getF(x)=1-2*sqrt((lambda1)*(lambda2)*x)*K1(2*sqrt((lambda1)*(lambda2)*x))f(x)=2*(lambda1)*(lambda2)*K0(2*sqrt((lambda1)*(lambda2)*x))withlambda1 = 1/mlambda2 = 1/nK0, K1 : Modified Bessel functions of the second kindhttp://reference.wolfram.com/language/ref/BesselK.htmlBest wishesTorsten. Related SolutionsMATLAB: Trouble using dsolve function z = a*x+b*x^2+c+........; eqn = subs(sym('D2y +5*z+ 2*x + 10*z^2'), z, z);S = dsolve(eqn, x);Myself, I would probably toss in a simplify() around the subs() . MATLAB: Regarding the PDF and CDF of two gamma distributed random varaibles!! The density function for X+Y is given byf_X+Y(z)=exp(-q*z)*p^(2*m)/(gamma(m))^2*integral_{x=0}^{x=z}(x*(z-x))^(m-1)*exp(-(p-q)*x) dxUse MATLAB's "integral" to evaluate the integral for different values of z.Best wishesTorsten. Related QuestionGetting an error “INDEX OUT OF BOUNDS” in the matlab program. Please help.How to write anonymous funtion to solve with lsqnonlinMonte carlo simulation simplificationIf condition problem and positive condition
Best Answer