Manuals/calci/FORECAST

From ZCubes Wiki
Jump to navigation Jump to search
FORECAST(n,y,x)


  • is the data point .
  • is the dependent array of data.
  • is the independent array of data.


Description

  • This function gives the predicted value of the dependent variable for the specific value, x, of the independent variable by using a least squares linear regression to predict y values from x values.
  • In is the data point to predict a value. is the dependent array of data to predict the -value and is the independent array of data to predict the -value.
  • The formula for is
  • where and .
  • Here and are the sample means of x and y.
  • This function will give the result as error when
 1. Any one of the value is nonnumeric.
 2. The values of x and y are empty or contain a different number of data points.
 3. The variance of x is zero.