LinearRegressio model sequential implementation