PCHIP is a cubic interpolation method that preserves monotonicity by computing shape-preserving derivatives to avoid overshoots.
Statistics
Author
Xuefeng Xu
Published
March 13, 2025
Piecewise Cubic Hermite Interpolating Polynomial (PCHIP) is a cubic spline-based interpolation method designed to preserve monotonicity. See MATLAB or SciPy for the implementation details.
1 Interpolation Function
Given n data points (x_1,y_1),\dots,(x_n,y_n) with x_1<\cdots<x_n, where y is monotonic (either y_i\le y_{i+1} or y_{i+1}\ge y_i), define:
A quadratic polynomial \hat{f}(x)=\hat{c}_0+\hat{c}_1x+\hat{c}_2x^2 is fit through the first three points, and its derivative at x_1 is computed to obtain \hat{d}_1. Additional rules are then applied to preserve monotonicity. Similar rules apply for d_n.
For endpoint \alpha_1, we only need to show the condition of \text{sgn}(\hat{d}_1)=\text{sgn}(s_1)=\text{sgn}(s_2), since other conditions already lie within the region [0,3].
Similarly, \beta_i and endpoint \beta_{n-1} all satisfy the monotonicity condition.
4 Proof of Monotonicity
Proof. To preserve monotonicity, the derivatives d_i and d_{i+1} must align with the direction of the slope of the interval s_i. This is a necessary condition (Fritsch and Carlson 1980):
This formulation aligns with the cubic polynomial definition above.
References
Fritsch, F. N., and J. Butland. 1984. “A Method for Constructing Local Monotone Piecewise Cubic Interpolants.”SIAM Journal on Scientific and Statistical Computing 5 (2): 300–304. https://doi.org/10.1137/0905021.
Fritsch, F. N., and R. E. Carlson. 1980. “Monotone Piecewise Cubic Interpolation.”SIAM Journal on Numerical Analysis 17 (2): 238–46. https://doi.org/10.1137/0717021.