calcForecastError function

Calculate the forecast accuracy of series of indexes