Isotonic regression explained

In statistics and numerical analysis, isotonic regression or monotonic regression is the technique of fitting a free-form line to a sequence of observations such that the fitted line is non-decreasing (or non-increasing) everywhere, and lies as close to the observations as possible.

Applications

Isotonic regression has applications in statistical 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 by linear regression, as long as the function is monotonic increasing.

Another application is nonmetric multidimensional scaling,[1] where a low-dimensional embedding for data points is sought such that order of distances between points in the embedding matches order of dissimilarity between points. Isotonic regression is used iteratively to fit ideal distances to preserve relative dissimilarity order.

Isotonic regression is also used in probabilistic classification to calibrate the predicted probabilities of supervised machine learning models.[2]

Isotonic regression for the simply ordered case with univariate

x,y

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

x.

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 for R,[4] [5] [6] Stata, and Python.[7]

Problem statement and algorithms

Let

(x1,y1),\ldots,(xn,yn)

be a given set of observations, where the

yi\inR

and the

xi

fall in some partially ordered set. For generality, each observation

(xi,yi)

may be given a weight

wi\ge0

, although commonly

wi=1

for all

i

.

Isotonic regression seeks a weighted least-squares fit

\hat{y}iyi

for all

i

, subject to the constraint that

\hat{y}i\le\hat{y}j

whenever

xi\lexj

. This gives the following quadratic program (QP) in the variables

\hat{y}1,\ldots,\hat{y}n

:

min

n
\sum
i=1

wi(\hat{y}i-

2
y
i)
subject to

\hat{y}i\le\hat{y}jforall(i,j)\inE

where

E=\{(i,j):xi\lexj\}

specifies the partial ordering of the observed inputs

xi

(and may be regarded as the set of edges of some directed acyclic graph (dag) with vertices

1,2,\ldotsn

). Problems of this form may be solved by generic quadratic programming techniques.

In the usual setting where the

xi

values fall in a totally ordered set such as

R

, we may assume WLOG that the observations have been sorted so that

x1\lex2\le\lexn

, and take

E=\{(i,i+1):1\lei<n\}

. In this case, a simple iterative algorithm for solving the quadratic program is the pool adjacent violators algorithm. Conversely, Best and Chakravarti[8] studied the problem as an active set identification problem, and proposed a primal algorithm. These two algorithms can be seen as each other's dual, and both have a computational complexity of

O(n)

on already sorted data.

To complete the isotonic regression task, we may then choose any non-decreasing function

f(x)

such that

f(xi)=\hat{y}i

for all i. Any such function obviously solves

minf

n
\sum
i=1

wi(f(xi)-

2
y
i)
subject to

f

being nondecreasingand can be used to predict the

y

values for new values of

x

. A common choice when

xi\inR

would be to interpolate linearly between the points

(xi,\hat{y}i)

, as illustrated in the figure, yielding a continuous piecewise linear function:

f(x)=\begin{cases} \hat{y}1&ifx\lex1\\ \hat{y}i+

x-xi
xi+1-xi

(\hat{y}i+1-\hat{y}i)&ifxi\lex\lexi+1\\ \hat{y}n&ifx\gexn \end{cases}

Centered isotonic regression

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

f(x)

is not only monotone but also smooth. The flat intervals are incompatible with

f(x)

'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.

Further reading

Notes and References

  1. 10.1007/BF02289694 . Kruskal, J. B. . 1964 . Nonmetric Multidimensional Scaling: A numerical method . Psychometrika . 29 . 2. 115–129 . 11709679 . Joseph Kruskal .
  2. Predicting good probabilities with supervised learning Proceedings of the 22nd international conference on Machine learning. 2020-07-07. dl.acm.org. 10.1145/1102351.1102430. 207158152 . EN.
  3. Stylianou. MP . Flournoy, N . Dose finding using the biased coin up-and-down design and isotonic regression . Biometrics . 2002 . 58 . 1 . 171–177 . 10.1111/j.0006-341x.2002.00171.x. 11890313 . 8743090 .
  4. Web site: Oron . Assaf . Package 'cir' . CRAN . R Foundation for Statistical Computing . 26 December 2020.
  5. Leeuw. Jan de. Hornik. Kurt. Mair. Patrick. Isotone Optimization in R: Pool-Adjacent-Violators Algorithm (PAVA) and Active Set Methods. Journal of Statistical Software. 2009. 32. 5. 1–24. 10.18637/jss.v032.i05. 1548-7660. free.
  6. Web site: Xu . Zhipeng . Sun. Chenkai . Karunakaran . Aman . Package UniIsoRegression . CRAN . R Foundation for Statistical Computing . 29 October 2021.
  7. Fabian. Pedregosa. etal. Scikit-learn:Machine learning in Python. Journal of Machine Learning Research. 2011. 12. 2825–2830. 2011JMLR...12.2825P. 1201.0490.
  8. Best. Michael J.. Chakravarti. Nilotpal. 1990. Active set algorithms for isotonic regression; A unifying framework. Mathematical Programming. 47. 1–3. 425–439. 10.1007/bf01580873. 31879613 . 0025-5610.
  9. Oron. AP . Flournoy, N . Centered Isotonic Regression: Point and Interval Estimation for Dose-Response Studies . Statistics in Biopharmaceutical Research . 2017 . 9 . 3 . 258–267 . 10.1080/19466315.2017.1286256. 1701.05964 . 88521189 .