Write a Matlab program to:
1)Using the classical Monte-Carlo method, estimate the value of the following integral:
I = ∫01 x(1-x)3 dx
Also, estimate the variance, V (I), of this estimator. Plot both the estimates as functions
of n, the number of samples generated.
2)Using a normal random generator, you have written previously, estimate the fourth-moment ofX, where X is normal with mean 5 and variance 4.
E[(X-µ)4] =∫-∞∞(x-µ)4fX(x)dx
Plot this estimate as a function of the sample size.