1 Attachment(s)
Fitting linear models on time series
Hello to the dear forum.
I'm trying to describe a time-series using multiple linear models.
Attachment 33531
My initial approach (result shown in the image above) was to slice the data into multiple chunks using a greedy-algorithm that searches for the best r-value (or standard error). In a first glance it yields nice results, but looking more carefully into it, it poorly handles many cases (notably around x=700).
I'm looking for some advice on how to tackle this problem. I reckon the only challenge is the segmentation. I can try non-greedy approaches, perhaps dynamic programming. I also thought about trying to fit an high order polynomial curve, calculate it's derivative and use it's roots as segmentation indices... What do you think?
If anyone wants to try, here's a link to the data: http://pastebin.com/wYGLiHav
Thank you!
Re: Fitting linear models on time series
the most important thing is, what do you want to achieve ? are you interested in forecasting ? decimation ? clustering ? etc ...
1 Attachment(s)
Re: Fitting linear models on time series
It has many potential uses, from being a visual aid tool to feature extraction for further computations (trend correlations, momentum, etc.)
Here's a better result than the one before (requires filtering for non-significant results). I split segments where the (max) fitting error is greater than x * standard error.
Attachment 33533
I found this paper: http://www.cis.umac.mo/~fstasp/paper/icsse2011.pdf - it has some nice ideas (=I think my initial approach wasn't good enough). Still looking for ideas/tips/etc. :)