CONVX Function

Returns the convexity for an enumerated cash flow.

Category: Financial

Syntax

Required Arguments

y

specifies the effective per-period yield-to-maturity, expressed as a fraction.

Range 0 < y < 1

f

specifies the frequency of cash flows per period.

Range f > 0

c(1), ... ,c(k)

specifies a list of cash flows.

Details

The CONVX function returns the value
C = Σ k = 1 K k ( k + f ) c ( k ) ( 1 + y ) k f P ( ( 1 + y ) 2 ) f 2
The following relationship applies to the preceding equation:
P = Σ k = 1 K c ( k ) ( 1 + y ) k f

Example

data _null_;
   c=convx(1/20,1,.33,.44,.55,.49,.50,.22,.4,.8,.01,.36,.2,.4); 
   put c;
run;
The value that is returned is 42.3778.