I need to be able to create a python function for forecasting based on linear regression model with confidence bands on time-series data:
The function needs to take an a
Note: this is not a detailed canonical answer, but references to available libraries that apply to your domain (statistical models).
For python, you could use:
scipy.stats.linregress
)sklearn
: here is the documentation.There are some good articles:
statsmodels
and sklearn
.