Write a matlab program to1using the classical monte-carlo


Write a Matlab program to:

1)Using the classical Monte-Carlo method, estimate the value of the following integral:

= ∫0x(1-x)3 dx

Also, estimate the variance, (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 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.

 

 

Request for Solution File

Ask an Expert for Answer!!
Mathematics: Write a matlab program to1using the classical monte-carlo
Reference No:- TGS01128890

Expected delivery within 24 Hours