这个作业是用R语言预测期权汇报收益等。

Project 6 MGMTMFE 405

You will need to write codes for all the parts of the project. Make sure the codes work properly and understand the ideas behind each problem below. You may be asked to demonstrate how the codes work,by running them, and interpret the results. Code clarity and accuracy will determine the grades.
Submit your codes and a PDF file of your answers to questions (including graphs, histograms, but no codes, in this PDF file) by 11PM PDT on Next Wednesday.
1. Consider a 12-month Fixed Strike Lookback Call and Put options, when the interest rate is 3% per annum, the current stock price is $98 and the strike price is $100. Use the MC simulation method to estimate the prices of Call and Put options for the following range of volatilities: from 12% to 48%, in increments of 4%.
The payoff of the Call option is (???? − ?)+, where ???? = max{??: ? ∈ [0, ?]}, and the payoff of the Put option is: (? − ????) +, ?ℎ??? ???? = min {??∶ ? ∈ [0, ?]}.
Inputs: ?0, X, T, r, ?, N
Outputs: Graphs: Call and Put options prices as a function of the volatility. Place the Call graph in Proj6_1a.jpg and the Put graph in Proj6_1b.jpg.
2. Assume that the value of a collateral follows a jump-diffusion process:

?????− = ??? + ???? + ????
where ?, ?, ? < 0, and ?0 are given, ? is a Poisson process, with intensity ?1, independent of the Brownian Motion process ?.?? − is the value process before jump occurs at time t (if any).
Consider a collateralized loan, with a contract rate per period r and maturity T on the above-collateral, and assume the outstanding balance of that loan follows this process:
?? = ? − ??12?
where ? > 0, ? > 0 , ? > 1, ??? ?0 are given. We have that ?? = 0.
Define the following stopping time:
? = ???{? ≥ 0: ?? ≤ ????}
This stopping time is the first time when the relative value of the collateral (with respect to the outstanding loan balance) crosses a threshold which will be viewed as the “optimal exercise boundary” of the option to default.
Define another stopping time, which is the first time an adverse event occurs:
? = ???{? ≥ 0: ?? > 0}
Assume that ?? is a Poisson process with intensity of ?2.
Define ? = min{?, ?}.
We assume the embedded default option will be exercised at time ?, if and only if ? < ?.
If the option is exercised at time ? then the payoff to the borrower is: (?? − ???)+.
If the option is exercised at time ? then the payoff to the borrower is: ???(?? − ???), where abs(.) is the absolute value function.
Notes:
1. If min{?, ?} > ? then there is no default option exercise.
2. ? Should be viewed as the recovery rate of the collateral, so ( 1 − ?) can be viewed as the legal and administrative expenses.
Assume J has intensity ?1 and N has intensity ?2. N is independent of J and W.
Assume the APR of the loan is ? = ?0 + ??2 where ?0 is the “risk-free” rate, and ? is a positive parameter to measure the borrower’s creditworthiness in determining the contract rate per period: r.
We have monthly compounding here, so ? = ?/12.
Assume that ?? = ? + ??, where ? > 0, ? < ?0/?0 and ? =?−??.
Use ?0 for discounting cash flows. Use the following base-case parameter values:
?0 = $20,000, ?0 = $22,000, ? = −0.1, ? = 0.2, ? = −0.4, ?1 = 0.2, ? = 5 years, ?0 = 0.02, ? = 0.25, ?2 = 0.4, ? = 0.7, ? = 0.95. Notice that ??? =?0.?[1−1(1+?)?)] , where ? = ?/12, ? = ? ∗ 12,and ? = ????, ? =????(1+?)?, ? = (1 + ?). Notice that ?? = ?.
Write the code as a function Proj6_2func.* that takes ?1, ?2 and T as parameters, setting defaults if these parameters are not supplied, and outputs the default option price, the default probability and the expected exercise time. Function specification:
function [D, Prob, Et] = Proj6_2func(lambda1, lambda2, T)
(a) Estimate the value of the default option for the following ranges of parameters:
?1 from 0.05 to 0.4 in increments of 0.05;
?2 from 0.0 to 0.8 in increments of 0.1;
T from 3 to 8 in increments of 1;
(b) Estimate the default probability for the following ranges of parameters:.
?1 from 0.05 to 0.4 in increments of 0.05;
?2 from 0.0 to 0.8 in increments of 0.1;
T from 3 to 8 in increments of 1;
(c) Find the Expected Exercise Time of the default option, conditional on ? < ?. That is, estimate
?(? | ? < ?) for the following ranges of parameters:.
?1 from 0.05 to 0.4 in increments of 0.05;
?2 from 0.0 to 0.8 in increments of 0.1;
T from 3 to 8 in increments of 1;
Inputs: seed
Outputs:
i. Values: the default option D, the default probability Prob and the expected exercise time Et for parts (a), (b) and (c) with ?1=.2, ?2=0.4 and T=5.
ii. Graphs: For each of (a), (b) and (c) two graphs as a function of T, first with ?1=0.2 and ?2 from 0.0 to 0.8 in increments of 0.1, then with ?2 = 0.4 and ?1 from 0.05 to
0.4 in increments of 0.05. Put the two graphs in one .png file.
(d) [Optional – NOT for grading] Make additional assumptions as necessary to estimate the IRR of the investment.
Note: The drift of the V process should be a function of ?0, ?1, ? under the risk-neutral measure, to be able to price the option, but not done so in this case.
3. [Optional – NOT for grading]
Compute, via MC simulation, the prices of the following options using 50,000 simulations of paths of the underlying stock price process and dividing the time-interval into 50 equal parts:
(a) Down-and-Out- Put: ?(0) = 50, ? = 50, ? = 0.04, ? = 2 months, ? = 0.4, and for the following range of ??: from $36 to $46, in increments of $1.
(b) Down-and-In – Put: ?(0) = 50, ? = 50, ? = 0.04, ? = 2 months, ? = 0.4, and for the following range of ??: from $36 to $46, in increments of $1.
4. [Optional – NOT for grading]
Compute the price of the Asian Average Rate call option by using:
(a) Standard MC method, where ?(0) = 50, ? = 50, ? = 0.04, ? = 2 months, ? = 0.4.
(b) Halton’s Low-discrepancy sequences to generate the paths of the stock price, where ?(0) = 50,? = 50, ? = 0.04, ? = 2 months, ? = 0.4.
5. [Optional – NOT for grading]
Assume the stock price follows an Arithmetic Brownian Motion.
(a) Derive the formula for a price of a European call option, using all the other Black-Scholes assumptions.
(b) Use MC Simulation techniques to compute the price and compare with the one implied by the formula derived.
(c) Now compare the prices of the options using this model with the Black-Scholes prices (using the same parameters). Vary your parameters over a wide range to compare the prices. Any observations?
6. [Optional – NOT for grading] Pricing of Exchange Options.
Consider the following information on two stocks: stock of XX and stock of YY: The current stock price of XX is $40, and the volatility of the stock price is ?1 = 20% per annum. The current stock price of YY is $38.5, and the volatility of the stock price is ?2 = 30% per annum Assume the correlation between the stock returns is ? = 0.67 and the prevailing risk-free rate is ? = 6% per annum. Use the following method to price the specified option:
Use the LSMC method with N=50,000 paths simulations and time step of ∆=1√? to price an American
Exchange Call option with strike price of ? = $0 and maturity of 1-year. Use the first ? of the Simple Monomials for ? = 3 for both stocks, and their cross-products. (That is, you will use 9 basis functions). The price of the option is written as ?0 = sup ?∈[0,?]?0∗(?−??(??2 − ??1 − ?)).


EasyDue™ 支持PayPal, AliPay, WechatPay, Taobao等各种付款方式!

E-mail: easydue@outlook.com  微信:easydue


EasyDue™是一个服务全球中国留学生的专业代写公司
专注提供稳定可靠的北美、澳洲、英国代写服务
专注提供CS、统计、金融、经济、数学等覆盖100+专业的作业代写服务