Ask Engineering Mathematics Expert

Problem 1- Computational Problem

Consider the process x(t), driven in discrete time by

Δx(t) = x(t + Δt) - x(t) = μ(x, t)Δt + σ(x, t) Δz(t)

where z(t) is a Wiener process. Here 0 ≤ t ≤ T and Δt = T/n where n is user specified.

Write a program to simulate this process on [0, T]. The program structure should allow the user to specify T, n, the functions μ(x, t) and σ(x, t). As well the number of simulations M should be an input variable.

(a) Take x(0) = 1,  μ(x, t) = 0, σ(x, t) = 1 and T = 1 so that x(t) is a pure Wiener process on [0, 1]. Initially take n = 100 and simulate M = 1,000 paths.

(i) Use the output to compare graphically the distribution of x(t) at t = 0.5 and t = 1.

(ii) Experiment with n and M to try to obtain better approximations to the known distributions.

(iii) Constructing a table to compare these with the known theoretical distributions for x(t) and comment on the effect of n and M.

(b) Take x(0) = 1, μ(x, t) = μx, σ(x, t) = σx and T = 2 so that x(t) is the geometric Brownian motion for the stock price.

(i) Use μ = 0.15 and σ = 0.20 and take n = 100 and simulate M= 1,000 paths to obtain better approximations.

(ii) Use the output to graph the distributions of x(t) and ln(x(t)/x(0)) at t = 2.

(iii) Constructing a table to compare these with the known true distributions for x(T) and ln (x(T)/x(0)). As in the previous question play with the values of n and M and comment on the effect of n and M.

(c) Repeat the exercise by taking x(0) = 0.06,

μ(x, t) = k(x- - x)

with k = 0.5, x- = 0.065 and σ(x, t) = σ with σ = 0.02, n = 100 and M = 1,000. Calculate and graph the distribution of x at T = 6 months and T = 12 months, and compare these with the theoretical distributions. Comment on the effect of n and M.

Problem 2- Computational Problem

Consider the stochastic integral

Y(t) = 0t e-k(t-s)dz(s),

where z(s) is a Wiener process.

(1) Write a program that will approximate Y(t) by

Yn(t) = t=0Σn-1 e-k(nΔt-iΔt)Δzi

where Δt = t/n and Δzi = z((i + 1)Δt) - z(iΔt). The values of k, t, n and the number M of simulated paths should be user defined inputs. Initially take k = 0.5. t= 1, n = 100 and M = 1,000.

(ii) Compare the simulated distribution of Yn(1) with the true distribution of Y(1).

Problem 3 - Computational Problem  

Use the solutions (6.16) and (6.17) to simulate the stock price process x(t) and the return process ln(x(t)/x(0)) in the interval (0, T) and in particular obtain the simulated distribution for these quantities. Use the same values for x(0), μ, σ and T as used in Problem 1(b).

Since now it is possible to draw the (z(T) - z(0)) directly from a normal distribution, discretisation error is avoided. Gauge the impact of the discretisation error by comparing the distributions obtained here with the ones obtained in Problem 1(b) and the true distribution.

Recalling that x = ey we may also express in terms of the stock price x to obtain

x (t) = x (0),e(μ-½ σ2)t+σ(z(t)-z(0)).          (6.16)

This last expression (6.16) is the solution to the lognormal stock price stochastic differential equation. This is one of the rare occasions in which we can obtain an analytical solution to a stochastic differential equation. We note that Eq. (6.16) allows us to simulate the process for x(t) up to time t without resorting to discretisation (see Problem 3). Equation (6.16) shows explicitly how the sample paths for the stock price can be viewed as random excursions around a growing trend.

Equation (6.16) may be written

ln (x(t)/x(0)) = (μ - ½σ2)t + σ(z(t)-z(0)).

Problem 4- Consider the expression (8.107) for the price of a European call option, namely

C(S, t) = e-r(T-t)E~t[C(ST, T)],

where E~t is generated according to the process

dS = rSdt σSdz~(t).

(i) By simulating M paths for S approximate the expectation with

1/Mi=0ΣMC(ST(i), T),

where i indicates the ith path. Take r =5% p.a., σ = 20%p.a., S = 100, E = 100 and T = 6 months.

(ii) Compare graphically the simulated values for various Al with the true Black-Scholes value.

(iii) Instead of using discretisation to simulate paths for S. use instead the result in equation (6.16). We know from Problem 3 that this involves no discretisation error.

C(S, t) = e-r(T-t)E~t[C(ST, T)]

           = e-r(T-t) 0∫∞max[ST - E, 0]p~(ST, T|S, t)dST.                               (8.107).

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M91804043

Have any Question?


Related Questions in Engineering Mathematics

Q undirected vs directed connectivitya prove that in any

Q: Undirected vs. directed connectivity. (a) Prove that in any connected undirected graph G = (V, E) there is a vertex v ? V whose removal leaves G connected. (Hint: Consider the DFS search tree for G.) (b) Give an examp ...

All these questions should be answered in matlab 1 generate

All these questions should be answered in MATLAB !!! 1. Generate a set of 3 random patterns of dimension 12 where each value is +1 or -1.(3 random 12*12 matrix) 2. Create a 12-unit Hopfield network (a 12x12 matrix) from ...

I have these questions for a homework assignment and have

I have these questions for a homework assignment and have to show work. This works with MIPS coding language and is the class Introduction to Computer Architecture. 1. Find the 2's complement representation (in 32-bit he ...

Question 1 - many spas many componentsconsider 4 types of

Question 1 - Many spas, many components Consider 4 types of spa tub: Aqua-Spa (or FirstSpa, or P1), Hydro-Lux (or SecondSpa, or P2), ThirdSpa (or P3) and FourthSpa (or P4), with the production of products P1, ..., P4 in ...

Analytical methods for engineers assignment - calculusthis

ANALYTICAL METHODS FOR ENGINEERS ASSIGNMENT - CALCULUS This assignment assesses Outcome - Analyse and model engineering situations and solve problems using calculus. Questions - Q1. Differentiate the following functions ...

Clculus assignment -q1 find the total differential of w

CALCULUS ASSIGNMENT - Q1. Find the total differential of w = x 3 yz + xy + z + 3 at (x, y, z) = (1, 2, 3). Q2. Find the value of the double integral ∫∫ R (6x + 2y 2 )dA where R = {(x, y)| - 2 ≤ y ≤ 1, y 2 ≤ x ≤ 2 - y. Q3 ...

Numerical analysis assignment -q1 define the following

Numerical Analysis Assignment - Q1. Define the following terms: (i) Truncation error (ii) Round-off error Q2. Show that if f(x) = logx, then the condition number, c(x) = |1/logx|. Hence show that log x is ill-conditioned ...

Question what is the signed binary sum of 1011100 and

Question : What is the signed binary sum of 1011100 and 1110101 in decimal? Show all of your work. What is the hexadecimal sum of 9A88 and 4AF6 in hexadecimal and decimal? Show all of your work.

Question a signal starts at point x as it travels to point

Question : A signal starts at point X. As it travels to point Y, it loses 8 dB. At point Y, the signal is boosted by 10 bB. As the signal travels to point Z, it loses 7 dB. The dB strength of the signal at point Z is -5 ...

Show all your work not just the answerswhen you multiply 21

(SHOW ALL YOUR WORK, not just the answers) When you multiply: 21 x 68 you most likely do: 8x1 + 8x20 + 60x1 + 60x20 = 1, 428 So, there are 4 multiplications and then 3 additions. How long would it take a computer to do t ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As