1. Homepage
  2. Programming
  3. MATH40082 Computational Finance Assignment No. 1: Monte Carlo Methods

MATH40082 Computational Finance Assignment No. 1: Monte Carlo Methods

Engage in a Conversation
UKThe University of ManchesterMATH40082Computational FinanceMonte Carlo MethodsMATH60082

MATH40082 (Computational Finance) Assignment No. 1: Monte Carlo Methods CourseNana.COM

Version 10747214 CourseNana.COM

1 Background 1.1 Stock Options CourseNana.COM

The trader has calibrated a specialised risk neutral process for some underlying stock price. Given the current stock is S0, market prices indicate the risk-neutral distribution of the stock price at time t is given by: CourseNana.COM

St N(f(S0,t),v2(S0,t)t) (1) 2 CourseNana.COM

for some calibrated functions f and v .
Consider a European put option
P(S,t) written on the underlying asset S. The terminal condition on CourseNana.COM

the contract is given by
and it has the analytic solution
CourseNana.COM

P (S, T ) = max(X S, 0). (2) 12
P(S0,t=0)= XN(z)+v(S0,T) Tez /2 f(S0,T)N(z) erT, (3) CourseNana.COM

2π where N(z) is the standard cumulative normal distribution and CourseNana.COM

X f(S0,T) z=. v(S0,T) T
To carry out a Monte Carlo valuation of the put option, we may use samples from a standard random CourseNana.COM

normal distribution to write the equation CourseNana.COM

φ N(0,1) (4) ST =f(S0,T)+v(S0,T) Tφ. CourseNana.COM

(5) Then we can simply average out the discounted payoff over n to get our approximation to the value of the CourseNana.COM

put option: CourseNana.COM

1.2 Path Dependent Options CourseNana.COM

P(S0,t = 0) n . (6) CourseNana.COM

Now assume that the risk neutral stochastic process follows the SDE dS = f (S, t)dt + v(S, t)dW. CourseNana.COM

The path dependent options you will be pricing depends on S(tk) which are the share prices at K +1 equally spaced sampling times t0, t1,..., tk = kt, ..., tK with t0 = 0, tK = T and CourseNana.COM

T t = K . CourseNana.COM

Unlike the first part, the computation cannot proceed from t = 0 to t = T in one step and the resulting distribution of S will no longer be normal. Full details are given the the lecture notes - but you should use an Euler type scheme to write CourseNana.COM

Si(tk)=Si(tk1)+f(Si(tk1),tk1)∆t+v(Si(tk1),tk1) ∆i,k1 CourseNana.COM

for k = 1, 2, ..., K to estimate the underlying asset values at each time. Here φi,k is a random draw from a Normal distribution. It is very important to make sure that each φi,k is independent for k = 0, 1, ..., K 1 and fixed i, i.e. the random numbers along the same path. CourseNana.COM

For path dependent options, the payoff function can be written CourseNana.COM

g(S(t0),...,S(tk),...,S(tK)) CourseNana.COM

so the value of the path dependent option can be approximated by CourseNana.COM

Asian Option CourseNana.COM

V(S(t0),t=0)erT ?g(Si(t0),...,Si(tk),...,Si(tK)). (7) CourseNana.COM

Assume that a discretely sampled Asian option has a payoff depending on the discretely sampled average given by CourseNana.COM

Then we can write CourseNana.COM

1 ?K A=K S(tk). k=1 CourseNana.COM

g(S(t0), ..., S(tK )) = G(S(tK ), A), CourseNana.COM

where G(S, A) is the payoff function depending the type of option.
There are different classes of Asian option, resulting in different payoff conditions. In this coursework we
CourseNana.COM

look at simple European style call or put options. A fixed strike call option will have the payoff G(S, A) = max(A X, 0) CourseNana.COM

where X is the strike price and a floating strike call option would be G(S, A) = max(S A, 0). CourseNana.COM

where A is sometimes called the average strike price. A fixed strike put option will have the payoff CourseNana.COM

G(S, A) = max(X A, 0) where X is the strike price and a floating strike put option would be CourseNana.COM

G(S, A) = max(A S, 0). CourseNana.COM

where A is the strike price. Lookback Option CourseNana.COM

The discretely sampled Lookback option has a payoff depending on the discretely sampled maximum or minimum given by CourseNana.COM

A = maxS(tk), k 2 or
Then we can write
CourseNana.COM

A = minS(tk). k CourseNana.COM

g(S(t0), ..., S(tK )) = G(S(tK ), A), CourseNana.COM

where G(S, A) is the payoff function depending the type of option.
There are different classes of Lookback option, resulting in different payoff conditions. In this coursework
CourseNana.COM

we look at simple European style call or put options. We can either have a floating strike S or a fixed strike X. For example a floating strike Lookback call option would give CourseNana.COM

G(S, A) = max(S A, 0)
where
A must be the minimum, and a floating strike Lookback put option would be CourseNana.COM

G(S, A) = max(A S, 0). CourseNana.COM

where A must be the maximum.
A fixed strike call option will have the payoff
CourseNana.COM

G(S, A) = max(A X, 0)
where
X is the strike price and A must be the maximum. and a fixed strike put option will have the payoff G(S, A) = max(X A, 0) CourseNana.COM

where X is the strike price and A must be the minimum. Barrier Options CourseNana.COM

The discretely sampled knock-out barrier option will be knocked out (and return a value of zero) if the a barrier asset price B is crossed before the maturity date. CourseNana.COM

The option will be an “up” option if the knock out condition is on S > B, or a “down” option if the condition is on S < B. CourseNana.COM

Let the variable A be a binary variable such that CourseNana.COM

Then we can write CourseNana.COM

A = 0 if the barrier is crossed at least once. g(S(t0), ..., S(tK )) = A · G(S(tK )), CourseNana.COM

where G(S) is the payoff function depending the type of option.
So for example an up-and-out knockout barrier call option has the payoff
CourseNana.COM

where CourseNana.COM

G(S) = max(S X, 0)0 if S(tk)>Bforanyk=1,2,...,K CourseNana.COM

A = 1 otherwise
and a down-and-out knockout barrier put option will be
CourseNana.COM

where CourseNana.COM

G(S) = max(X S, 0) 0 if S(tk)<Bforanyk=1,2,...,K A = 1 otherwise CourseNana.COM

2 Tasks
2.1 Stock Options CourseNana.COM

You must value a put option on an underlying asset S where the distribution of the stock price at time T is given by where CourseNana.COM

αT βT αT βT 1 γST =S0(2e e )+θ(1+e e )+σ 1αT3(S0 +2θ) CourseNana.COM

φ N(0,1) CourseNana.COM

The stock price at time t = 0 is S0 = 2996.16, and the risk-free interest rate is r = 0.03. According to the contract, the option matures at T = 0.75 with a strike price of X = 3000. The market fitted parameters are θ = 2990, α = 0.02, β = 0.06, γ = 0.94, and the volatility of the option is σ = 0.24. CourseNana.COM

  • Write a program that uses Monte Carlo simulation (6) to approximate the value of the European put option P and calculate the option value using the analytic solution (3) both with the parameters stated above. You should state in your report the value of the option using the analytic solution, and your best estimate for the value of the put option using a Monte Carlo approximation. You need only include the code in the appendix of your report. (Coding 3 marks)
  • Plot a single figure showing your Monte Carlo approximate of the option value P(S0,t = 0) with increasing n (n = 1000, 2000, ..., 50000, or more!) alongside the exact value from the analytical formula. Comment on the appearance and accuracy of your result. (Understanding 6 marks)
  • Write a new program (or programs) that use antithetic variables, moment matching and/or Halton sequences to approximate the put option P and investage how the accuracy of the approximation changes with different value of n and how long each calculation takes. You should produce at most 4 plots or tables of your results, and write about them in the text to justify how the methods rank against each other in terms of their efficiency. (Understanding 4 marks, Originality/Initiative 4 marks)

2.2 Path Dependent Options CourseNana.COM

Now assume that our underlying asset follows the risk neutral process:
dS = (αθ βS)dt + σ(|S|)γ dW (8) CourseNana.COM

where W is a Wiener process and α, β, γ, θ, and σ are all constant parameters determined by the market. Your task is to price a discrete minimum fixed-strike lookback put option V with the following parameters. As before, the risk free interest rate is r = 0.03, the market parameters are θ = 2990, α = 0.02, β = 0.06, γ = 0.94 and volatility is σ = 0.24. The stock price is currently S0 = 2996.16, the option matures at T = 0.5 with K = 50 equally spaced observations after the initial time. The fixed strike price is X = 3000. We do not have an analytic formula to price this option. CourseNana.COM

  • Write a program to approximate the path dependent option V using (7) with the model and parameme- ters as stated above. You should state in the report your best estimate for value of the option using a Monte Carlo approximation. You need only include the code in the appendix of your report. (Coding 2 marks)
  • Use your program to generate approximations to the path dependent option V with different values of n. With the outputs from your calculations you should generate at most 2 plots or tables to investigate the convergence of your result. Comment on your results, what value are they converging towards? (Understanding 6 marks)

Finally, estimate the value of the partial derivative ∂V at S0 and t = 0 using Monte Carlo simulations. ∂γ CourseNana.COM

You should be able to generate values of V(S0,t = 0;γ = 0.94) and V(S0,t = 0;γ = 0.94+), so a simple finite difference formula can approximate the derivative: CourseNana.COM

∂V V(S0,t=0;γ=0.94+)V(S0,t=0;γ=0.94) ∂γ dγ CourseNana.COM

What type of Monte Carlo simulation, what values of N, and what values of give the most accurate estimate of the derivative? Explain any problems you may find using this formula. State your estimate for the value in the text, you should include up to 2 plots or tables of results to support your result. (Understanding 4 marks, Originality/Initiative 6 marks) CourseNana.COM

3 Instructions CourseNana.COM

The deadline for this assignment is 11am on Monday 20th March, and as part of a 15 credit course unit you should expect this may take up to 20 hours to complete. Unless you have an agreed extension on coursework deadlines with DASS reports handed in AFTER 11am Monday 20th March will be docked 4 marks plus an additional 4 marks each day thereafter until a mark of zero is reached. Reports handed in after 5pm Friday 31st March will be awarded a mark of zero and will not be marked. CourseNana.COM

In order that your report conforms to the standards for a technical report, you should use the following structure: CourseNana.COM

  • MS Word, LaTeX, or similar, and must be submitted without your name, but with your univer- sity ID number online through the TurnItIn system.
  • approximately 8 - 10 pages long (excluding appendices)
  • be written in continuous prose
  • give a brief introduction stating the problem you are solving and the parameters you are using (from the model or method),
  • present your results in the form of figures and tables, using the order of items in the bullet points as a guide as to the order of your document
  • absolutely NO screenshots of running code need to be included,
  • do not include overly long tables – a table should never cross over a page,
  • present the results for any methods you have implemented, there is no credit for a discussion of a method that has not been shown to be implemented by you (through results) for your problem
  • refer to and discuss each of your results in the text, part of the marks available in each bullet point are for interpreting the results
  • try to keep to the page limit, removing any unnecessary results from the main text
  • number and caption your figures and tables and refer to them by their number (not their position in the text),
  • number any equations to which you refer,
  • use consistent internal (and external) referencing.

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
UK代写,The University of Manchester代写,MATH40082代写,Computational Finance代写,Monte Carlo Methods代写,MATH60082代写,UK代编,The University of Manchester代编,MATH40082代编,Computational Finance代编,Monte Carlo Methods代编,MATH60082代编,UK代考,The University of Manchester代考,MATH40082代考,Computational Finance代考,Monte Carlo Methods代考,MATH60082代考,UKhelp,The University of Manchesterhelp,MATH40082help,Computational Financehelp,Monte Carlo Methodshelp,MATH60082help,UK作业代写,The University of Manchester作业代写,MATH40082作业代写,Computational Finance作业代写,Monte Carlo Methods作业代写,MATH60082作业代写,UK编程代写,The University of Manchester编程代写,MATH40082编程代写,Computational Finance编程代写,Monte Carlo Methods编程代写,MATH60082编程代写,UKprogramming help,The University of Manchesterprogramming help,MATH40082programming help,Computational Financeprogramming help,Monte Carlo Methodsprogramming help,MATH60082programming help,UKassignment help,The University of Manchesterassignment help,MATH40082assignment help,Computational Financeassignment help,Monte Carlo Methodsassignment help,MATH60082assignment help,UKsolution,The University of Manchestersolution,MATH40082solution,Computational Financesolution,Monte Carlo Methodssolution,MATH60082solution,