Search the whole station

金融计算方法代写 Computational Methods in Finance代写

Homework 2

FE621 Computational Methods in Finance

金融计算方法代写 For all the problems in this assignment you need to write computer programs an For all the problems in this assignment you need to write computer

Instructions. For all the problems in this assignment you need to write computer programs and analyze data. All results need to be presented in clearly formatted tables and figures. You may use any programming language you want. Please submit an archive containing the code with comments. You will be graded based on the report you produce. The report should be in a pdf format and should contain relevant code as appropriate included in the Appendix and referenced throughout the text.

Problem 1 (40 points). The Binomial Tree. 金融计算方法代写

(a)

Construct code to calculate option values using an additive binomial tree.  For this part you need four versions: European and American as well as Call and Put. You may use the same tree construction (and function) for all options.

(b)

Download Option prices (you can use the Bloomberg Terminal, Yahoo! Finance, etc.) for an equity, for 3 different maturities (1 month, 2 months, and 3 months) and 20 strike prices close to the value at the money. If 3 months does not exist use next one available. Please download the data DURING THE TRADING DAY (9:00am to 4:30pm ET). Otherwise your values will be way off. Do not forget to download the value of the underlying. For each strike price in the data, use the implied vol values in Homework 1 (see Problem 1c) and the current short-term interest rate (today the Feds Fund rate is r = 0.75%).

Calculate the option price (European Calls and Puts) using the binomial tree, and compare the results with the Black–Scholes price. Use at least 200 steps in your tree construction. Treat the options as American as well and plot these values side by side with the European and Black Scholes values. When you create the plot do not forget to plot the bid-ask values as well. If you downloaded DATA 2 for last assignment you can use that as your data set.

(c)

Comment of the table in the previous part.

(d)

Consider N ∈ {10, 20, 30, 40, 50, 100, 150, 200, 250, 300, 350, 400}. Compute and plot the absolute error for the European Put εN for as a function of

金融计算方法代写

Bonus 5 points Using the binomial tree for American Calls and Puts, calculate the implied volatility corresponding to the data you have downloaded in part (b). You will need to use the bisection or Newton/secant method of finding roots with the respective binomial trees. Compare these values of the implied volatility with the volatilities calculated using the usual Black Scholes formula (as in Homework 1, Problem 1c). Write detailed observations.

Problem 2 (30 points). The Trinomial Tree.

(a) Implement a trinomial tree to price European, American Call and Put options. Hint. See Chapter 3 in [1].

(b) Consider S0 = 100, K = 100, T = 1 year, σ = 25%, r = 6%, δ = 0.03. Repeat the methods in problem 1 b) to d) with these parameters. Use at least N = 200 time steps and you do not need to download data. Make sure that convergence condition holds, i.e. ∆x ≥ σ√3∆t (see Section 3.5 in [1]). Create a table containing all results and comment

Problem 3 (30 points). Pricing Exotic Options. 金融计算方法代写

We will use here a synthetic example to illustrate the power of the tree models. Please read Section 2.10 in [1] and Sections 1 and 5.1 in [2] (available here), and solve the following problems.

a) Construct a binomial tree to calculate the price of an European Up-and-Out call option. Use S0 = 10, strike K = 10, maturity T = 0.3, volatility σ = 0.2, short rate r = 0.01, dividends δ = 0, and barrier H = 11. Use as many steps in your tree as you think are necessary. Hint. Read the algorithm in the book [1] and try and fifigure out how to modify the code there to work with the new option.

b) For the European Up-and-Out Call option explicit formulas exist. For example, implement the formula (5.2) from [2] and compare your results with part (a). Use the same parameters as before. Are your results matching?

c) Price an European Up-and-In call option, using the same parameters as before. Hint. Two methods can be employed: the analytical solution in (5.1) or the In-Out parity. Use both methods in order to verify your results.

d) Calculate the price of an AMERICAN Up and In Put option

Problem 4 (40 points). Finite difference methods. 金融计算方法代写

(a) Implement the Explicit Finite Difference method to price both European Call and Put options. Hint. See Chapter 3 in [1].

(b) Implement the Implicit Finite Difference method to price European Call and Put options.

(c) Implement the Crank-Nicolson Finite Difference method and price both European Call and Put options.

(d) For both the Explicit and Implicit Finite Difference schemes estimate the numbers ∆t, ∆x as well as the total number Nj of points on the space grid x to obtain a desired error of ε = 0.001. Hint. You need to this part in a theoretical way. Please use the convergence order as the actual error of the estimate.

(e) Consider S0 = 100, K = 100, T = 1 year, σ = 25%, r = 6%, δ = 0.03. Calculate and report the price for European Call and Put using explicit, implicit FD and Crank-Nicolson methods and the number of steps that you calculated in the previous point (part d).

(f) Repeat part (d) of this problem but this time get the empirical number of iterations. Specifically, obtain the Black Scholes price for the data in (e), then do an iterative procedure to figure out the ∆x, ∆t, N, and Nj to obtain an accuracy of ε = 0.001. Put the results of the 3 methods (EFD, IFD, CNFD) side by side in a table and write your observations.

Bonus 5 points Implement the Rannacher modification [3], that is, replace the first time step of the Crank-Nicolson method with either two half steps or four quarter steps of implicit method. The modification ensures second order convergence for rough payoff functions.

Bonus Problem (100 points). 金融计算方法代写

A multinomial recombining tree for general Stochastic Volatility models. We consider here an interesting method of option pricing under general assumptions, involving a multinomial recombining tree and particle filtering techniques. Please read the paper [4], and pay special attention to sections 3 and 4.1, 4.2.

(b) Construct the successors in the multinomial tree with synthetic parameters, see Section 4.1. Please note that two separate cases were analyzed.

(c) You built in part (b) the one period model. Implement now the multi-period model described in Section 4.2. Price for illustrative purposes the European Call option and try to replicate the results in Section 6 of the paper.

(d) Build a multinomial tree as in [4] to price an American Put Option. Compare your results with Problem 4(a).

金融计算方法代写
金融计算方法代写

References

[1] Clewlow, Les and Strickland, Chris. Implementing Derivative Models (Wiley Series in Financial Engineering), John Wiley and Sons 1996.

[2] Niklas Westermark. Barrier Option Pricing, Degree Project in Mathematics, First Level. KTH Royal Institute of Technology, Stockholm, Sweden.

[3] Pooley, D. M., Vetzal, K. R., and Forsyth, P. A., Convergence remedies for non-smooth payoffs in option pricing.. Journal of Computational Finance, Vol. 6, No. 4, 2003.

[4] Florescu, Ionut¸, Viens, Frederi G, Stochastic volatility: option pricing using a multinomial recombining tree, Applied Mathematical Finance, Vol. 15, No. 2, pp. 151–181, 2008, Taylor & Francis.

金融计算方法代写
金融计算方法代写

更多代写:Java代网课风险  GRE代考  英国代写assignment抄袭  代写Essay  代写英语论文  雅思保过代写

合作平台:essay代写 论文代写 写手招聘 英国留学生代写

The prev: The next:

Related recommendations

1
您有新消息,点击联系!