Fast Min-ϵ Segmented Regression using Constant-Time Segment Merging
Ansgar Lößer, Max Schlecht, Florian Schintke, Joel Witzke, Matthias Weidlich, Björn Scheuermann
Abstract
Segmented regression is a statistical method that approximates a function f by a piecewise function f using noisy data samples. Min-ϵ approaches aim to reduce the regression function's mean squared error (MSE) for a given number of k segments. An optimal solution for min-ϵ segmented regression is found in O(n 2 ) time (Bai & Perron, 1998; Yamamoto & Perron, 2013) for n samples. For large datasets, current heuristics improve time complexity to O(n log n) (Acharya et al., 2016) but can result in large errors, especially when exactly k segments are used. We present a method for min-ϵ segmented regression that combines the scalability of top existing heuristic solutions with a statistical efficiency similar to the optimal solution. This is achieved by using a new method to merge an initial set of segments using precomputed matrices from samples, allowing both merging and error calculation in constant time. Our approach, using the same samples and parameter k, produces segments with up to 1,000× lower MSE compared to Acharya et al. (2016) in about 100× less runtime on datasets over 10 4 samples.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on1
Related papers
- Piecewise Constant and Linear Regression Trees: An Optimal Dynamic Programming ApproachMim van den Bos, Jacobus G. M. van der Linden, Emir DemirovicICML 2024 · 6 citations
- Sim-Piece: Highly Accurate Piecewise Linear Approximation through Similar Segment MergingXenophon Kitsios, Panagiotis Liakos, Katia Papakonstantinopoulou, Yannis KotidisVLDB 2023 · 20 citations
- Piecewise Linear Regression via a Difference of Convex FunctionsAli Siahkamari, Aditya Gangrade, Brian Kulis, Venkatesh SaligramaICML 2020 · 21 citations
- SURF: A Simple, Universal, Robust, Fast Distribution Learning AlgorithmYi Hao, Ayush Jain, Alon Orlitsky, Vaishakh RavindrakumarNeurIPS 2020 · 6 citations
- Efficient Truncated Linear Regression with Unknown Noise VarianceConstantinos Daskalakis, Patroklos Stefanou, Rui Yao, Emmanouil ZampetakisNeurIPS 2021 · 15 citations
