An example of isotonic regression (solid red line) compared to linear regression on the same data, both fit to minimize themean squared error. The free-form property of isotonic regression means the line can be steeper where the data are steeper; the isotonicity constraint means the line does not decrease.
Instatistics andnumerical analysis,isotonic regression ormonotonic regression is the technique of fitting a free-form line to a sequence of observations such that the fitted line isnon-decreasing (or non-increasing) everywhere, and lies as close to the observations as possible.
Isotonic regression has applications instatistical inference. For example, one might use it to fit an isotonic curve to the means of some set of experimental results when an increase in those means according to some particular ordering is expected. A benefit of isotonic regression is that it is not constrained by any functional form, such as the linearity imposed bylinear regression, as long as the function is monotonic increasing.
Another application is nonmetricmultidimensional scaling,[1] where a low-dimensionalembedding for data points is sought such that order of distances between points in the embedding matchesorder of dissimilarity between points. Isotonic regression is used iteratively to fit ideal distances to preserve relative dissimilarity order.
Isotonic regression for the simply ordered case with univariate has been applied to estimating continuous dose-response relationships in fields such as anesthesiology and toxicology. Narrowly speaking, isotonic regression only provides point estimates at observed values of Estimation of the complete dose-response curve without any additional assumptions is usually done via linear interpolation between the point estimates.[3]
Software for computing isotone (monotonic) regression has been developed forR,[4][5][6]Stata, andPython.[7]
Let be a given set of observations, where the and the fall in somepartially ordered set. For generality, each observation may be given a weight, although commonly for all.
Isotonic regression seeks a weightedleast-squares fit for all, subject to the constraint that whenever. This gives the followingquadratic program (QP) in the variables:
subject to
where specifies the partial ordering of the observed inputs (and may be regarded as the set of edges of somedirected acyclic graph (dag) with vertices). Problems of this form may be solved by generic quadratic programming techniques.
In the usual setting where the values fall in atotally ordered set such as, we may assumeWLOG that the observations have been sorted so that, and take. In this case, a simpleiterative algorithm for solving the quadratic program is thepool adjacent violators algorithm. Conversely, Best and Chakravarti[8] studied the problem as anactive set identification problem, and proposed a primal algorithm. These two algorithms can be seen as each other's dual, and both have acomputational complexity of on already sorted data.[8]
To complete the isotonic regression task, we may then choose any non-decreasing function such that for all i. Any such function obviously solves
subject to being nondecreasing
and can be used to predict the values for new values of. A common choice when would be to interpolate linearly between the points, as illustrated in the figure, yielding a continuous piecewise linear function:
As this article's first figure shows, in the presence of monotonicity violations the resulting interpolated curve will have flat (constant) intervals. In dose-response applications it is usually known that is not only monotone but alsosmooth. The flat intervals are incompatible with's assumed shape, and can be shown to be biased. A simple improvement for such applications, named centered isotonic regression (CIR), was developed by Oron and Flournoy and shown to substantially reduce estimation error for both dose-response and dose-finding applications.[9] Both CIR and the standard isotonic regression for the univariate, simply ordered case, are implemented in the R package "cir".[4] This package also provides analytical confidence-interval estimates.
^Niculescu-Mizil, Alexandru; Caruana, Rich (2005). "Predicting good probabilities with supervised learning". In De Raedt, Luc; Wrobel, Stefan (eds.).Proceedings of the Twenty-Second International Conference on Machine Learning (ICML 2005), Bonn, Germany, August 7–11, 2005. ACM International Conference Proceeding Series. Vol. 119. Association for Computing Machinery. pp. 625–632.doi:10.1145/1102351.1102430.
^Xu, Zhipeng; Sun, Chenkai; Karunakaran, Aman."Package UniIsoRegression"(PDF).CRAN. R Foundation for Statistical Computing. Retrieved29 October 2021.
^Pedregosa, Fabian; et al. (2011). "Scikit-learn:Machine learning in Python".Journal of Machine Learning Research.12:2825–2830.arXiv:1201.0490.Bibcode:2011JMLR...12.2825P.
Robertson, T.; Wright, F. T.; Dykstra, R. L. (1988).Order restricted statistical inference. New York: Wiley.ISBN978-0-471-91787-8.
Barlow, R. E.; Bartholomew, D. J.; Bremner, J. M.; Brunk, H. D. (1972).Statistical inference under order restrictions; the theory and application of isotonic regression. New York: Wiley.ISBN978-0-471-04970-8.