
MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
expand_more
expand_more
format_list_bulleted
Question
![1. Use the Monte Carlo method to estimate the following: o'exp(exp(x)) dx
this easy version of the Monte Carlo method, uses the law of large numbers:
Law of Large Numbers: if {Xi} are i.i.d. UNiform on [0, 1],
n
2 h(X;) →
h(x)dx = E(h(X))
i=1
The more complete Monte Carlo method allows to compute
b
h(x)f(x)dx = E(h(X))
a
for other random variebles, not only Uniform. Monte Carlo uses a Markov chain to generate sapling from the "steady state" distribution. See
slides attached.
In this problem, you are only asked to try the Law of Large Numbers.
2. E(N) where N is defined as follows. Let {U ¡} be i.i.d. Unif(0,1). Define N=min{n: U 1+...+U n
>1}
Calculate N 100 times and then compute the mean. (Also draw the histogram of results)
Repeat this again 10000 times. Comment on your findings. What was the average of your 10000 calculations?
Upload you work (done neatly) here.](https://content.bartleby.com/qna-images/question/5e25041d-7573-46df-b9d3-ec2dd7694c16/af0a0eeb-9572-4c93-83b2-eb383e7da217/07wgc7m_thumbnail.png)
Transcribed Image Text:1. Use the Monte Carlo method to estimate the following: o'exp(exp(x)) dx
this easy version of the Monte Carlo method, uses the law of large numbers:
Law of Large Numbers: if {Xi} are i.i.d. UNiform on [0, 1],
n
2 h(X;) →
h(x)dx = E(h(X))
i=1
The more complete Monte Carlo method allows to compute
b
h(x)f(x)dx = E(h(X))
a
for other random variebles, not only Uniform. Monte Carlo uses a Markov chain to generate sapling from the "steady state" distribution. See
slides attached.
In this problem, you are only asked to try the Law of Large Numbers.
2. E(N) where N is defined as follows. Let {U ¡} be i.i.d. Unif(0,1). Define N=min{n: U 1+...+U n
>1}
Calculate N 100 times and then compute the mean. (Also draw the histogram of results)
Repeat this again 10000 times. Comment on your findings. What was the average of your 10000 calculations?
Upload you work (done neatly) here.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps with 8 images

Knowledge Booster
Similar questions
- Let X = 1 if a randomly selected vehicle passes an emissions test and X = 0 otherwise. Then X is a Bernoulli rv with pmf p(1) = p and p(0) = 1 - p. (a) Compute E(X²). E(X²) = (b) Show that V(X) = p(1 − p). V(X) = E = = : p(1 - p) (c) Compute E(X98). E(X98) = - [E(X)]²arrow_forwardT(n) = 2T(n − 1) + 1, T(0) = 1. Use the iteration method to find a () evaluation for T(n).arrow_forwardA chemical supply company currently has in stock 100 Ib of a certain chemical, which it sells to customers in 4-lb batches. Let X = the number of batches ordered by a randomly chosen customer, and suppose that X has the following pmf. 1 2. 3 4 P(x) 0.3 0.5 0.1 0.1 Compute E(X) and V(X). E(X) = V(X) = batches batches? Compute the expected number of pounds left after the next customer's order is shipped and the variance of the number of pounds left. [Hint: The number of pounds left is a linear function of X.] expected weight left Ib wariance of weight left Ib2arrow_forward
Recommended textbooks for you
- MATLAB: An Introduction with ApplicationsStatisticsISBN:9781119256830Author:Amos GilatPublisher:John Wiley & Sons IncProbability and Statistics for Engineering and th...StatisticsISBN:9781305251809Author:Jay L. DevorePublisher:Cengage LearningStatistics for The Behavioral Sciences (MindTap C...StatisticsISBN:9781305504912Author:Frederick J Gravetter, Larry B. WallnauPublisher:Cengage Learning
- Elementary Statistics: Picturing the World (7th E...StatisticsISBN:9780134683416Author:Ron Larson, Betsy FarberPublisher:PEARSONThe Basic Practice of StatisticsStatisticsISBN:9781319042578Author:David S. Moore, William I. Notz, Michael A. FlignerPublisher:W. H. FreemanIntroduction to the Practice of StatisticsStatisticsISBN:9781319013387Author:David S. Moore, George P. McCabe, Bruce A. CraigPublisher:W. H. Freeman

MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc

Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning

Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning

Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON

The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman

Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman