Skip to content

This is a small program that shows how to calculate an n-year spot rate if the n-year zero-coupon bond price moves from q% to (1+k%) *q%, where q% is the quoted price.

Notifications You must be signed in to change notification settings

pontazaricardo/Finance_RelativeChange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Finance_RelativeChange

This is a small program that calculates the relative change (in %) in the n-year spot rate if a n-year zero-coupon bond price moves from q% to (1+k%)q%, where q% is the quoted price.

demo

Inputs and outputs

For this project, we have:

  1. Inputs: n (year), q (the n-year zero-coupon bond price as % of par), k (the increment in bond price, also as % of par).
  2. Output: the change in the n-year spot rate in %.

Usage

In MatLab, type

calculateChange(10,60,1)

Example

Assume n=10, q=60, k=1. Then the change in the n-year spot rate is −1.9971%.

demo

About

This is a small program that shows how to calculate an n-year spot rate if the n-year zero-coupon bond price moves from q% to (1+k%) *q%, where q% is the quoted price.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages