Below is the contents of a data series collection and the return values of LinRegSlope, LinRegIntercept and LinReg calculated on this collection:
myDataSeries[0]=5 myDataSeries[1]=4 myDataSeries[2]=3 myDataSeries[3]=2 myDataSeries[4]=1 LinRegSlope(myDataSeries,myDataSeries.Count)=1 LinRegIntercept(myDataSeries,myDataSeries.Count)=1 LinReg(myDataSeries, myDataSeries.Count)=2 LinReg(myDataSeries,3)=2,5
But, I can't figure out why the predicted value is 2 when the regression is plotted using all five values. And why is it 2.5 when it is plotted based on the previous three values? I would think it should be 5 in both cases.
Could you help with this please?
Thank you,
Evgeny.

Comment