Linear Time Regression: Predicted Value

Abbreviation: LinTimeReg PredValue
Category: Regression

Input Parameters:

Name Range Default
Time Series Close
Regression Periods Int >= 3 10
Periods Ahead Integer 1

 
Calculation:

YIntercept + Slope(Y, n) * Periods Ahead

where
YIntercept = mean(Y) – Slope(Y, n) * mean(X)

mean(X) = mean average of X over the last n periods
mean(Y) = mean average of Y over the last n periods

X = Period Number
Y = Time Series
n = Regression Periods

Slope represents Linear Time Regression: Coefficient of Regression (Slope)

 
Discussion:

Computes the time series value predicted by the linear regression line, where the prediction is for the specified number of periods into the future (or past if periods ahead is less than 0). Note that the linear regression line is the straight line that provides the best fit to the time series points (y axis) and their corresponding time period (x axis) over the last n periods.
 

Was this article helpful?

Related Articles