“Monotone” here allows flat stretches. The decreasing version reverses the inequality. The purpose is to stop an interpolation method introducing a turn that the supplied values do not contain.
That matters when interpolating cumulative probabilities for a risk calculation: an interpolated probability must not fall as the loss threshold rises. Passing through valid points is insufficient if the curve misbehaves between them.
The plateau test
The first piece has on ; the second has zero slope. Both slopes meet at zero. In particular,
At , it gives . Its slope there is : it has risen above the plateau and is coming back down. This is an overshoot of response units. If these values represented cumulative probabilities, the excursion above 1 and the subsequent decline would both be invalid.
Shape is a constraint; smoothness is another
A monotonicity guarantee does not identify a unique interpolating curve. Straight segments, slope-limited cubics and other constructions can satisfy the same ordering constraint.
PCHIP chooses local cubic Hermite pieces and limits their knot slopes. An interior slope becomes zero beside a flat secant or a change of direction; otherwise a weighted harmonic mean of neighbouring secant slopes controls it. The result preserves each interval's direction and stays within its endpoint response range. It is , meaning the first derivative is continuous, but generally not . In this example its second derivative jumps from to across .
A conventional cubic spline instead enforces continuous second derivatives. That extra smoothness can be useful for differentiation, but does not enforce monotonicity. The natural spline above satisfies its defining conditions perfectly.
There is also a feasibility limit: an exactly interpolating curve cannot be globally nondecreasing if the supplied values themselves decrease somewhere. PCHIP preserves local turns in such data. Fitting noisy observations under a global monotonicity constraint is a different problem that may require changing fitted values rather than passing through every observation.
Check the financial variable too
Shape preservation applies to the quantity you interpolate. A monotone curve of zero rates is not automatically an arbitrage-free curve of discount factors, and monotonicity alone does not establish the convexity constraints required by option prices across strikes. Even the direction you should enforce depends on the financial assumptions; decreasing discount factors, for example, are not a universal rule in negative-rate settings.
Before accepting an interpolant, check its values at the knots, derivative signs and range inside every interval, and the boundary assumptions. A dense plot can reveal a violation but cannot certify its absence: for cubic pieces, the derivative is quadratic, so its minimum and maximum can be checked at endpoints and any interior vertex. Keep extrapolation separate; an inside-domain shape guarantee supplies no justified tail beyond the knots.
Sources
- Cleve Moler, Numerical Computing with MATLAB, electronic chapter 3, §§3.2–3.5 — piecewise linear and Hermite constructions, shape-preserving slopes and the distinction from cubic splines. Electronic chapter dated September 16, 2013; original book published in 2004.
- SciPy documentation:
PchipInterpolator— monotonicity preservation, continuity and weighted harmonic slope convention. - Fritsch, SLATEC
DPCHIM— original numerical routine, endpoint slope limiting, two-point linear case and treatment of direction changes. - Cornuéjols, Peña and Tütüncü, Optimization Methods in Finance, 2nd ed., Cambridge University Press (2018), §3.4, pp. 42–43 — the financial setting of term-structure estimation and interpolation between maturities.