Home   >   User Resources   >   Online Help   >   apaCone.Polynomial
 

 

Function index Version 3.0.0

apaCone.Polynomial(TimeSeries, Order, StartIdx, EndIdx, nForecasts, Sigma1, Sigma2, IsStacked)

Excel=apaCone.Polynomial(TimeSeries, Order, StartIdx, EndIdx, nForecasts, Sigma1, Sigma2, IsStacked)

Result

Calculates forecast intervals (cone) for a polynomial trend fitted to a time series.

Syntax

TimeSeries: r x 1 data vector containing a time series

Order: order of the polynomial

StartIdx: index of the beginning observation

EndIdx: index of the ending observation

nForecasts: number of out-of-sample forecasts

Sigma1: first confidence level, defined as number of standard deviations away from the mean

Sigma2: second confidence level, defined as number of standard deviations away from the mean

IsStacked: TRUE to return the relative differences between the confidence levels (e.g. for stacked area charts), FALSE to return absolute levels

Remarks

The residual volatility is the sample standard deviation of the residuals (denominator n − 1).