Degrees-of-freedom penalized piecewise regression

Abstract Many popular piecewise regression models rely on minimizing a cost function on the model fit with a linear penalty on the number of segments. However, this penalty does not take into account varying complexities of the model functions on the segments potentially leading to overfitting when models with varying complexities, such as polynomials of different degrees, are used. In this work, we enhance on this approach by instead using a penalty on the sum of the degrees of freedom over all segments, called degrees-of-freedom penalized piecewise regression. We show that the solutions of the resulting minimization problem are unique for almost all input data in a least squares setting. We develop a fast algorithm that does not only compute a minimizer but also determines an optimal hyperparameter—in the sense of rolling cross validation with the one standard error rule—exactly. This eliminates manual hyperparameter selection. Our method supports optional user parameters for incorporating domain knowledge. We provide an open-source Python/Rust code for the piecewise polynomial least squares case which can be extended to further models. We demonstrate the practical utility through a simulation study and by applications to real data. A constrained variant of the proposed method gives state-of-the-art results in the Turing benchmark for unsupervised changepoint detection.

Authors

Institutions

Publication Details

Journal
Information and Inference A Journal of the IMA
Published
2025-01-15
DOI
https://doi.org/10.1093/imaiai/iaaf002
Primary Topic
Statistical Methods and Inference
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Degrees-of-freedom penalized piecewise regression

Martin Storath, Andreas Weinmann, Stefan Volz
Information and Inference A Journal of the IMA
Statistical Methods and Inference
article

Degrees-of-freedom penalized piecewise regression

Martin Storath, Andreas Weinmann, Stefan Volz
article en

Abstract

Abstract Many popular piecewise regression models rely on minimizing a cost function on the model fit with a linear penalty on the number of segments. However, this penalty does not take into account varying complexities of the model functions on the segments potentially leading to overfitting when models with varying complexities, such as polynomials of different degrees, are used. In this work, we enhance on this approach by instead using a penalty on the sum of the degrees of freedom over all segments, called degrees-of-freedom penalized piecewise regression. We show that the solutions of the resulting minimization problem are unique for almost all input data in a least squares setting. We develop a fast algorithm that does not only compute a minimizer but also determines an optimal hyperparameter—in the sense of rolling cross validation with the one standard error rule—exactly. This eliminates manual hyperparameter selection. Our method supports optional user parameters for incorporating domain knowledge. We provide an open-source Python/Rust code for the piecewise polynomial least squares case which can be extended to further models. We demonstrate the practical utility through a simulation study and by applications to real data. A constrained variant of the proposed method gives state-of-the-art results in the Turing benchmark for unsupervised changepoint detection.

Information and Inference A Journal of the IMAVol. 14(1)
Darmstadt University of Applied Sciences (DE), European Union (BE), Technical University of Applied Sciences Würzburg-Schweinfurt (DE), Computer Algorithms for Medicine (AT)
Peace, Justice and strong institutions
Openalex Percentile: Top 80%
Statistical Methods and Inference
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Degrees-of-freedom penalized piecewise regression — Martin Storath, Andreas Weinmann, et al. · Information and Inference A Journal of the IMA (2025) | TGRS Research Map | TGRS