Degrees-of-freedom penalized piecewise regression

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Volz, Stefan, Storath, Martin, Weinmann, Andreas
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909525017100288
author Volz, Stefan
Storath, Martin
Weinmann, Andreas
author_facet Volz, Stefan
Storath, Martin
Weinmann, Andreas
contents 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 (DofPPR). 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 which 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.
format Preprint
id arxiv_https___arxiv_org_abs_2312_16512
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Degrees-of-freedom penalized piecewise regression
Volz, Stefan
Storath, Martin
Weinmann, Andreas
Methodology
Numerical Analysis
65K05 (Primary) 90C26 (Secondary) 62G05
G.1.2; G.1.6
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 (DofPPR). 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 which 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.
title Degrees-of-freedom penalized piecewise regression
topic Methodology
Numerical Analysis
65K05 (Primary) 90C26 (Secondary) 62G05
G.1.2; G.1.6
url https://arxiv.org/abs/2312.16512