1 answer

Use Monte Carlo Simulation to estimate I. Calculate I = integral^5_3 integral^2_1(2x + 3y^2)dxdy (a) Write...

Question:

Coding Exercise (MATLAB) - Monte Carlo Simulation: 2. (30pts) Calculate(232)drdy (a) (15pts) Write a program to estimate I that takes as input n mmber of repli- cations. (Hint: You can use MATLAB function rand). See http: 1/ ws mathuworks.com help/matlab ref/rand. html)

Use Monte Carlo Simulation to estimate I.

Calculate I = integral^5_3 integral^2_1(2x + 3y^2)dxdy (a) Write a program to estimate I that takes as input n = number of replications.

Answers

x = [7.1, 3.4, 7.2, 28/4, 3.6, 17, 9.4, 8.9];
length(x) % length of x vector
y = rand(3, 4, 5, 2);
ndims(y) % no of dimensions in array y
s = ['Zara', 'Nuha', 'Shamim', 'Riz', 'Shadab'];
numel(s) % no of elements in s

.

Similar Solved Questions

1 answer
Find the GDP: Social Security Contributions 20 Gross Private Domestic Investment 50 Taxes on Production and...
Find the GDP: Social Security Contributions 20 Gross Private Domestic Investment 50 Taxes on Production and imports 40 US Imports 100 Corporate Income Tax 50 Personal consumption Expenditures 150 Transfer Payments 20 Consumption of Fixed Capital 3...
1 answer
A dating app allows users to swipe right to 'like' or left to 'pass' when they...
A dating app allows users to swipe right to 'like' or left to 'pass' when they view a person's dating profile. You want to estimate the overall "success rate" for men from women viewing their dating profile. You randomly select 400 swipes where women viewed men's prof...
1 answer
Jeraldine yates is a 70 year old woman originally from alabama . she lives alone and...
jeraldine yates is a 70 year old woman originally from alabama . she lives alone and is avle to manage herslef independently. she is active in jer community and church . mrs yares was admitted to the hosptial teo months ago with heart failure...
1 answer
The following information is available for Aikman Company January 1, 2017 $25,760 17,120 27,190 2017 December...
The following information is available for Aikman Company January 1, 2017 $25,760 17,120 27,190 2017 December 31,2017 $ 32,660 18,650 22,380 Raw materials inventory Work in process inventory Finished goods inventory Materials purchased Direct labor Manufacturing overhead Sales revenue $154,290 225,0...
1 answer
The doubling period of a bacterial population is 20 minutes. At timet population was 80000. 120...
The doubling period of a bacterial population is 20 minutes. At timet population was 80000. 120 minutes, the bacterial What was the initial population at timet = 0? Find the size of the bacterial population after 5 hours....
1 answer
My Home [Ref Name each of the following alkenes. a. CH2=CH-CH2-CH2-CH3 b. CH2CH3 CH3 -CH2-CH=C-CH3 c....
My Home [Ref Name each of the following alkenes. a. CH2=CH-CH2-CH2-CH3 b. CH2CH3 CH3 -CH2-CH=C-CH3 c. CH3 CH.CH2CH-CH2-CH=C-CH3 CH3 Submit Answer Try Another Version 9 item attei...
1 answer
For a given bivariate data set, the sample correlation coefficient was found to be close to...
For a given bivariate data set, the sample correlation coefficient was found to be close to 1.  Which of these is (reasonably) valid? x and y are independent y can be predicted using x x causes y y causes x...
1 answer
4. Making graphs (spreadsheet): Use the snapshots.pdf file, together with its hyperlinks to the underlying spreadsheet...
4. Making graphs (spreadsheet): Use the snapshots.pdf file, together with its hyperlinks to the underlying spreadsheet data. Use a spreadsheet program of your choice to complete the following. (a) Make a plot of per capita GDP (in dollars) for the years 1950 to 2014 for a country of your choice. Lab...
1 answer
(5 points) The following augmented matrix is in reduced row echelon form. Decode from the matrix...
(5 points) The following augmented matrix is in reduced row echelon form. Decode from the matrix the solution of the corresponding system of linear equations (using the variables X1, X2, and x3) or state that the system is inconsistent. (if a free variable is needed use the parameter t.) 1 0 3121 0 ...
1 answer
Help my find the way to the solution thank you ! + per acid tun wiH ow CI tow tun Both! + per acid tun wiH ow CI tow tun Both!
help my find the way to the solution thank you ! + per acid tun wiH ow CI tow tun Both! + per acid tun wiH ow CI tow tun Both!...
1 answer
Lease describe the Blum's Model, and outline the major components that contribute to health and well...
lease describe the Blum's Model, and outline the major components that contribute to health and well being. Does this model still hold true today? Is the model still relevant even though it was introduced in 1974? What other models may be more useful and accurate given today's healthcare cli...
1 answer
A and C for #5 4. (12 pts) What product is formed when each compound is...
A and C for #5 4. (12 pts) What product is formed when each compound is oxidized? With some compounds, there may be no reaction. u CI fo] ITOR CHO cxidcter aldo + callery [o] NO Reaction + ( A, - ( 9, - C O + CH3CH2CH2OH- C - 5. (9 pts) For the molecules in problem 4 above, what products are formed...
2 answers
Andrea, Betty, Joyce, Karen, and Paula are starters on their school basketball team
Andrea, Betty, Joyce, Karen, and Paula are starters on their school basketball team. How many different groups of three can be chosen for a newspaper photo?...
1 answer
The JustOneMore Company produces and sells organic plain potato chips. The one-pound family size bag of...
The JustOneMore Company produces and sells organic plain potato chips. The one-pound family size bag of chips has two direct materials – potatoes and packaging. JustOneMore is preparing budgets for the second quarter ending June 30, 2019. For each requirement below prepare budgets by month for...