With this question I can input data and I can find the linear regression line - but I am totally failing to get the last part - predicting how many hats will be sold in $2017$. How do you do it. Thanks for your help.
At a shop, these numbers of hats have been sold the last eight years.
A good way to do this is through Excel. We have your data:
We can plot this data and retreive a linear function:
$$y = 29.655x - 58678$$
We can either use the 'FORECAST' function or manually enter 2017 into the $x$ value. Therefore,