Nonparametric regression after Davies, Kovac & Meise (2009): the simplest functions consistent with the data.
tautfit implements the approach to nonparametric regression of Davies, Kovac & Meise (2009). Instead of choosing a bandwidth or a penalty, it first describes every function that is consistent with the data, then picks the simplest of them.
A function g is consistent with the data when no interval of the data shows a systematic residual: for every interval I in a multiresolution family (λ = 2 gives dyadic blocks of 1, 2, 4, … consecutive x values), |ΣI(y − g)| / √|I| ≤ c, with c = σ·√(τ·log n) (eqs. 6–7). σ is estimated from the data, and τ = 3 gives about 95% coverage for large n, or τ can be calibrated by Monte Carlo for the actual n. The residual view under the chart shows every interval’s |w(I)|/c; cells above 1 are violations. Intervals are intervals of x, so tied observations are never separated.
The LP fits can also be constrained to be constant, linear, decreasing, increasing, convex or concave: the simplest function in Aₙ with that shape. If there is none, the readouts give the smallest τ that would admit one and how much of the time Aₙ at that τ covers the truth, which is a test of the shape.
Aₙ alone does not bound f at a point, but with a shape assumption it does: monotone, piecewise monotone, convex/concave, piecewise convex, or |f″| ≤ K (§5). The fast bounds take O(n log n); exact LP bounds (2n linear programs, n ≤ 300) can be drawn for comparison. A band that is empty somewhere means the assumption is inconsistent with the data. Their coverage rests on Aₙ holding for all intervals, so the readout says which τ supports it.
A few formulas in the arXiv version needed corrections (for example, the KKT conditions of the taut string, the convex lower bound and the smoothness bounds), and the coverage claim of eq. 11 holds only marginally for all intervals. The project plan lists each issue with the evidence: PLAN.md, section 2.
P. L. Davies, A. Kovac, M. Meise (2009). Nonparametric regression, confidence regions and regularization. Ann. Statist. 37(5B):2597–2625. arXiv:0711.0690. LP solver: HiGHS (MIT license), compiled to WebAssembly.