2.0 Example 1 : Bond price and sensitivity (ftspex1.m)

Similar documents
VALUATION OF FIXED INCOME SECURITIES. Presented By Sade Odunaiya Partner, Risk Management Alliance Consulting

CHAPTER 14. Z(t; i) + Z(t; 5),

Problems and Solutions

Problems and Solutions

Margin Calculation Methodology and Derivatives and Repo Valuation Methodology

Manual for SOA Exam FM/CAS Exam 2.

Zero-Coupon Bonds (Pure Discount Bonds)

I. Readings and Suggested Practice Problems. II. Risks Associated with Default-Free Bonds

Matching Investment Strategies in General Insurance Is it Worth It? Aim of Presentation. Background 34TH ANNUAL GIRO CONVENTION

Alliance Consulting BOND YIELDS & DURATION ANALYSIS. Bond Yields & Duration Analysis Page 1

ASSET LIABILITY MANAGEMENT Significance and Basic Methods. Dr Philip Symes. Philip Symes, 2006

Lecture 3. Linear Programming. 3B1B Optimization Michaelmas 2015 A. Zisserman. Extreme solutions. Simplex method. Interior point method

DATA ANALYSIS II. Matrix Algorithms

CHAPTER 7: FIXED-INCOME SECURITIES: PRICING AND TRADING

Nonlinear Programming Methods.S2 Quadratic Programming

FINANCE 1. DESS Gestion des Risques/Ingéniérie Mathématique Université d EVRY VAL D ESSONNE EXERCICES CORRIGES. Philippe PRIAULET

LIFE INSURANCE AND WEALTH MANAGEMENT PRACTICE COMMITTEE AND GENERAL INSURANCE PRACTICE COMMITTEE

Learning Curve An introduction to the use of the Bloomberg system in swaps analysis Received: 1st July, 2002

the points are called control points approximating curve

In this chapter we will learn about. Treasury Notes and Bonds, Treasury Inflation Protected Securities,

Nonlinear Optimization: Algorithms 3: Interior-point methods

Fixed Income: Practice Problems with Solutions

Derivatives Interest Rate Futures. Professor André Farber Solvay Brussels School of Economics and Management Université Libre de Bruxelles

Financial Mathematics for Actuaries. Chapter 8 Bond Management

1.2 Structured notes

Master of Mathematical Finance: Course Descriptions

Bond Pricing Fundamentals

A Flexible Benchmark Relative Method of Attributing Returns for Fixed Income Portfolios

Fixed-Income Securities Lecture 4: Hedging Interest Rate Risk Exposure Traditional Methods

Interest Rate and Credit Risk Derivatives

Introduction to Fixed Income (IFI) Course Syllabus

CURRENT STANDARDS ON FIXED INCOME

International Doctoral School Algorithmic Decision Theory: MCDA and MOO

Optimization Modeling for Mining Engineers

Linear Programming. Widget Factory Example. Linear Programming: Standard Form. Widget Factory Example: Continued.

Introduction. example of a AA curve appears at the end of this presentation.

10. Fixed-Income Securities. Basic Concepts

The TED spread trade: illustration of the analytics using Bloomberg

Chapter 4. Polynomial and Rational Functions. 4.1 Polynomial Functions and Their Graphs

CASH FLOW MATCHING PROBLEM WITH CVaR CONSTRAINTS: A CASE STUDY WITH PORTFOLIO SAFEGUARD. Danjue Shang and Stan Uryasev

Course FM / Exam 2. Calculator advice

1. The forward curve

Futures on Notional Bonds André Farber (Revised Version September 2005)

General Framework for an Iterative Solution of Ax b. Jacobi s Method

ACI THE FINANCIAL MARKETS ASSOCIATION

Chapter Nine Selected Solutions

Interest Rate Futures. Chapter 6

Solutions For the benchmark maturity sectors in the United States Treasury bill markets,

Linear Programming for Optimization. Mark A. Schulze, Ph.D. Perceptive Scientific Instruments, Inc.

Package jrvfinance. R topics documented: October 6, 2015

Bond Price Arithmetic

Duration and Bond Price Volatility: Some Further Results

Introduction to Financial Derivatives

Yield Book Advanced Topics

YIELD CURVE GENERATION

Equity-index-linked swaps

An Overview Of Software For Convex Optimization. Brian Borchers Department of Mathematics New Mexico Tech Socorro, NM

Regression III: Advanced Methods

Debt Instruments Set 2

VALUATION OF DEBT CONTRACTS AND THEIR PRICE VOLATILITY CHARACTERISTICS QUESTIONS See answers below

Fixed-Income Securities. Assignment

CHAPTER 11 CURRENCY AND INTEREST RATE FUTURES

Yield to Maturity Outline and Suggested Reading

Risk and Return in the Canadian Bond Market

Introduction to swaps

DERIVATIVES AS MATRICES; CHAIN RULE

issue brief Duration Basics January 2007 Duration is a term used by fixed-income investors, California Debt and Investment Advisory Commission

Chapter 7 Nonlinear Systems

SOLVING LINEAR SYSTEMS

Treasury Bond Futures

Global Fixed Income Portfolio

IAA PAPER VALUATION OF RISK ADJUSTED CASH FLOWS AND THE SETTING OF DISCOUNT RATES THEORY AND PRACTICE

Analysis of Deterministic Cash Flows and the Term Structure of Interest Rates

Debt Instruments Set 3

ANALYSIS OF FIXED INCOME SECURITIES

Bonds and Yield to Maturity

MONEY MARKET SUBCOMMITEE(MMS) FLOATING RATE NOTE PRICING SPECIFICATION

Curve Fitting with Maple

4.6 Linear Programming duality

This paper is not to be removed from the Examination Halls

Principles of Principal Components

We first solve for the present value of the cost per two barrels: (1.065) 2 = (1.07) 3 = x =

The US Municipal Bond Risk Model. Oren Cheyette

Math of Finance. Texas Association of Counties January 2014

CREATING A CORPORATE BOND SPOT YIELD CURVE FOR PENSION DISCOUNTING DEPARTMENT OF THE TREASURY OFFICE OF ECONOMIC POLICY WHITE PAPER FEBRUARY 7, 2005

Valuation, Pricing of Options / Use of MATLAB

Estimating Risk free Rates. Aswath Damodaran. Stern School of Business. 44 West Fourth Street. New York, NY

IEOR 4404 Homework #2 Intro OR: Deterministic Models February 14, 2011 Prof. Jay Sethuraman Page 1 of 5. Homework #2

GESTÃO FINANCEIRA II PROBLEM SET 2 - SOLUTIONS

CUSTOM INDEX MANAGER. Index Comparison and Performance Attribution

Building a Smooth Yield Curve. University of Chicago. Jeff Greco

EXCEL SOLVER TUTORIAL

SEQUENCES ARITHMETIC SEQUENCES. Examples

A) 1.8% B) 1.9% C) 2.0% D) 2.1% E) 2.2%

Mathematical finance and linear programming (optimization)

Massachusetts State Treasurer s Office (STO) Guidelines for Current and Advance Refundings

Transcription:

1.0 Review of the definitions Matlab Bond Pricing Examples (Traditional bond analytics) The bond price B at time 0 can be priced by the following formula : where B t 1 C C + F ----------------- ( 1 + y) t + ------------------ ( 1 + y) T C is the coupon payment, F is the face value, and y is the yield. (1.1) Duration or Macaulay s duration (1st order) is defined by D B tc TC ( + F) y ( 1 + y) / B ------------ 1 + y t + --------------------- 1 + y T / B It is a weighted average of payment times. t 1 (1.2) Modified duration is D B D M ---------------- (1.) ( 1+ y) y / B B From (1.), we can see ------ D, i.e., the relative change of bond price can be B M y approximated by the product of the modified duration and a small shift in yield. Convexity (2nd order) is 2 B C y 2 / B (1.4) 2.0 Example 1 : Bond price and sensitivity (ftspex1.m) In this example, we analyze relative importance of duration and convexity of a bond portfolio. In the following bonds matrix, each row represents a bond and each column shows a parameter. Settlement Maturity Face Coupon Number of Basis date date value rate payments Bonds [today datenum( 06/17/2010 ) 100.07 2 0 today datenum( 06/09/2015 ) 100.06 2 0 today datenum( 05/14/2025 ) 1000.045 2 0]; yield [0.05 0.06 0.065];

Coupon rate is nominal (annual) rate of coupon payments. prbond is a Matlab function which returns the price p and accrued interest ai of a bond given all the parameters. The syntax is [p, ai] prbond(sd, md, rv, cpn, yld, per, basis) where sd is the settlement date, md is the maturity date, rv is the par value or face value, cpn is the coupon rate, yld is the yield, per is the number of coupon periods per year, and the basis is the day-count basis: 0 actual/actual, 1 0/60, 2 actual/60, actual/65. The coupon rate and number of coupon payments are used to calculate the amount of coupon C paid during each period. Accrued interest is determined by the following formula : settlement date previous coupon date ai C ----------------------------------------------------------------------------------------------- (2.1) time between periods and the number of days in the numerator and denominator are measured differently according to the day-count basis. [d,m] bonddur(sd, md, rv, cpn, yld, per, basis) finds the Macaulay duration d and modified duration m in years and [pc,yc] bondconv(sd, md, rv, cpn, yld, per, basis) returns the convexity for a security in periods pc and years yc. The duration of the portfolio p_d M and convexity of the portfolio p_c can be calculated by the following formula. p_d M w i D M (i) and p_c w y (i) i C i1 (2.2) where w i is the the weight of i-th bond in the portfolio and D M (i) and y C (i) are duration and convexity of i-th bond, respectively. Suppose there is a shift in yield curve, dy.002, i.e., 20 basis points where 1 basis point is 1/100 percent or 1/10000. Percentage change of the portfolio price (linear approximation) is i1 perc 1 and the second order approximation is p_d M * dy * 100 p_c * dy 2 * 100 perc 2 perc 1 + --------------------------------------- 2 The approximate prices are (2.) (2.4) price 1 perc original 1 * original + ------------------------------------- 100 (2.5) perc and price 2 original 2 * original + -------------------------------------. (2.6) 100

.0 Example 2 : Hedging against duration and convexity (ftspex2.m) This example constructs a bond portfolio to hedge the portfolio of example 1. We assume a long position in the portfolio in the example 1, and that three other bonds are available for hedging. We compute weights for these three other bonds in a new portfolio so that the duration and convexity of the new portfolio match those of the original portfolio. The following are the bonds we use in hedging : Settlement Maturity Face Coupon Number of Basis date date value rate payments Bonds [today datenum( 06/15/2005 ) 500.07 2 0 today datenum( 08/02/2010 ) 1000.066 2 0 today datenum( 0/01/2025 ) 250.08 2 0]; yield [0.06 0.07 0.075]; Step 1 : Compute the prices, modified durations - dur 1, dur 2, and dur -, and convexities - conv 1, conv 2, and conv - of the above bonds using Matlab functions prbond, bonddur, and bondconv, respectively. Step 2 : Get the weights of the bonds using the Matlab "\" operator. and the vector w of weights is dur 1 dur 2 dur A conv 1 conv 2 conv and b 1 1 1 p_d M p_c 1 (.1) w A \ b (.2) 4.0 Example : Visualizing the sensitivity of a bond portfolio s price to parallel shifts in the yield curve (ftspex.m) This example uses the Financial Toolbox bond pricing functions in a routine that takes time-tomaturity and yield as input arguments and returns the price of a portfolio of bonds. It plots the price and shows the behavior of bond prices as yield and time vary.

5.0 Yield curves and spot curves from bond data This example takes coupon bearing bonds with prices as input and generates the following four graphs. (1) Extracting yields Recall (5.1) The Matlab function yldbond returns yields when the bond prices are given. yldbond uses Newton t method and cubin spline interpolation. (2) Spot rate (zero coupon yield curve) B t 1 C C + F ----------------- ( 1 + y) t + ------------------ ( 1 + y) T Use bootstrapping and smoothing with splines. Find each successive spot rate by requiring that the bond of the corresponding maturity be priced correctly, given all the previous rates calculated. This process is known as the "bootstrapp method" for calculating spot rates. () Extracting a forward rate curve from zero coupon yield curve Suppose y i and f i are the yield and the forward rate at the time T i respectively. The relation exp( y i T i ) exp ( y i 1 T ) i 1 exp( f i [ T i T i 1 ]) gives the formula for the forward rate. y i T i y i 1 T i 1 f i ------------------------------------- T i T i 1 (5.2)

6.0 Portfolio Analysis : Heavy use of QPs and LPs Often finding the optimal portfolio is formulated as a QP. min x T Cx (6.1) s.t. x T r r x T e 1 C is a symmetric positive definite (SPD) matrix. The first constraint is for the expected profit. Variations (1) If no shorting is allowed, nonnegativity on x is required. (2) Sometimes there is a disjunctive constraint (much harder) : () Risk aversion factor x i 0 or x i l i > 0 (6.2) min k 2 -- x T Cx r T x (6.) x T e 1 where k is the risk tolerance. The objective function is called a utility function. (4) Downside minimization over scenarios min E( ( D T x τ) ) (6.4) expected gain over benchmark K where y_ min(0, y). The constraint is linear and the optimization problem can be formulates as LP. Solving positive definite QPs 1. The problem has a unique global solution. 2. Iterative solution i) Active set method : finite algorithm direct matrix factorization matrix updating e.g. - Matlab ( to change soon) - CPLEX ii) Asymptotic (usually interior) finds a sequence of points converging to the solution direct and indirect matrix solutions fast convergence driven by KT conditions