Question: Best fitting line for discrete data

I appreciate your help forfinding the best fitting line for a discrete series.


Starting with 1978 as base year and counting by two's the five year overage global temperature. where 

the temperature is given by the data : x[0],...,x[12] 

1) Find the best  fitting line : x[n+1]=a*x[n]+b
2) Assuming we can extrapolate, find the predicted value x[30]


Many thanks for your help.


Please Wait...