Programming Assignment: Normal Deviates a) Write a computer program that implements the Fibonacci generator Ui :=Ui17
Question:
Programming Assignment: Normal Deviates
a) Write a computer program that implements the Fibonacci generator Ui :=Ui−17 − Ui−5 Ui :=Ui + 1 in case Ui < 0 in the form of Algorithm 2.7.
Tests: Visual inspection of 10000 points in the unit square.
b) Write a computer program that implements Marsaglia’s Polar Algorithm.
Use the uniform deviates from a).
Tests:
1.) For a sample of 5000 points calculate estimates of mean and variance.
2.) For the discretized SDE
Δx = 0.1Δt + Z
√
Δt, Z ∼ N (0, 1)
calculate some trajectories for 0 ≤ t ≤ 1, Δt = 0.01, x0 = 0.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: