Suppose you want to fit a regression model. You have a data set with multiple attributes. What would be the advantages of segmenting the data set and fitting a regression model to each of the segments?

  • $\begingroup$ You may want to clarify whether you mean segmenting according to some variable(s), e.g. splitting the data according to high or low values of X, or segmenting at random? I interpreted it as the former, but evidently it's possible to interpret it as the latter. $\endgroup$ – Ian_Fin Sep 22 '16 at 14:45
  • $\begingroup$ I consider prevention of overfitting an advantage, yet my hasty answer lacked both literature as well as explanation, which is why i deleted it. $\endgroup$ – Nikolas Rieble Sep 22 '16 at 15:31

By "fitting a regression model to each of the segments", I suppose you mean trying to do something like a Piecewise Linear Representation of a long time-series, as described in this paper: Segmenting Time Series: A Survey and Novel Approach. As quoted straight from the paper:

...this representation makes the storage, transmission and computation of the data more efficient. Specifically, in the context of data mining, the piecewise linear representation has been used to:

  • Support fast exact similarly search [13].
  • Support novel distance measures for time series, including “fuzzy queries” [27, 28], weighted queries [15], multiresolution queries [31, 18], dynamic time warping [22] and relevance feedback [14].
  • Support concurrent mining of text and time series [17].
  • Support novel clustering and classification algorithms [15].
  • Support change point detection [29, 8].

In summary, it can be seen as a type of data preprocessing so you can train some kind of machine learning algorithm more easily/accurately (such as your regression model) or if you prefer, as a type of feature extraction.

  • $\begingroup$ +1 but, I think OP is trying to build multiple models for each subset of data, instead of a piecewise linear funciton $\endgroup$ – Haitao Du Apr 10 '17 at 13:58

By doing "segmentation" and build multiple models for each subset of data, you are essentially increase the model complexity, and may lead over fitting (So, it is not guaranteed to have advantage, but may also have disadvantage.)

I would suggest you to check the Bias-Variance trade off and understand if you are under fitting or over fitting.

  • If you are underfitting, "segmentation" and build multiple models for each subset of data, will help you. By increase the complexity of the model.

  • If you are over fitting, "segmentation" and build multiple models for each subset of data, will make things even worse.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.