Estimates missing values in a time series collected with equal spacing. Missing values can be replaced by these estimates prior to fitting a time series using the ARMA
class.
For a list of all members of this type, see ARMAEstimateMissing Members.
System.Object
Imsl.Stat.ARMAEstimateMissing
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Traditional time series analysis as described by Box, Jenkins and Reinsel (1994) requires the observations be made at equidistant time points where . When observations are missing, ARMA
requires that they be replaced with suitable estimates. Class ARMAEstimateMissing
offers 4 methods for estimating missing values: Median, CubicSpline, AR_1,
and AR_p
The centering method Median
estimates the missing observations in a gap by the median of the last four time series values before and the first four values after the gap. If not enough values are available before or after the gap then the number is reduced accordingly. This method is very fast and simple, but its use is limited to stationary ergodic series without outliers and level shifts.
Centering method CubicSpline
uses a cubic spline interpolation method to estimate missing values. Here the interpolation is again done over the last four time series values before and the first four values after the gap. The missing values are estimated by the resulting interpolant. This method gives smooth transitions across missing values.
Method AR_1
assumes that the time series before the gap can be approximated using an AR(1) process. If the last observation prior to the gap is made at time point then this method uses values at to compute the one-step-ahead forecast at origin . This value is used to estimate the missing value at time point . If the value at is also missing then the values at time points are used to recompute the AR(1) model, and then estimate the value at and so on. The coefficient in the AR(1) model is computed internally by the method of least squares from class ARMA.
Finally, method AR_p
uses an AR(p) model to estimate missing values using a one-step-ahead forecast similar to method AR_1
. First, class ARAutoUnivariate
, is applied to the time series values just prior to the missing values to determine the optimum p from the set of possible values and to compute the parameters of the resulting AR(p) model. The parameters are estimated by the least squares method based on Householder transformations as described in Kitagawa and Akaike (1978). Denoting the mean of the series by the one-step-ahead forecast at origin , can be computed by the formula
This value is used as an estimate for the missing value at . The procedure starting with ARAutoUnivariate
is then repeated for every further missing value in the gap. All four estimation methods treat gaps of missing values in increasing time order.
Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll)
ARMAEstimateMissing Members | Imsl.Stat Namespace | Example