Docsity

Problem Set for Stochastic Simulation Course: APPM 7400, Assignments of Applied Mathematics

Toggle sidebar
bg1
APPM 7400: Stochastic Simulation
Problem Set One (Due Monday, September 29th)
(Please include code when you hand this in.)
1. Simulate 100 values from the exponential distribution with rate 1/2. Apply the Kolmogorov-
Smirnov test to check that your values did in fact come from an exponential rate 1/2 distri-
bution. Now test your “data” against the exponential rate 1 distribution. Can you detect
that it did not come from this ditribtution?
2. Simulate 100,000 draws from the normal distribution with mean 2 and variance 3 in any way
other than using a built-in function. Give a histogram of your output with the normal density
superimposed.
3. Simulate 100,000 draws from the Γ(3,2) distribution by
(a) simulating and adding up exponentials.
(b) the accept-reject algorithm
4. Use simple sample mean Monte Carlo to evaluate
I=Z1
0
e−x2dx
then use an antithetic variable approach. Do you see variance reduction?

Partial preview of the text

Download Problem Set for Stochastic Simulation Course: APPM 7400 and more Assignments Applied Mathematics in PDF only on Docsity!

APPM 7400: Stochastic Simulation Problem Set One (Due Monday, September 29th) (Please include code when you hand this in.)

  1. Simulate 100 values from the exponential distribution with rate 1/2. Apply the Kolmogorov- Smirnov test to check that your values did in fact come from an exponential rate 1/2 distri- bution. Now test your “data” against the exponential rate 1 distribution. Can you detect that it did not come from this ditribtution?
  2. Simulate 100, 000 draws from the normal distribution with mean 2 and variance 3 in any way other than using a built-in function. Give a histogram of your output with the normal density superimposed.
  3. Simulate 100, 000 draws from the Γ(3, 2) distribution by

(a) simulating and adding up exponentials. (b) the accept-reject algorithm

  1. Use simple sample mean Monte Carlo to evaluate

I =

∫ (^1)

0

e−x

2 dx

then use an antithetic variable approach. Do you see variance reduction?