Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Write R code for the following Question:
a. Use the Monte Carlo method with n = 100 and n = 1000 to estimate integral top=1 bottom=0 cos(2πx) dx. Compare the estimates to the exact answer.
b. Use Monte Carlo to evaluate integral top=1 bottom=0 cos(2πx 2) dx. Can you find the exact answer?
Thus far I have:
#Estimation of f=integral(cos(2piX)dx) from x=0,1
#generate random values from appropriate ranges
x<-data.frame(x=runif(n,min=0,max=1)
#evaluate at f
f=integral(cos(2(pi)X)dx)
#Approximate by averaging with appropriate scaling
(1/16)*(1)*(3/32)*mean(f)
Studies indicate that the price elasticity of demand for beer is about 0.9. A government policy aimed at reducing beer consumption changed the price of a case of beer from $10 to $20. According to the midpoint method, the government policy should hav..
Suppose that a computer software company controls the operating system market. Although the government knows that the price is higher than it would be in the presence of competition, it believes that such profits are crucial to incentivizing innovati..
Explain how GDP is measured in your country - explain who would benefit directly and who would lose directly from such restrictions.
Assume the market interest rate is 5 percent. What is the NPV of a $1,000 loan that carries an interest rate of 7 percent and has a maturity.
Multinational enterprises are sometimes compared to colonial enterprises that operated at the end of the 19th century. Colonial enterprises were often private firms that benefited from government protection and control of foreign countries. Is this a..
Select a process (a set of specified steps to accomplish a task) used at your place of work or in your interaction with a business that you would like to see improved.
Tom gains utility from consumption C and leisure L. The most leisure she can consume in any given week is 112 hours. His wage is $20. His utility function is U(C,L) = C^3/4*L^1/4. Tom receives 640 each week from her great-grandmother. What is the mar..
The reduction in Melissa's purchase of Brand A corn flakes because of this reason is called:
Marginal utility and MRS and budget constrain, what is their relationship?
A production facility is looking at installing a wind turbine which will cost $175,000 at time zero. The wind turbine will allow them to have free electricity and they know they’ll use all the electricity it provides. The wind turbine will have a 6 y..
Is personality more influenced by nature or nurture. Is personality something that is consistent throughout life, or changes over time?
What effect will each of the following have on wage inequality in the economy of a certain country?
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd