Compute the term structure of interest rates

Assignment Help MATLAB Programming
Reference no: EM131003897

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.

Reference no: EM131003897

Questions Cloud

Explain the relationship among the variables : Do the following based on your scenario, - List and label the variables as independent, dependent, intervening, or moderating,  Explain the relationship among the variables, - Develop a problem statement for the situation.
Dataline case study : James Dougan, chief executive of Dataline Oil Services (DOS), faced a tough decision. A bid, which he and his fellow managers had put together to buy DOS from its parent company, had just been topped unexpectedly by another company. He and his team n..
Determine the price you are willing to pay : Write a brief paper (two pages maximum) supporting your rationale for the valuation you have chosen, and provide appropriate financial appendices (in addition to the two pages of text) showing your analyses.
From a prospective investor point of view : From a prospective investor's (or buyer's) point of view, determine the price you are willing to pay, if you are to invest. Write a brief paper (two pages maximum) supporting your rationale for the valuation you have chosen, and provide appropriate f..
Compute the term structure of interest rates : Plot the term structure of interest rates - remember that the y(t, T) = -1/T-t log P(t, T). Describe the term structure and Compute the term structure of interest rates with the value of ro= 0.17. What is the difference between the two term structur..
What are the x-intercepts of the graph : What are the x-intercepts of the graph? At what values of x does the graph have a vertical asymptote? At what values of y does the graph have a horizontal asymptote?
Autumn 1999 exam : A survey of a magazine's subscribers indicates that 60% own a home and 75% own a car. Ninety percent of the home owners who subscribe to the magazine, also own a car. What proportion of subscribers i. own both a car and a house? ii. own a car or a..
What is the index of refraction of this material : A laser beam shines along the surface of a block of transparent material (see figure below). Half of the beam goes straight to a detector, while the other half travels through the block and then hits the detector. The time delay between the arriva..
Calculate the second derivative of given function : Calculate the second derivative of f find where f is concave up concave down and has inflection points. Find any horizontal and vertical asymptotes of f.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd