Go to Deriscope's documentation start page
Interpolation__Interpolation_MethodInterpolation Method refers to List of possible types that describe the interpolation of a reference quantity v that depends on a single independent variable x.
Given a set of independent variable values x1, x2, ..., xN for which the respective reference quantity values v1, v2, ..., vN are known, each interpolation type prescribes how the reference quantity value v corresponding to some x is calculated, where x is within the range spanned by x1, x2, ..., xN.
Available Interpolation Method types:
The reference quantity is interpolated according to the QuantLib BackwardFlat method.
The value at a node is extended flatly back to the previous node.
The reference quantity is interpolated according to the QuantLib ConvexMonotone method.
This results in the reference quantity being both convex (positive second derivative) and monotone (non-vanishing fiorst derivative), both within the intervals and at the interpolating nodes. Web reference available here
A setting of monotonicity = 1 and quadraticity = 0 will reproduce the basic Hagan/West method.
However, this can produce excessive gradients which can mean P&L swings for some curves.
Setting monotonicity less than 1 and/or quadraticity greater than 0 produces smoother curves.
Extra enhancement to avoid negative values (if required) is in place.
The reference quantity is interpolated according to the QuantLib Cubic method.
Cubic interpolation is fully defined when the function values v1, v2, ..., vN at points x1, x2, ..., xN are supplemented with function derivative values d1, d2, ..., dN.
Different type of first derivative approximations are implemented, both local and non-local.
Local schemes (Fourth-order, Parabolic, Modified Parabolic, Fritsch-Butland, Akima, Kruger) use only function values near the given points to calculate each derivative value.
Non-local schemes (Spline with different boundary conditions) use all function values and obtain the derivative values d1, d2, ..., dN by solving a linear system of equations.
Local schemes produce interpolants with continuous first derivative function, while the spline schemes generate interpolants with continuous second derivative function.
Hyman's monotonicity constraint filter is also implemented:
It can be applied to all schemes to ensure that in the regions of local monotoniticity of the input (three successive increasing or decreasing values) the interpolating cubic remains monotonic.
If the interpolating cubic is already monotonic, the Hyman filter leaves it unchanged preserving all its original features.
In the case of interpolants with continuous second derivative function the Hyman filter ensures local monotonicity at the expense of the second derivative of the interpolant which will no longer be continuous in the points where the filter has been applied.
While some non-linear schemes (Modified Parabolic, Fritsch-Butland, Kruger) are guaranteed to be locally monotonic in their original approximation, all other schemes must be filtered according to the Hyman criteria at the expense of their linearity.
See R. L. Dougherty, A. Edelman, and J. M. Hyman, "Nonnegativity-, Monotonicity-, or Convexity-Preserving CubicSpline and Quintic Hermite Interpolation" Mathematics Of Computation, v. 52, n. 186, April 1989, pp. 471-494.
The reference quantity is interpolated according to the QuantLib ForwardFlat method.
The value at a node is extended flatly forward to the next node.
The reference quantity v is linearly interpolated in piecewise fashion according to the QuantLib Linear method.
Formally, given any two successive nodes (x1,v1) and (x2,v2) then the value v corresponding to some x lying between x1 and x2 is given by
v = w1*v1 + w2*v2
where the weights are given by
w1 = (x2-x)/(x2-x1)
w2 = 1 - w1
The reference quantity is interpolated according to the QuantLib LogCubic method, whereby the cubic interpolation scheme is applied on the logarithm of the reference quantity.
The reference quantity is interpolated according to the QuantLib LogLinear method, whereby the logarithm of the reference quantity is linearly interpolated.
Effectively the nodes are connected with exponential curves.
Mixed Linear Cubic
The reference quantity is interpolated according to the QuantLib MixedLinearCubic method.
For a user-supplied number N, the first N nodes are linearly interpolated, whereas the remaining nodes are interpolated according to the cubic method.