Click or drag to resize
LackOfFit Class
Performs lack-of-fit test for a univariate time series or transfer function given the appropriate correlation function.
Inheritance Hierarchy
SystemObject
  Imsl.StatLackOfFit

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
[SerializableAttribute]
public class LackOfFit

The LackOfFit type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCompute(Int32, Double, Int32, Int32)
Performs lack-of-fit test for a univariate time series or transfer function given the appropriate correlation function using a minimum lag of 1.
Public methodStatic memberCompute(Int32, Double, Int32, Int32, Int32)
Performs lack-of-fit test for a univariate time series or transfer function given the appropriate correlation function.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

LackOfFit may be used to diagnose lack of fit in both ARMA and transfer function models. Typical arguments for these situations are:

ModellagMinlagMaxnpFree
ARMA (p, q)1\sqrt{
                       \texttt{nObservations}}p + q
Transfer function0\sqrt{
                        \texttt{nObservations}}r + s

LackOfFit performs a portmanteau lack of fit test for a time series or transfer function containing nObservations observations given the appropriate sample correlation function \hat{\rho}(k) for k = L, L+1,...,K where L = lagMin and K = lagMax.

The basic form of the test statistic Q is

Q=n(n+2)\sum_{k=L}^{K}(n-k)^{-1}\hat{\rho}(k)

with L = 1 if \hat{\rho}(k) is an autocorrelation function. Given that the model is adequate, Q has a chi-squared distribution with K-L+1-m
            degrees of freedom where m = npFree is the number of parameters estimated in the model. If the mean of the time series is estimated, Woodfield (1990) recommends not including this in the count of the parameters estimated in the model. Thus, for an ARMA(p, q) model set npFree = p + q regardless of whether the mean is estimated or not. The original derivation for time series models is due to Box and Pierce (1970) with the above modified version discussed by Ljung and Box (1978). The extension of the test to transfer function models is discussed by Box and Jenkins (1976, pages 394-395).

See Also

Reference

Other Resources