Compare the estimates to the exact answer

Assignment Help Business Economics
Reference no: EM132069324

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)

Reference no: EM132069324

Questions Cloud

Compute the test statistic : If x =105.2 and s=8.3?, compute the test statistic.
What type of statistical design is a researcher using : If the two sets of data come from two completely separate groups OR comes from the same group two different times; what type of statistical design is a research
What is an appropriate analysis or procedure : For each example, what is an appropriate analysis or procedure to use to determine if there is an association between the two variables.?
How are teeth used to estimate age : Anatomy - MUSCULAR AND SKELETAL SYSTEMS - How is the pelvis of a female different from the pelvis of a male - What can the hand bones tell you about the decease
Compare the estimates to the exact answer : a. Use the Monte Carlo method with n = 100 and n = 1000 to estimate integral top=1 bottom=0 cos(2px) dx. Compare the estimates to the exact answer.
Category of securities with highest historical risk premium : The category of securities with the highest historical risk premium is
Standardized version of standard deviation : Z-scores and six sigmas are a new concept this week and I am having a hard time understanding.
Determine how you can earn your points : To get started, click on the +Pin option on the upper right hand corner and write your response. Click on "How Points Work" to see how you can earn your points.
State the null and alternate hypotheses : Has the advertising campaign made any difference in the product identity? Use the 0.05 significance level.

Reviews

Write a Review

Business Economics Questions & Answers

  According to the midpoint method

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..

  Software company controls the operating system market

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 how GDP is measured in your country - explain who would benefit directly and who would lose directly from such restrictions.

  Principal repayment of remaining amount

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.

  Private firms that benefited from government protection

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..

  Information systems in organization

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.

  Marginal rate of substitution of leisure for consumption

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..

  Reduction in melissa purchase of brand a corn

The reduction in Melissa's purchase of Brand A corn flakes because of this reason is called:

  Mrs and budget constrain

Marginal utility and MRS and budget constrain, what is their relationship?

  What is the annual amount of electricity

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 more influenced by nature or nurture. Is personality something that is consistent throughout life, or changes over time?

  Wage inequality in the economy of a certain country

What effect will each of the following have on wage inequality in the economy of a certain country?

Free Assignment Quote

Assured A++ Grade

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!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd