Monte Carlo Integration approach with Mathematica

30 Views Asked by At

I have been working on Monte Carlo Integration approach with Mathematica problem. Here is the description: Approximate the values of the following integrals using the Monte Carlo Integration approach. In each case, use a sufficiently large number of samples so that you have a reasonably accurate approximation to the exact value. Please show the details of your computational setup and the resulting numerical estimate [![Equation I am working on][1]][1]

Here is my Mathematica Code

Remove["Global`*"]
U:Random[]
f[x_,y_,z_]=z^3(x-y)^2
X:=6.0(*(3-0)*(2-0)*(1-0)*) (*I am not sure this part*)
avg = Sum[f[X],{1000000}]/1000000
mc = 6.0 * avg(*I am not sure this part*)

Could you help with correcting code especially the two line I put (I am not sure this part) [1]: https://i.stack.imgur.com/qQWkp.png

0

There are 0 best solutions below