English

Efficient Second-Order Shape-Constrained Function Fitting

Data Structures and Algorithms 2019-05-30 v2 Machine Learning

Abstract

We give an algorithm to compute a one-dimensional shape-constrained function that best fits given data in weighted-LL_{\infty} norm. We give a single algorithm that works for a variety of commonly studied shape constraints including monotonicity, Lipschitz-continuity and convexity, and more generally, any shape constraint expressible by bounds on first- and/or second-order differences. Our algorithm computes an approximation with additive error ε\varepsilon in O(nlogUε)O\left(n \log \frac{U}{\varepsilon} \right) time, where UU captures the range of input values. We also give a simple greedy algorithm that runs in O(n)O(n) time for the special case of unweighted LL_{\infty} convex regression. These are the first (near-)linear-time algorithms for second-order-constrained function fitting. To achieve these results, we use a novel geometric interpretation of the underlying dynamic programming problem. We further show that a generalization of the corresponding problems to directed acyclic graphs (DAGs) is as difficult as linear programming.

Keywords

Cite

@article{arxiv.1905.02149,
  title  = {Efficient Second-Order Shape-Constrained Function Fitting},
  author = {David Durfee and Yu Gao and Anup B. Rao and Sebastian Wild},
  journal= {arXiv preprint arXiv:1905.02149},
  year   = {2019}
}

Comments

accepted for WADS 2019; (v2 fixes various typos)