1
$\begingroup$

Reading online and following this example from scipy I understand OLS can be used to find data between gaps in a sequence (interpolate?) but I already have a complete sequence and want to predict the future of it (extrapolate, i think). Can OLS be used for that?

$\endgroup$
2
$\begingroup$

Ordinary least squares (OLS) is an optimization method to find the best parameter estimates for linear regression, gradient descent is another.

Regardless of the specific optimization method, linear regression is not appropriate for predicting sequence data. Generally, time series methods are used to predict sequence data.

| improve this answer | |
$\endgroup$

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.