Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

Execution of the home task on Term Structure (Pricing, Vasicek Model, Monte Carlo Simulation, Bond Option,) with all the results produced in Matlab program including the doc report on the project Vasicek model

1) Vasicek model. Compute the price of a zero-coupon bonds with the Vasicek model. Use the function vbond.m with the following initial values:
• ro - initial short rate = 0.05
• k - speed of mean reversion = 0.025
• theta - long run risk-neutral mean short rate = 0.15
• sigma - annual volatility of short rate = 0.012
• t - time to evaluate price at = 0
• T - maturity of bond = 1, 2, 3„ 30 years

function P=vbond(ro,k,theta,sigma,t,T)
B=(1-exp(-k.*(T-t)))/k; A=exp((theta-sigma*sigma/2/k/k).*(B-(T-t))-sigma*sigma.*B.*B/4/k); V]=vrate(ro, k, theta, sigma, t);
P=A.*exp(-B.*M +.5.*B.*B.*V);

Exercise 1 Plot the term structure of interest rates - remember that the y(t, T) = -1/T-t log P(t, T). Describe the term structure.

Exercise 2 Compute the term structure of interest rates with the value of ro= 0.17. What is the difference between the two term structures? Why?

Exercise 3 Compare the 10-year bond price obtained with the exact formula and that with Monte Carlo. Do the same for the 5-year bond.

Exercise 4 Price with 200 Monte Carlo simulations the price of a 10-year bond with the CIR model, i.e.

drt = k(0 - rt)dt + σ√rtdWt

Remember that for the CIR we have

E[rt] = roe-kt + θ(1 - e-kt)

Var[rt] = rooσ2/k (e-kt e-2kt) + θσ2/2k(1 e-kt)2

and

rt˜c.Χ2 (4kθ/σ2, rte-kt/c)

where c = (1-ekT)σ2/4k, and Χ2 (.) is a non-central chi-Squared distribution with 4kθ/σ2 degrees of freedom and non-centrality parameter rte-kt/c. Use the Matlab function ncx2rnd(4kθ/σ2, rte-kt/c).

Exercise 5 ADDITIONAL POINTS. Simulate the distribution. Compare the exact price

P(t, T) = A(t, T) exp(- B (t,T) . rt)

where

A(t,T) = ((2h exp(k + h)(T - t)/2)/(2h + (k + h)(exp(T - t)h) - 1)2kθ/σ2

B(t,T) = (2 (exp((T - t)h) - 1))/ (2h+ (k + h)(exp(T - t)h) - 1)

h = √k2 +2σ2

you can also use the Matlab built-in functions, with the Monte Carlo price ob¬tained in the previous exercise.

Exercise 6 Consider a call option on a 10-year bond, with strike equal to the 5-year bond price (see exercise above). The option expires in 5 years. Use a Monte Carlo simulation to price this call option and compare it with the exact pricing (use the function vbondop . m) .

Exercise 7 Do the same exercise with strikes = 0.5, 0.7, 0.9 (i.e. in-the-money and out-of-the money). See what happens with different strikes.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M91719645
  • Price:- $90

Guranteed 48 Hours Delivery, In Price:- $90

Have any Question?


Related Questions in MATLAB

Recitation problems -1 determine the highest real root of

Recitation Problems - 1. Determine the highest real root of f(x) = 2x 3 - 11.7x 2 + 17.7x - 5 using the Newton-Raphson method with at least four iterations. Start with an initial guess of x 0 = 3. 2. Determine the real r ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Lab assignment - matlab matrix relationallogical operators

Lab Assignment - MATLAB Matrix, Relational/Logical Operators and Plotting This laboratory exercise/assignment will involve you 1) practicing multiplication operators in MATLAB; 2) practicing relational and logical operat ...

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignmentafter the success of your robo-advice venture you

Assignment After the success of your robo-advice venture you decide to explore alternative sources of profitability for your company. You realize that Australian investors are often forced to chose between expensive acti ...

  • 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