Question

Can you give me some simple function that can ba used for monte carlo method? thanks

Can you give me some simple function that can ba used for monte carlo method? thanks
0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Can you give me some simple function that can ba used for monte carlo method? thanks
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Q. 2 a) Using only Unif 0,1) random variates, use a Monte Carlo algorithm to approximate...

    Q. 2 a) Using only Unif 0,1) random variates, use a Monte Carlo algorithm to approximate the value of the Gamma function 0 by considering the function as an expectation of a function of a random variable. b) Show that if a Monte Carlo simulation of size N is used then the variance of the Monte Carlo estimator is Var (「(a))- 2a-1)-[「(a)]2] provided that α > 0.5. c) Write an R function to implement the method returning the estimated value...

  • 1. Use the Monte Carlo method to calculate approximations to the integrals and then compare your ...

    1. Use the Monte Carlo method to calculate approximations to the integrals and then compare your results with the actual values: dac You may use (some of) the following random numbers: 0.498 0.824 0.862 0.826 0.403 0.145 0.677 0.972 0.708 0.274 0.923 0.382 0.389 0.248 0.362 0.184 0.237 0.950 0.319 0.524 0.593 0.818 0.987 0.393 0.459 0.802 0.178 0.347 0.083 0.440 1. Use the Monte Carlo method to calculate approximations to the integrals and then compare your results with the...

  • I want Matlab code related to 14.35. 14.35 A Monte Carlo analysis can be used for...

    I want Matlab code related to 14.35. 14.35 A Monte Carlo analysis can be used for optimization. For example, the trajectory of a ball can be computed with 2 |(P14.35) x+yo 2 cos20o y=(tan0o)x where y the height (m), Go = the initial angle (radians), the initial velocity (m/s), g 9.81 m/s, and yo vo = 25 m/s, and Oo = 50", determine the maximum height and the corresponding x distance (a) analytically with calcu- lus and (b) numerically with...

  • Write a Java program that uses the Monte Carlo method to estimate the value of PI....

    Write a Java program that uses the Monte Carlo method to estimate the value of PI. This method uses the unit circle inscribed in a square with sides of length 2 and random numbers to perform the estimation. The estimation works as follows: • Two random numbers are generated during each iteration of a loop. • The random numbers are each in the range of -1 to 1. One random number is the x-coordinate and the other is the y-coordinate....

  • 1. (10 points A Monte Carlo analysis can be used for optimization. For example, the trajectory...

    1. (10 points A Monte Carlo analysis can be used for optimization. For example, the trajectory of a ball can be computed with 2vo cos2 Go where y is the achieved height in meters (m), 6% is the initial angle (radians), is the horizontal distance (m), g is the gravitational acceleration (-9.81 m/s2), vo is the initial velocity (m/s), and yo is the initial height. Given yo 1 m, vo 25 m/s, and 500 (or T/180 x 50 rad), determine...

  • Problem 9 (for all students) Monte Carlo simulation is often used to analyze probabilities of failure...

    Problem 9 (for all students) Monte Carlo simulation is often used to analyze probabilities of failure of geotechnical engineering structures. a) For a case, where the limit state function, G, can be described by three normally distributed random variables such that G-Xi-X2x X3, describe a step-by-step methodology (i.e. an algorithm; MatLab code is not needed) that calculates the probability of failure with Monte Carlo simulation. (3 p) I. Il Running the algorithm that you proposed in a), you can visualize...

  • Monte Carlo Simulation This lab assignment consists of two problems involving Monte Carlo simulation. You should...

    Monte Carlo Simulation This lab assignment consists of two problems involving Monte Carlo simulation. You should use either Excel or Python for this assignment. References: Seila, A. F., V. Ceric, and P. Tadikamalla, Applied Simulation Modeling, Duxbury - Brooks/Cole, Belmont, CA, 2003. Schriber, T. J., "Simulation for the Masses: Spreadsheet-based Monte Carlo Simulation," Proceedings of the 2009 Winter Simulation Conference, Rossetti, Hill, Johansson, Dunkin, and Ingalls, Eds., December 2009. Adopted from Problem 2.13 from Seila et al. (page 74) with...

  • Monte Carlo Simulation- Generate π Using Excel and Rand() function generate an estimate of π(3.14159….). The...

    Monte Carlo Simulation- Generate π Using Excel and Rand() function generate an estimate of π(3.14159….). The sample must have 10000 samples that is 10000 rand() functions. When you hit recalc F9 the model should re-generate an estimate of π.

  • [20 points] Problem 2 - Monte Carlo Estimation of Definite Integrals One really cool application of...

    [20 points] Problem 2 - Monte Carlo Estimation of Definite Integrals One really cool application of random variables is using them to approximate integrals/area under a curve. This method of approximating integrals is used frequently in computational science to approximate really difficult integrals that we never want to do by hand. In this exercise you'll figure out how we can do this in practice and test your method on a relatively simple integral. Part A. Let X be a random...

  • This question is related to the MathLab. can you make simple code for me? thanks and...

    This question is related to the MathLab. can you make simple code for me? thanks and have a good one. 1. Apply Fourier transform to image using fft (and fftshift). 2. and display the amplitude and phase using abs and angle functions.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT