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

  Matlab program which will determine your vehicle fuel usage

Create a MATLAB program which will determine your vehicle fuel usage (MPG, miles/gallon) rating for a user defined number of trips ('for' repetition structure).

  Blood declines due to metabolic processes

Find an expression for the half-life in terms of k, and obtain a plot of the half-life versus k for the indicated range.

  Compute and plot 4 mean temperature profiles

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  Discuss the limitations of a linear classifier

Discuss the limitations of a linear classifier. What are some ways in which these limitations could be overcome - Discuss the limitations of the naive nearest neighbor algorithm. What are some ways in which these limitations could be overcome?

  Write a matlab script using the randn command

Write a Matlab script using the "randn" command to generate a vector of 10,000 random numbers that are normally distributed around zero, with a variance of 1. Use the "hist" command to plot a histogram of these data, specifying 50 bins.

  Use matlab to plot the following field

1. use matlab to plot the amplitude and phase of the followinggaussian modes at the beamwaist. a tem00 hg00 b hg01 c

  Will compute the value of each piece of clothing.

write a script in MATLAB that will compute the value of each piece of clothing.

  Describe how you would access these 4 members

Create a namespace titled global Type that contains four members. The members should be two named constants, n and rate. It should also contain a variable count and the function printResult. Describe how you would access these 4 members in a progr..

  Develop mathematical models for marine systems

Brushless dc motor based propulsion system for a container vessel model - Mathematical equations (models) for the BLDC Motor

  F data into matlab using only the textread function?

load the following type of data into mathlab using ONLY the textread funcion? Need to import it and plot it using boxplot.

  Using matlab draw an open-loop bode diagram and find the

an armature-control dc motor is used in a position control system. the transfer functions of the controller and process

  Compute the absolute relative errors

Check whether system has no solution, infinite number of solutions or ill-conditions. Perform this checking from the coefficient and constant matrices.

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