Estimate value of error function using monte carlo method

Assignment Help Programming Languages
Reference no: EM132487249

Question: 1. Write a program that uses a Monte Carlo method to estimate the value of the error function

The program must accept input for x, the number of random attempts in the Monte Carlo method N and the seed of the random number generator. Using your student number(0386879) as the seed, give results for x = 1 with N = 100, 1000, 10 000, 1000 000 and 1000 000 000.

2. Write a program that uses a Monte Carlo method to simulate the simultaneous roll of five dices. You do not need to develop a generator for this. You can simply generate 5 rolls of a normal dice. The program simulates N rolls of the five dices. For each roll, the sum of the five dices is computed. The output of the program is the expectation value and variance of the rolls as well as a table of the probability for each possible sum. The program must accept input for the number of rolls N and the seed of the random number generator. Show the results for N = 1 000 000. Visualize the pdf resulting from the simulation. Use your student number(0386879) as a seed for the random number generator.

Reference no: EM132487249

Questions Cloud

Develop architectural internetworking design : Explain human factors in achieving business and technical goals through planning and design and Develop architectural internetworking design for the business
What is the consolidated net income for ackerman reports : What is the consolidated net income for 2019 if Ackerman reports $390,000 (does not include investment income) and Brannigan $131,800 in income?
Why do racial and ethnic inequalities make it more difficult : What changes would have to be made to bring about more opportunities in this country?
What is the parent share of consolidated net income : Determine What is the parent's share of consolidated net income for 2018 if Ackerman owns only 90 percent of Brannigan and the equipment.
Estimate value of error function using monte carlo method : Write a program that uses a Monte Carlo method to estimate the value of the error function. The program must accept input for x, the number of random attempts.
What is the total interest expense recognized : What is the TOTAL interest expense recognized over the life of the bonds? Cola, Inc. issued a 12-year, 10%, $2,500,000 bond on January 1, 2016
How your company does or should use the information provided : Review the video below and write a two page review plus cover page and reference page. The first page of your paper should be a summary of the video.
What performance measures would you recommend akawini : Chapters 26 through 29 presented four mini-case studies on ERM and risk. Each one presented a slightly different risk scenario. Assume that you have been.
How the case deals with the material in chapter : Using WORD, in you OWN WORDS, write an ORIGINAL brief essay of 300 words or more: Describe how the case deals with the material in this chapter.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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