Plot the histogram and the empirical distribution function


Monte Carlo Project Assignment

1.

a) Use the random number generator xn ≡ (axn-1 + c) mod(m) with a = 75, c = 0 and m = 231 - 1 to generate 10000 uniformly distributed random numbers on [0, 1] and plot the histogram.

b) Generate 10000 uniformly distributed random numbers on [0, 1] using built-in function of MATLAB.

c)  Compare the histograms obtained in parts a) and b).

2.

a) Use the numbers generated in problem 1 a) to generate 10000 random numbers that represent the daily price fluctuation of a financial asset that can have an increase of 100 with probability 0.45 , a decrease of 200 with probability 0.25, or stays the same with probability 0.3.

b) Plot the histogram and the empirical distribution function obtained using the data generated in part a).

3. Generate 5000 Binomial distributed (n = 70, p = 0.7) random numbers by doing:

a) Use Bernoulli random variables. Plot the empirical histogram and using your data to calculate the probability that the Binomial random variable is less than 50. Compare with the theoretical answer.

4. Generate 5000 standard normal Gaussian distributed numbers by doing:
a) Use MATLAB function randn

5. Let U1, U2, ..., Un be uniform random variables on [0, 1]. Define N = min{n: i=1n Ui > 1}.

a) Organize in a table the estimates of E[N] obtained by generating 10,102, ..., 106 values of N.

b) Are your estimates in part a) converging to a particular value?

6. Let V be a standard Gaussian random variable.

a) Using a simple Monte Carlo technique estimate P(V > 5). Use the following values for N : 10, 102, ..., 106

b) Use the Importance sampling technique to estimate P(V > 5).

c) Compare parts a) and b). Comment on this.

7. Consider the integral I = 01 01 e(x+Y)^2 dxdy .

a) Estimate the integral I using a simple Monte Carlo Method. Find 95% confidence interval for the true value of the integral.

b) Estimate the integral I using data generated for a) and applying antithetic variate approach. Find 95% confidence interval for the true value of the integral.

c) Estimate the integral I using data generated for a) and applying control variate approach. Use as control variate i) Y1 = U + V and ii) Y2 = (U + V)2 . Note that you'll need to calculate exact (theoretical values) of E(Y1) and E(Y2) . Find 95% confidence interval for the true value of the integral.

d) Compare a), b), c). Which variance reduction technique works better here.

8. Let St be a Geometric Brownian Motion process: St = Soe(σWt + (r-(σ^2/2))t)

where r = 0.04 , a- = 0.25 , So = 90 , Wt is a Wiener process.

a) Estimate (by Monte Carlo simulation) the price c of a European Call option on the stock. Use T = 10, K = $100

b) Compute the price c of a European Call option on the stock using the Black-Scholes formula.

c) Compare results in a) and b).

9. Consider the stock AMZN that does not pay dividends.

a) Use B-S formula to calculate the price of a January 2015 European call option , where r = 0.02, So = $300, K = $310. Use the put-call parity relation to calculate the price of a corresponding put option.

b) Use a simple Monte Carlo method to estimate the price of a January 2015 European call option , where r = 0.02 , So = $300 , K = $310. Compare your answer with part a)

c) Use a Monte Carlo method with Antithetic variables to estimate the price of a January 2015 European call option , where r = 0.02 , So = $300 , K = $310.

d) Use a Monte Carlo method with Control variates to estimate the price of a January 2015 European call option , where r = 0.02 , So = $300 ,K = $310. Compare a), b), c) and d)

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also include a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also Include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
MATLAB Programming: Plot the histogram and the empirical distribution function
Reference No:- TGS02961407

Now Priced at $55 (50% Discount)

Recommended (95%)

Rated (4.7/5)