Question

Exercise 3 For the computation of the expectation Ef[h(x)] when f is the normal pdf and h(x) - exp A. Show that Ef[h(x)] can

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ら e.

R Program

## B.
nsim=10^4
x=rnorm(nsim,0,1)
pr=exp(-(x-2)^2/2-(x-4)^2/2)
mean(pr)
sd(pr)

OUTPUT

value=0.01049353
SD= 0.03898224

SD=

## C.
nsim=10^4
x=runif(nsim,-6,-1)
pr1=5*exp(-x^2/2-(x-2)^2/2-(x-4)^2/2)/sqrt(2*pi)
mean(pr1)
sd(pr1)

OUTPUT

value= 1.016398e-09
SD=5.040679e-09

Add a comment
Know the answer?
Add Answer to:
Exercise 3 For the computation of the expectation Ef[h(x)] when f is the normal pdf and h(x) - ex...
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
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