• No results found

Basic Financial Mathematics

N/A
N/A
Protected

Academic year: 2021

Share "Basic Financial Mathematics"

Copied!
71
0
0

Loading.... (view fulltext now)

Full text

(1)

Financial Engineering and Computations

Basic Financial Mathematics

(2)

O tli

Outline

z

Time Value of Money

z

Annuities

z

Annuities

z

Amortization

z

Yields

B d

z

Bonds

(3)

Time Value of Money

Time Value of Money

z FV: future value n

r

FV

PV

=

(

1

+

)

− V: utu e va ue z PV: present value i t t t

r

FV

PV

=

(

1

+

)

n

r

PV

FV

=

(

1

+

)

z r: interest rate z n: period terms

r

PV

FV

=

(

1

+

)

(4)

Quotes on Interest Rates

Quotes on Interest Rates

Annualized rate r is assumed to be constant in this lecture.

(5)

Time Value of Money

z Periodic compounding

Time Value of Money

z Periodic compounding

(If interest is compounded m times per annum)

) 1 . 3 ( 1 nm m r PV FV ⎠ ⎞ ⎜ ⎝ ⎛ + = z Continuous compounding m rn rn PVe FV = 1 1

lim(1 ) lim(1 ) lim(1 )

m rn

t e r nm r ern

+ = → + = + =

z Simple compounding

lim(1 ) lim(1 ) lim(1 ) /

r

(6)

Common Compounding Methods

A

l

di

1

Common Compounding Methods

z

Annual compounding:

m

= 1.

z

Semiannual compounding:

p

g

m

= 2.

z

Quarterly compounding:

m

= 4.

M

hl

di

12

z

Monthly compounding:

m

= 12.

z

Weekly compounding:

y

p

g

m

= 52.

z

Daily compounding:

m

= 365

(7)

Two widely used yields

Two widely used yields

z Bond equivalent yield (BEY)

Annualize yield with semiannual compounding --Annualize yield with semiannual compounding

z Mortgage equivalent yield (MEY)

(8)

Equivalent Rate per Annum

l i

i

d d

Equivalent Rate per Annum

z

Annual interest rate is 10% compounded

twice per annum.

z

Each dollar will grow to be 1.1025 one year

from now

from now.

(

1

+

(

0

1

/

2

)

)

2

=

1

1025

z

The rate is equivalent to an interest rate of

10 25%

d d

(

1

+

(

0

.

1

/

2

)

)

1

.

1025

(9)

Conversion between compounding

Conversion between compounding

Methods

z

Suppose

r

1

is the annual rate with continuous

compounding.

p

g

z

Suppose

r

2

is the equivalent compounded m

times per annum

times per annum.

r ⎛ z

Then

2 1 1 m e r m r = ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + ⎞ ⎛ ⎞ ⎛ z

Therefore

⎟⎟ ⎠ ⎞ ⎜⎜ ⎝ ⎛ − = ⇒ ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + = ln 1 1 1 2 2 1 m r e m r m r m r
(10)

Are They Really “Equivalent”?

z

Recall

r

1

and

r

2

on the previous example.

z

They are based on different cash flow.

I

h t

th

i l t?

(11)

Annuities

Annuities

z

Ordinary annuity

z

Annuity due

z

Annuity due

z

Perpetual annuity

(12)

Ordinary annuity

Ordinary annuity

z

An annuity pays out the same

C

dollars at the

end of each year for

y

n

years.

y

z

With a rate of

r

, the FV at the end of

n

th year is

1 (1 ) 1 (1 ) (3 4) n n i r C r C+ + =

0 (1 ) (3.4) i C r C r = + =

c c c 1 2 3 n 1 2 3 n
(13)

General annuity

If

t

f

C

d ll

h

i d

General annuity

z

If m payments of

C

dollars each are received

per year (the

general annuity

), then Eq.(3.4)

becomes

(

r

)

n m

1

1

+

(

)

mr m

C

1

+

1

z

The

PV

of a general annuity is

(

)

i

(

1

)

(3.6) 1 1 1 mr m n mr i nm i C m r C − − = + − = ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ +

(14)

Annuity due

z For the annuity due, cash flow are received at the

b i i f h Th FV i

beginning of each year. The FV is

) 5 3 ( ) 1 ( 1 ) 1 ( ) 1 ( C r C n i n + − + +

z If m payments of C dollars each are received per

) 5 . 3 ( ) 1 ( ) ( ) 1 ( 1 r r C r C i i + = +

=

z If m payments of C dollars each are received per

year (the general annuity), then Eq.(3.5) becomes 1 ) 1 ( + r n m ) 1 ( 1 ) 1 ( m r C mr m n mr+ + c 1 2 3 n 0 1 2 3 n 0

(15)

Formula

z Ordinary annuity General annuity

Formula

z Ordinary annuity z PV: r r C n − + − (1 ) 1 r m n mr C1−(1+ )− General annuity r m n mr C (1+ ) −1 r C n 1 ) 1 ( + m z FV: z Annuity due mr C r C z Annuity due z PV: C1 (1r r) (1 r) n + + − − ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + + − − m r C r m n mr) 1 1 ( 1 FV C(1 r) 1(1 ) n + + − r C m n mr ) 1 1 1 ( ⎠ ⎝ m m z FV: (1 ) 1(1 r) r r C + + ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + m r C mr m) 1 (
(16)

Perpetual annuity

A i h l f i ll d l

Perpetual annuity

z An annuity that lasts forever is called a perpetual

annuity. We can drive its PV from Eq.(3.6) by

l i i fi i letting n go to infinity:

(

)

1 1 n m i r nm

(

+

)

C 1 1 1 lim 1 lim i r nm m r n n i m r mC PV C C m r →∞ = →∞ − + ⎛ ⎞ = + = = ⎝ ⎠

z This formula is useful for valuing perpetual

fix-coupon debts

m

(17)

Example: The Golden Model

Example: The Golden Model

„ Determine the intrinsic value of a stock.

L h di id d t t t

„ Let the dividend grows at a constant rate

„Stock price= Present value of the infinite series of future dividends.

D …. D(1+g) …. D PV(Allf t di id d ) 1 2 3 0 g r g r PV > − = ; ) dividends future All ( Where

D: Expected dividend per share one year from now. r: Required rate of return for equity investor.

G h i di id d (i i )

(18)

In Class Exercise:

In Class Exercise:

z Show that D g r g r D PV > − = ; ) dividends future All (
(19)

Computed by Excel

Computed by Excel

l

z Present value

z PV(rate, nper, pmt, fv, type) z Rate:各期的利率。 z Nperp :年金的總付款期數。 z Pmt :各期所應給付 (或所能取得) 的固定金額。 z Fv :最後一次付款完成後,所能獲得的現金餘額。 z Fv :最後一次付款完成後,所能獲得的現金餘額。 z Type 0=>期末支付 1=>期初支付

(20)

Computed by Excel

Computed by Excel

z

Future value

z FV (rate nper pmt pv type) z FV (rate, nper, pmt, pv, type) z Rate:各期的利率。 年金的總付款期數 z Nper:年金的總付款期數。 z Pmt :指分期付款。 z Pv :指現值或一系列未來付款的目前總額。 z Type 0=>期末支付 1=>期初支付 z Type 0=>期末支付 1=>期初支付

(21)

Example 3.2.1

Example 3.2.1

The PV of an annuity of $100 per annum for 5 years at an annual interest rate of 6.25%

(22)

In Class Exercise

In Class Exercise

z In above example, please use Excel to compute

the FV of an annuity of $100 per annum for 5 the FV of an annuity of $100 per annum for 5 years at an annual interest rate of 6.25%. Verify this result equal to the future value of the PV of this result equal to the future value of the PV of $418.39.

(23)

Amortization

I i h d f i l h h l f

Amortization

„ It is a method of repaying a loan through regular payment of interest and principal.

„ The size of the loan (the original balance) is reduced by the principal part of each payment.

principal part of each payment.

„ The interest part of each payment pays the interest incurred on

th i i i i l b l

the remaining principal balance.

„ As the principal gets paid down over the term of the loan,

the interest part of the payment diminishes.

See next example! See next example!

(24)

Example: Home mortgages

Example: Home mortgages

z Consider a 15-year, $250,000 loan at 8.0% interest rate,

repay the interest 12 per month.p y p

z Because PV = 250,000, n = 15, m= 12, and r = 0.08

we can get a monthly payment C is $2 389 13

we can get a monthly payment C is $2,389.13.

250000 $ = C + C + + C ) 08 . 0 1 ( 1 ) 12 08 . 0 1 ( ... ) 12 08 . 0 1 ( ) 12 08 . 0 1 ( 250000 $ 180 15 12 2 ⎟ ⎞ ⎜ ⎛ + + + + + + = × 13 . 2389 12 / 08 . 0 ) 12 08 . 0 1 ( 1 12 08 . 0 1 180 180 1 = ⇒ ⎟⎟ ⎟ ⎟ ⎠ ⎞ ⎜⎜ ⎜ ⎜ ⎝ ⎛ + = ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + = − = − ∑C C C i i ⎠ ⎝

(25)

249277.536×(0.08/12) Payment-Interest

We compute it in last page We compute it in last page

(26)

C

i

i i

i

i

Calculating the Remaining Principal

z Right after the kth payment, the remaining principal

is the PV of the future nm-k cash flows, is the PV of the future nm k cash flows,

r nm+k + −(1 ) 1 m rm C m r C m r C m r C ++ ++ + +nmk = + ) 1 ( 1 ) 1 ( ... ) 1 ( ) 1 ( 1 2 ( ) m K K K nm-K Time C h fl C C Cash flow C

(27)

Yields

Yields

z The term yield denotes the return of investment. z It has many variants.

z It has many variants.

(1) Nominal yield (coupon rate of the bond) (2) C rrent ield

(2) Current yield (3) Discount yield

(28)

Discount Yield

Discount Yield

z U.S Treasury bills is said to be issue on a discount

basis and is called a discount security.

z When the discount yield is calculated for short-term

securities a year is assumed to have 360 days

securities, a year is assumed to have 360 days. z The discount yield (discount rate) is defined asy ( )

) 9 . 3 ( 360 days price purchase value par × − Interest ) 9 . 3 ( maturity to days of number value par ×

(29)

CD-equivalent yield

CD-equivalent yield

z It also called the money-market-equivalent yield. z It is a simple annualized interest rate defined as

days price purchase value par 365 (3.10) maturity to days of number days price purchase price purchase value par 365 × −

(30)

E

l 3 4 1 Di

t i ld

Example 3.4.1: Discount yield

z If an investor buys a U.S.$10,000, 6-month T-bill for

U S $9521 45 with 182 days remaining to maturity

U.S.$9521.45 with 182 days remaining to maturity.

0947 0 360 45 . 9521 10000 i ld Di 0.0947 182 10000 . 9 = × = yield Discount

(31)

Internal Rate of Return (IRR)

I i h i hi h i ’

Internal Rate of Return (IRR)

z It is the interest rate which equates an investment’s

PV with its price X.

z IRR assumes all cash flows are reinvested at the

n n IRR C IRR C IRR C X = ×(1+ )− + ×(1+ )−2 +...+ ×(1+ )− 2 1 1

z IRR assumes all cash flows are reinvested at the

same rate as the internal rate of return.

z It doesn’t consider the reinvestment risk.

IRR is discount rate for every period

X C C C C

y p

X C

(32)

Evaluating real investment with IRR

Evaluating real investment with IRR

z Multiple IRR arise when there is more than one

sign reversal in the cash flow pattern, and it is also

ibl h IRR

possible to have no IRR.

z Evaluating real investment, g , IRR rule breaks down

when there are multiple IRR or no IRR.

z Additional problems exist when the term structure z Additional problems exist when the term structure

of interest rates is not flat.

Æthere is ambiguity about what the appropriate hurdle rate (cost of capital) should be.

(33)

Class Exercise

Class Exercise

z Assume that a project has cash flow as follow

respectively, and initial cost is $1000 at date 0, please p y, , p

calculate the IRR. If cost of capital is 10%, do you think it is a good project? g p j

0 1 2 3 4 IRR CF at date

(34)

Class Exercise (Excel)

Class Exercise (Excel)

(35)

Holding Period Return

Holding Period Return

c

Reinvest: re

1 2 3 n

z The FV of investment in n period is P

n

y P

FV = (1+ ) The FV of investment in n period is

z Let the reinvestment rates re, the FV of per cash income is

y V ( ) C r C r C r C×(1+ )n1 + ×(1+ )n2 + + ×(1+ ) + z We define HPR (y) is C r C r C r C×(1+ e) + ×(1+ e) +...+ ×(1+ e) + Value is given C r C r C r C y P(1+ )n = ×(1+ e)n−1 + ×(1+ e)n−2 +...+ ×(1+ e) +

(36)

Methodology for the HPR(

y

)

Methodology for the HPR(

y

)

z Calculate the FV and then find the yield that equates it with the P z Suppose the reinvestment rates has been determined to be r

z Suppose the reinvestment rates has been determined to be re.

Step Periodic compounding Continuous compounding

(1)Calculate the n (1)Calculate the future value

= − + = n t t n e r C FV 1 ) 1 ( ( 1) 1 e e r n r e FV C e − = × − (2)Find the HPR

1

=

n FVP

y

y

=

n1

ln(

FVP

)

(37)

Example 3.4.5:HPR

Example 3.4.5:HPR

z A financial instrument promises to pay $1,000 for

the next 3 years and sell for $2,500. If each cash

can be put into a bank account that pays an effective

rate of 5%. z The FV is

= − = + × 3 1 3 3152.5 ) 05 . 0 1 ( 1000 t t z The HPR is 2500(1+ HPR)3 = 3125.5 0804 . 0 1 2500 5 . 3152 1/3 = − ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ = ⇒ HPR ⎠ ⎝
(38)

Numerical Methods for Yield

Numerical Methods for Yield

z Solve

= − ≥ = − + = n t t

t x for r x is market price

r C r f 1 , 1 , 0 ) 1 ( ) ( X IRR C IRR C IRR C IRR C X n n n n = − + × + + + × ⇒ + × + + + × = − − − − 0 ) 1 ( ... ) 1 ( ) 1 ( ... ) 1 ( 1 1 1 1 Recall X r C r C r f Let n n n − + × + + × = (1 ).... (1 )− ) ( ) ( ) ( 1 1 1

z The function f(r)f( ) is monotonic in r, if , Ctt > 0 for all t, ,

(39)

The Bisection Method

The Bisection Method

z Start with a and b where a < b and f(a) f(b) < 0.

Th f( ) t b f ( b)

z Then f(r) must be zero for some r (a , b).

z If we evaluate ff at the midpoint p c≡ ((a + b) ) / 2

(1) f(a) f(c) < 0 Æ a<r<c (2) f(c) f(b) < 0 Æ c<r<b

z After n steps we will have confined r within a z After n steps, we will have confined r within a

(40)

Bisection Method

Bisection Method

L tf ( ) C (1 )−1 C (1 )−2 C (1 )−n X z Let z Solve f(r)=0 X r C r C r C r f ( ) = ×(1+ )−1 + ×(1+ )−2 + ...+ ×(1+ )−n − f(r) nc - x f(a)>0,f(b)<0 => a<r<b Let c=(a+b)/2 nc - x Let c=(a+b)/2 f(a)>0 f(c)<0 => a<r<c r IRR a b c a
(41)

C++:

使用

while

建構二分法

C++:

使用

while

建構二分法

令 Middle =(High+Low)/2; float Low=0, High=1;

輸入 每期報酬c,期數 n,期初投入x

令 Middle =(High+Low)/2;

找出 R落在 (Low, Middle)或 (Middle,High)

true

while(High-Low>=0.0001) float c,x,Discount;

float Low=0, High=1; int n; false scanf("%f",&c); scanf("%f",&x); scanf("%d",&n); 程式碼: while(High-Low>=0.0001) { } printf("Yield rate=%f",High);

(42)

Bisection method

縮小根的範圍

z 已知已知 f (r) = c×(1+r)−1 +c×(1+r)−2 +...+c×(1+r)−nx z f(r)<0 Æ r >R z f(r)>0 Æ r<R float Middle=(Low+High)/2; float Value=0; for(int i=1;i<=n;i=i+1) { z f(r)>0 Æ r<R z 令 Middle=(High+Low)/2 z 將根的範圍從(Low High)縮減到 { Discount=1; for(int j=1;j<=i;j++) { z 將根的範圍從(Low,High)縮減到 z (Low,Middle) z (Middle,High) { Discount=Discount/(1+Middle) } Value=Value+Discount*c; } 用計算債券的公式計算 n r c r c r c×(1+ )−1 + ×(1+ )−2 +...+ ×(1+ )− } Value=Value-x; if(Value>0) { Low=Middle;} 用計算債券的公式計算 { Low Middle;} else {High=Middle;} 縮小根的範圍
(43)

計算

IRR

float c,x,Discount; float Low=0 High=1;

(

完整程式碼

)

float Low 0, High 1; int n; scanf("%f",&c); scanf("%f",&x); scanf("%d",&n); while(High-Low>=0.0001) { float Middle=(Low+High)/2;

while控制根的範圍 float Middle (Low+High)/2;

float Value=0; for(int i=1;i<=n;i=i+1) { 用 控制根的範圍 計算 c×(1+r)−1+c×(1+r)−2+...+c×(1+r)−n Discount=1; for(int j=1;j<=i;j++) { Discount=Discount/(1+Middle); i r − + ) 1 ( 計算 Discount Discount/(1+Middle); } Value=Value+Discount*c; } V l V l Value=Value-x; if(Value>0) { Low=Middle;} else 縮小根的範圍 else {High=Middle;} } printf("Yield rate=%f",High);

(44)

Homework

Homework

z 第三章第十題
(45)

The Newton Raphson Method

The Newton-Raphson Method

z Converges faster than the bisection method.

z Start with a first approximation pp X00 to a root of f(x)f( ) = 0.

z Then 1 ( ) (3.15) ( ) k k k f x x x f x + ≡ −

z When computing yields,

( )k f x

+ + − = ′ n t t t x C t x f 1 (1 ) 1 ) ( = + t 1 (1 x)

Recall the bisection method, the X here is r (yield) in the bisection method!

(46)

Figure3.5: Newton-Raphson method

g

p

θ 1 ( ) ( ) tan k k k k f X f X X X θ + − ′ = = − ∵ θ f(Xk) 1 1 ( ) ( ) k k k k k k X X f X X X f X + + − ⇒ = ′ 1 ( ) ( ) ( ) k k k k k f f X X X f X + ⇒ =
(47)

Computed by Excel

Computed by Excel

z Yield的計算

z RATE( nper, pmt, pv, fv, type)( p , p , p , , yp )

z Nper:年金的總付款期數。 z Pmt :各期所應給付 (或所能取得) 的固定金額。 z Pmt :各期所應給付 (或所能取得) 的固定金額。 z Pv :期初付款金額。 F :最後一次付款完成後 所獲得的現金餘額 (年金終值) z Fv :最後一次付款完成後,所獲得的現金餘額 (年金終值) 。 z Type 0=>期末支付 1=>期初支付

(48)

E

l

Example

YTM=2 83%*2=5 66% YTM=2.83% 2=5.66%

(49)

Bond

Bond

z

A bond is a contract between the issuer

(borrower) and the bondholder (lender)

(borrower) and the bondholder (lender).

z

Bonds usually refer to long-term debts.

z

Callable bond, convertible bond.

z

Pure discount bonds vs level-coupon bond

z

Pure discount bonds vs. level-coupon bond

(50)

Zero Coupon Bonds

(Pure Discount Bonds)

Zero-Coupon Bonds

(Pure Discount Bonds)

z The price of a zero-coupon bond that pays F dollars

in n periods is P = F in n periods is n r P ) 1 ( + =

where r is the interest rate per period

z No coupon is paid before bond mature.

z Can meet future obligations without reinvestment z Can meet future obligations without reinvestment

risk.

F (par value)

n periods P

(51)

Level Coupon Bonds

Level-Coupon Bonds

z It pays interest based on coupon rate and the par value,

which is paid at maturity.

z F denotes the par value and C denotes the coupon.

n n F r r C r C r C P = ×(1+ )−1 + ×(1+ )−2 +...+ ×(1+ )− + ×(1+ )−

(52)

Pricing of Level-Coupon Bonds

Pricing of Level Coupon Bonds

+ + + + = C C C F P ) 18 3 ( ) 1 ( 1 ) 1 ( ) 1 ( ... ) 1 ( ) 1 ( 2 ∑ + = ⎜⎜⎛ − + − ⎟⎟⎞+ = + + + + + + + + = nm nm mr nm mr nm mr mr mr F C F C P where

n: time to maturity (in years)

) 18 . 3 ( ) 1 ( ) 1 ( ) 1 ( 1 ∑ = + + ⎟⎟ ⎠ ⎜⎜ ⎝ + + + i mr i mr nm mr mr nm C n: time to maturity (in years)

m : number of payments per year.

r : annual rate compounded m times per annum.p p C = Fc/m where c is the annual coupon rate.

C C C C Pay m times F

P

Pay m times

P

(53)

Yield To Maturity

Th YTM f l l b d i i IRR h

Yield To Maturity

z The YTM of a level-coupon bond is its IRR when

the bond is held to maturity.

z For a 15% BEY, a 10-year bond with a coupon rate , y p

of 10% paid semiannually sells for

( ) ) 1 ( 100 ) 1 ( 5 ... ) 1 ( 5 10 2 20 215 . 0 20 215 . 0 215 . 0 + + + + + = P ( ) (1 (0.15/ 2)) 74.5138 100 2 / 15 . 0 ) 2 / 15 . 0 ( 1 1 5 2 10 10 2 = + + + − × = − × ×

(54)

Yield To Call

Yield To Call

z For a callable bond, the yield to states maturity

measures its yield to maturity as if were not callable.easu es ts y e d to atu ty as we e ot ca ab e.

z The yield to call is the yield to maturity satisfied by E (3 18) h d i h b f

Eq(3.18), when n denoting the number of

remaining coupon payments until the first call date and F replaced with call price.

Par value F(call price)

C C ( p )

M t it

C C

(55)

Homework

Homework

z A company issues a 10-year bond with a coupon

rate of 10%, paid semiannually. The bond is called rate of 10%, paid semiannually. The bond is called at par after 5 years. Find the price that guarantees a return of 12% compounded semiannually for the

return of 12% compounded semiannually for the investor. (You are able to use Excel to run it.)

(56)

Price Behaviors

B d i f ll th i t t t i d

z Bond price falls as the interest rate increases, and

vice versa.

z A level-coupon bond sells

at a premium (above its par value) when its

coupon rate is above the market interest rate.

at parat par (at its par value) when its coupon rate is(at its par value) when its coupon rate is

equal to the market interest rate.

t di t (b l it l ) h it

at a discount (below its par value) when its

(57)

Figure 3.8: Price/yield relations

Figure 3.8: Price/yield relations

ÆPremium bond

ÆPremium bond

ÆPar bond

ÆPar bond

(58)

Figure 3.9: Price vs. yield.

gu e 3.9:

ce vs. y e d.

Pl d i b d h 8% i l f

Plotted is a bond that pays 8% interest on a par value of $1,000,compounding annually. The term is 10 years.

(59)

Day Count Conventions: Actual/Actual

Day Count Conventions: Actual/Actual

z The first “actual” refers to the actual number of

days in a month.y

z The second refers to the actual number of days in a

year.

z Example: For coupon-bearing Treasury securities z Example: For coupon-bearing Treasury securities,

the number of days between June 17, 1992, and October 1 1992 is 106

October 1, 1992, is 106.

Æ13 days (June), 31 days (July), 31 days (August), 30 days (S t b ) d 1 d (O t b )

(60)

Day Count Conventions:30/360

Day Count Conventions:30/360

z Each month has 30 days and each year 360 days.

Th b f d b t J 17 1992 d

z The number of days between June 17, 1992, and

October 1, 1992, is 104.

13 days (June), 30 days (July), 30 days (August),

30 days (September), and 1 day (October).y ( p ), y ( )

z In general, the number of days from date1 to date2

iis

360

×

(y(y2 y1) + 30 y )

×

(m2 ( m1) + (d2 ) ( d1))
(61)

Bond price between two coupon date

(F ll P i

Di

P i )

(Full Price, Dirty Price)

z In reality, the settlement date may fall on any day

between two coupon payment dates. between two coupon payment dates.

C 100 C 1 2 n w Settlement date period coupon in the days of Number date payment next the to days of Number = w 1 ) ( 1 ) ( ... 1 ) 1 ( ) 1 ( Price Dirty + + + + − − + × + − + × = n n r C r C ω ω ω ω 1 ) 1 ( 100 1 ) 1 ( + − − + + × + − − + × r n r n C ω ω

(62)

Accrued Interest

Accrued Interest

z The original bond holder has to share accrued interest

in 1 ω period ) 1 ( ω × C in 1-ω period - Accrued interest is

z The quoted price in the U.S./U.K. does not include

the accrued interest; it is called the clean price

the accrued interest; it is called the clean price.

(63)

Example 3.5.3

Example 3.5.3

z

Consider a bond with a 10% coupon rate, par

value$100 and paying interest semiannually

value$100 and paying interest semiannually,

with clean price 111.2891. The maturity date

i M

h 1 1995

d h

l

d

i

is March 1, 1995, and the settlement date is

July 1, 1993.

The yield to maturity is 3%.
(64)

Example: solutions

Example: solutions

z There are 60 days between July 1, 1993, and the

next coupon date, September 1, 1993.e t coupo date, Septe be , 993.

z The ω= 60/180, C=5,and accrued interest is

5× (1-(60/180)) =3.3333 z Dirty price=114 6224 z Dirty price 114.6224 clean price = 111.2891 60 days 1995.3.1 1994.9.1 1994.3.1 1993.9.1 1993.3.1 settle

(65)

E ercise 3 5 6

Exercise 3.5.6

z Before: A bond selling at par if the yield to maturity equals the

coupon rate. (But it assumed that the settlement date is on a t d t )

coupon payment date).

z Now suppose the settlement date for a bond selling at par (i.e.,

the quoted price is equal to the par value) falls between two

the quoted price is equal to the par value) falls between two coupon payment dates.

z Then its yield to maturity is less than the coupon rate z Then its yield to maturity is less than the coupon rate.

ÆThe short reason: Exponential growth is replaced by linear growth, hence “overpaying” the coupon.

(66)

C++: for

控制結構

C++: for

控制結構

z 透過for的結構 程式的片段可重複執行固定 z 透過for的結構,程式的片段可重複執行固定 次數 for(int j=1;j<5;j=j+1) {

檢視:Bond Value project 當區塊中只有 { printf(" %d-th Execution\n",j); } 當區塊中只有 一行敘述時,左 右括弧可省略 j=1; j=1; j<5 printf(" %d-th Execution\n",j); j=j+1; true false Exit Exit

(67)

C++:

計算債券價格

C

:

計算債券價格

考慮債券價格的計算 z 考慮債券價格的計算 z 假定單期利率為r 每一期支付 共付 期 z 每一期支付coupon c,共付n期 z 到期日還本100元 100 c 1 2 3 n n n r r c r c r c P = ×(1+ )−1 + ×(1+ )−2 +...+ ×(1+ )− +100×(1+ )− 債券價格
(68)

程式想法

i=1

i<=n 計算第i 期 payoff 的 現值

value=value+第i期的現值 true value value+第i期的現值 i=i+1 false int n; 列印價格 float c, r, Value=0,Discount;; scanf("%d",&n); scanf("%f",&c); 列印價格 scanf("%f",&r); for(int i=1;i<=n;i=i+1) { } printf("BondValue=%f",Value);

(69)

計算第

i

payoff

p y

的 現值

z i<n 現值= (1+ r)−i ×c z i=n 現值= z 用for計算 ) 100 ( ) 1 ( + rn × c + i r − + ) 1 ( z 用for計算 (1+ r) 計算第i 次 payoff的 現值 Discount=1; for(int j=1;j<=i;j++) for(int j=1;j<=i;j++) { Discount=Discount/(1+r); } 計算 (1+ r)−i } Value=Value+Discount*c; if(i==n) {{ Value=Value+Discount*100; } 考慮最後一期本金折現
(70)

完整程式碼

(

包含巢狀結構

)

#include <stdio h> #include <stdio.h> void main() { int n;; float c, r, Value=0,Discount; scanf("%d",&n); scanf("%f",&c);( ) scanf("%f",&r); for(int i=1;i<=n;i=i+1) { 第i 次 payoff的 現值 Discount=1; for(int j=1;j<=i;j++) { 第i 次 payoff的 現值 Discount=Discount/(1+r); } Value=Value+Discount*c; if(i ) Value為前 i次payoff 現值 if(i==n) { Value=Value+Discount*100; }} } printf("BondValue=%f",Value); }
(71)

Homework

Homework

z Program exercise:

Calculate the dirty and the clean price Calculate the dirty and the clean price for a bond under actual/actual and

30/360 day count conversion.y

Input: Bond maturity date, settlement date, bond yield, and the coupon rate. date, bond yield, and the coupon rate. The bond is assumed to pay coupons

semiannually semiannually.

References

Related documents

For each option, we take the underlying asset value, strike price, time to maturity and value of offset and calculate the Black implied volatility based on the model price given

2) What was the percentage interest rate p.a.. What interest rate compounded half-yearly will she need? Answer correct to 1 decimal place..  An investment which decreases in

Evaluating Project Viability Using Internal Rate of Return (IRR) and other Financial Metrics Excel Tips and Shortcuts for Real Estate Professionals?. Hotel Pro forma Development

There is a broadly positive relationship between fund success (as measured by IRR and size of funds raised) and the level of an investment firm’s value creation maturity..

¾ If coupon rate &gt; yield to maturity then bond is sold at premium (bond price&gt; par value).. ¾ If coupon rate &lt; yield to maturity then bond is sold at discount (bond

Investment properties that include investment properties in trust are recorded at cost, which includes the allocated purchase price, related costs and expenses for acquisition of

Real Estate Mortgage Owing- Investment (Schedule 6) Real Estate: Personal (Schedule 5) Installment Loan (Schedule 10) Real Estate: Investment (Schedule 6) Credit Balances:

Let C be the no-arbitrage price of a call option with strike price K and maturity time T and suppose that the underlying asset (e.g. share) is evolving according to a geometric