Least angle regression for time series analysis