Question: #All packages needed import numpy as np import scipy.special as spsp import scipy.stats as spspt import matplotlib.pyplot as plt $matplotlib inline study the Monte-Carlo integration

 #All packages needed import numpy as np import scipy.special as spsp

#All packages needed import numpy as np import scipy.special as spsp import scipy.stats as spspt import matplotlib.pyplot as plt $matplotlib inline study the Monte-Carlo integration problem based on the following integration: S20* + da QUESTION 1: Compute the integration problem above using Monte-Carlo Integral based on 1000 samples. Construct the corresponding 95% confidence interval for the true value of the integration. U QUESTION 2: This integration problem has an analytical solution equals Repeat Q1 500 times will allow us to collect 500 different Monte-Carlo integration results. Also, we will get 500 different 95% confidence intervals. Plot the distribution of 500 integration results you get. Comment on the shape of the distribution and argue why you see this shape. For this plot, use bins=20. Compute the percentage of times these confidence intervals contain the analytical solution. PLEASE USE PYTHON. I WILL 100% RATE. THANKS! #All packages needed import numpy as np import scipy.special as spsp import scipy.stats as spspt import matplotlib.pyplot as plt $matplotlib inline study the Monte-Carlo integration problem based on the following integration: S20* + da QUESTION 1: Compute the integration problem above using Monte-Carlo Integral based on 1000 samples. Construct the corresponding 95% confidence interval for the true value of the integration. U QUESTION 2: This integration problem has an analytical solution equals Repeat Q1 500 times will allow us to collect 500 different Monte-Carlo integration results. Also, we will get 500 different 95% confidence intervals. Plot the distribution of 500 integration results you get. Comment on the shape of the distribution and argue why you see this shape. For this plot, use bins=20. Compute the percentage of times these confidence intervals contain the analytical solution. PLEASE USE PYTHON. I WILL 100% RATE. THANKS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!