Can you prepare the project given below in matlab? (I would appreciate if you explain every step of the written code.) CE 412 - PROJECT 2 "Monte Carlo Simulation - Integration" Monte Carlo integration is a powerful method for computing the value of complex integrals using probabilistic techniques. In this project we are going to calculate the area under the Weibull distribution which is given by f(x) = x βα -x-1e-(x/B) for x ≥ 0. In this project, write a program by using both the hit-or-miss method and the sample-mean method to calculate the following integral by using n random points. [ fox b. f(x)dx = [ α e-(x/f) dx -xα-1e- βα Your program should ask the following parameters as the input: the method type, hit-or-miss method or sample mean method n, the number of random points a, the shape parameter of the distribution B, the scale parameter of the distribution a, the lower limit for the integral ⚫b, the uppper limit for the integral
Can you prepare the project given below in matlab? (I would appreciate if you explain every step of the written code.)
CE 412 - PROJECT 2 "Monte Carlo Simulation - Integration"
Monte Carlo integration is a powerful method for computing the value of complex integrals using
probabilistic techniques. In this project we are going to calculate the area under the Weibull distribution which is given by f(x) = x βα
-x-1e-(x/B) for x ≥ 0.
In this project, write a program by using both the hit-or-miss method and the sample-mean method to
calculate the following integral by using n random points.
[ fox b. f(x)dx = [ α e-(x/f) dx -xα-1e- βα
Your program should ask the following parameters as the input:
the method type, hit-or-miss method or sample mean method
n, the number of random points
a, the shape parameter of the distribution
B, the scale parameter of the distribution
a, the lower limit for the integral ⚫b, the uppper limit for the integral
Project 2 Submission:
Name your program as yournamePrj2.X and submit it to LEARN on March 3rd 2022. Calculate the value of the following integral by both hit-or-miss and sample-mean methods. Then answer the questions in the project report and submit it to LEARN in a separate document.
Weibull Distribution with 5 and 5
0.4
0.35
0.3
0.25
302
0.15
0.05
2
54**e-(x/5)5dx
0.1
7c8
9
10
Step by step
Solved in 4 steps with 2 images