| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Econometrics Toolbox |
| Contents | Index |
| Learn more about Econometrics Toolbox |
[h,pValue,stat,cValue] = archtest(Residuals,Lags,Alpha)
[h,pValue,stat,cValue] = archtest(Residuals,Lags,Alpha) tests the null hypothesis that a time series of sample residuals consists of independent identically distributed (i.i.d.) Gaussian disturbances; that is, that no ARCH effects exist.
Given sample residuals obtained from a curve fit (for example, a regression model), archtest tests for the presence of Mth order ARCH effects. It does so by regressing the squared residuals on a constant and the lagged values of the previous M squared residuals.
Under the null hypothesis, the asymptotic test statistic, T(R2), where:
T is the number of squared residuals included in the regression.
R2 is the sample multiple correlation coefficient.
is asymptotically chi-square distributed with M degrees of freedom.
When testing for ARCH effects, a GARCH(P,Q) process is locally equivalent to an ARCH(P+Q) process.
Time series column vector of sample residuals obtained from a curve fit, which archtest examines for the presence of ARCH effects. The last row contains the most recent observation. | |
Vector of positive integers indicating the lags of the squared sample residuals included in the ARCH test statistic. If specified, each lag should be less than the length of Residuals. If Lags = [] or is unspecified, the default is 1 lag (that is, first-order ARCH). | |
Significance levels of the hypothesis test. Alpha can be a scalar applied to all lags in Lags, or a vector of significance levels the same length as Lags. If Alpha = [] or is unspecified, the default is 0.05. For all elements, α of Alpha, 0 < α < 1. |
Boolean decision vector. 0 indicates acceptance of the null hypothesis that no ARCH effects exist; that is, there is homoscedasticity at the corresponding element of Lags. 1 indicates rejection of the null hypothesis. The length of h is the same as the length of Lags. | |
Vector of probability values of the test statistics. | |
Vector of ARCH test statistics for each lag in Lags. | |
Vector of critical values of the chi-square distribution for comparison with the corresponding element of stat. |
Create a time series column vector of 100 (synthetic) residuals, then test for the first, second, and fourth order ARCH effects at the 10 percent significance level:
strm = RandStream('mt19937ar'); % reproducible
RandStream.setDefaultStream(strm);
residuals = randn(100, 1); % 100 Gaussian deviates ~ N(0, 1)
[h, P, Stat, CV] = archtest(residuals, [1 2 4]', 0.10);
[h, P, Stat, CV]
ans =
0 0.1394 2.1848 2.7055
0 0.3065 2.3650 4.6052
0 0.1591 6.5923 7.7794See Example: Using the Default Model for another example.
![]() | aicbic | autocorr | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |