CONVEXIT Function
calculates convexity of a non contingent "cash flow"
- CONVEXIT( times, flows, ytm)
The inputs to the CONVEXIT function areas follows:
- times
- is an n-dimensional column vector of times.
- flows
- is an n-dimensional column vector of cash flows.
- rates
- is the per-period yield-to-maturity of the cashflow stream.
The CONVEXIT function returns a scalar that
is the convexity of a non contingent cash flow.
Convexity is essentially a measure of how duration, the
sensitivity of price to yield, changes as interest rates change:
-
C = [1/P] [(d2P)/(dy2)]
With cash flows that are not yield sensitive,
and the assumption of parallel shifts to a
flat term-structure, convexity is given by

where P is the present value, y is the effective
per period yield-to-maturity, and K is the number
of cash flows, the kth cash
flow being c(k) tk periods from the present.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.