Research Article | Open Access
Locally Most Powerful Test for the Random Coefficient Autoregressive Model
In this article, we study the problem of testing the constancy of the coefficient in a class of stationary first-order random coefficient autoregressive (RCAR(1)) model. We construct a new test statistic based on the locally most powerful-type (LMP) test. Under the null hypothesis, we derive the limiting distribution of the proposed test statistic. In the simulation, we compare the power between LMP test and empirical likelihood (EL) test and find that the accuracy of using LMP is 6.7%, 28.8%, and 26.1% higher than that of EL test under normal, student’s , and symmetric contamination errors, respectively. A real life data is given to illustrate the practical effectiveness of our test.
In time series analysis, autoregressive and linear processes are widely used due to their mathematical tractability. In fact, the autoregressive model has two prominently advantages: their estimation procedures are well established and the existence of stationary solutions are easily derived. Therefore, this model has been investigated in the field of signal detection and classification, psychometry, and biomedical engineering. See, for example, Hoque , Ogawa et al. , Subasi et al. , and Maleki et al. . The first-order autoregressive model (AR(1)) is defined aswhere is an independent and identically distributed (i.i.d.) random error sequence with probability density function , , , and independent of for all However, it has been found that a variety of data sets cannot be modelled precisely by assuming linearity. Financial data, for instance, present heteroscedasticity, and biological data suffer from random perturbations. To address this problem, Conlisk  considered a random coefficient autoregressive model defined as follows:where is a sequence of i.i.d random variables with and . is an i.i.d. random error sequence with mean zero and variance . The random variable is assumed to be independent of , which is independent of . Note that when , the RCAR(1) model reduces to the standard AR(1) model.
The RCAR(1) models have been widely applied in mathematical literature due to its strong application value in practice. For instance, Nicholls and Quinn [6–8] derived the least square (LS) estimates of the model parameter and showed that the LS estimates are strongly consistent and obey the central limit theorem. Brandt  restated the necessary and sufficient conditions for the existence of a strict stationarity and ergodicity solution in the RCAR(1) model. Wang and Ghosh  considered the Basyesian estimation method to estimate RCAR model parameter and explored the frequentist properties of the Bayes estimator. Wang et al.  obtained the asymptotic properties of the maximum likelihood estimators of these parameters in RCAR(1) model under the unit root assumption.
More recently, the problem of testing traditional AR(1) model against RCAR(1) model is thus of essential issue in this settings. This detection problem was firstly investigated by Nicholls and Quinn , where a Gaussian Lagrange multiplier test is derived for the problem. However, this likelihood ratio approach has several weaknesses, as the true value of the parameter under the null hypothesis lies on the boundary of the parameter space, the asymptotics will not be easily established. Ramanathan and Rajarshi  considered a non-Gaussian test method to handle the change problem for parameters in RCAR(1) case. Their signed rank test, however, require a symmetry assumption on the innovation density, which is highly unnatural in this context. Still for the RCAR(1) model, Lee  proposed the cumulative sum test for parameter change in RCAR(1) model. But, it detects a change only in a function of the parameter rather than the parameter themselves. Recently, Moreno and Romo  studied robust unit root test with autoregressive errors. The unit root test shows some size distortions and requires many estimates in the construction of test.
To deal with these drawbacks, we construct a locally most powerful-type (LMP) test for testing the constancy of parameters in the RCAR(1) model. The LMP test has been investigated by several authors. Rohatgi et al. , Chikkagoudar and Biradar , and Manik et al.  considered the LMP test for parameter constancy. The test has merit in that its calculation process is less cumbersome and it produces stable sizes especially when parameter nearby the true value. In contrast, the traditional tests mentioned above show some size distortions and require many estimates in the construction of tests, see Ramanathan and Rajarshi . In a general way, our test can conventionally discard correlation effects and enhance the performance of the test. In this paper, we illustrate how our proposed method can be implemented for finite samples under normal, student’s t, and symmetric contamination errors (see Huber  and Hettmansperger ). Through numerical simulation studies, we can see that our test has a stronger power in terms of maintaining the empirical level and power than the empirical likelihood (EL) test suggested by Zhao et al. .
The outline of this paper is organized as follows. In Section 2, we introduce our test statistic and derive its limiting distribution under the null hypothesis. Numerical simulations to evaluate the empirical size and power of our test technique are discussed in Section 3. Section 4 presents a real life data example to illustrate the superior of our methods. We provide brief concluding remarks in Conclusions. Appendix provides the proofs of the main results.
2. Methodology and Main Results
In this section, we will construct a test statistic to test whether is a constant. To achieve this task, we set up the null and alternative hypothesesIn what follows, we give our main results. Suppose that the time series data are generated from (2). Let be an i.i.d. sequence of random variables with common probability distribution ; is an i.i.d sequence of random variables with density function In this article, we regard as a given number; alternatively, if is a random variable, we shall consider only inferences conditionally on are fixed. Note that , , and are independent.
Next, we assume the following conditions to establish the asymptotic properties of the test statistic:
(C2) The distribution of is such that
(C3) The third and mixed derivatives of with respect to and are uniformly bounded on .
(C4) Differentiation thrice with respect to of under the integration is bounded.
It is easy to derive that is a Markov chain on with the following transition probabilities: The Markovity follows from (2) and the fact that is an i.i.d sequence. The conditional density is obtained by noting that conditional on Conditional on and is an i.i.d sequence with the density , hence, the probability density function of is given by . So, we get the result in the above equation.
Therefore, we can write down the likelihood function for RCAR(1) model:Furthermore, employing this spirit of LMP approach introduced by Manik et al. , we can obtain our test statisticwhereAnd the detailed procedures can be found in Appendix A.
Let denote vector of all unknown parameters of the RCAR(1) process. Hereafter, we use the notation to represent the maximum likelihood estimator (MLE) of . In addition, the actual test statistic can be obtained by replacing with their MLE It can be easily derived that is a zero mean martingale.
Before we state our main results, the following assumptions will be made:
(A.1) , for some
Then about the asymptotic distribution of , we have the following theorem.
Theorem 1. Let be a sequence of strictly stationary, ergodic, and -measurable solutions to equation (2) under conditions of and above . Then under , we have asymptotic normalityhere
(The expressions for , , and are derived in Appendix B).
In this section, we carry out some simulation studies to compare performances of the locally most powerful-type test and the empirical likelihood test in terms of empirical size and power. The empirical size and power for the two tests in Tables 1–6 are based on 1000 repetitions with the help of R software. Within each study, we set the initial values and employ the significance level at 0.05. Throughout this simulation, we used notation LMP for locally most powerful-type test by our algorithm, EL for empirical likelihood method.
3.1. Empirical Size
To calculate empirical sizes, we pay our attention to three kinds of model (1) defined as follows:
(N3) , The distribution function of -contamination iswhere is a fixed constant satisfying and is the distribution function of standard normal random variable,
Let us now describe how the simulated results are obtained. First of all, we use the model N1 to generate data when the 0.5, 1 and 0.3, 0.5, 0.7, 0.9. Secondly, we generate data from model N2 with the degrees of freedom 8, 10 and 0.3, 0.5, 0.7, 0.9. For model N1 and N2, we take the sample size 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, and 5000. Thirdly, we simulate samples from model N3 with the , , and 0.3, 0.5, 0.7, 0.9. For model N3, we set the sample size and . The empirical levels of three models are presented in Tables 1–3, respectively. As seen from Tables 1–3, the LMP test give similar results under normal, student’s t, and symmetric contamination errors. In addition, the LMP test produces sizes closer to the nominal significance level 0.05 quite satisfactorily, especially for larger sample sizes. However, the EL method has lower levels for each sample size, so one may make wrong decisions in tests based on them. Looking at three models results, we can conclude that our method has a greater effect than the EL test in terms of the empirical level.
3.2. Empirical Power
In order to investigate the empirical powers, we consider the alternatives under three versions of model (2):
(A3) , The distribution function of -contamination iswhere is a fixed constant satisfying and is the distribution function of standard normal random variable, ,
To calculate the empirical powers of the two tests, in the first, we generate samples from the model A1 in which the parameters 0.5, 1, 0.5, 1, and 0.5, 1. In the second setting, we simulate samples from model A2 with the degrees of freedom the parameters and For model A1 and A2, we take the sample size 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, and 5000. In the last case, we generate data from the model A3 in which the , , and the parameters , For model A3, we employ the sample size 100, 300, 500, 1000, and 5000. The empirical power of the above three models are summed up in Tables 4–6. In three cases, the power of two test statistics increase with the sample size, while our test produces relatively better powers than the EL test. Furthermore, both tests powers are close to 1 at the sample size . Overall, from these simulations, we conclude that the accuracy of using LMP is 6.7%, 28.8%, 26.1% higher than that of EL test under normal, student’s , and symmetric contamination errors, respectively. As anticipated, our finding shows that the LMP test is a functional tool to detect a parameter change for RCAR(1) model. Therefore, we recommend the LMP for practical use because its computation is not difficult and the overall performance is better than that EL under normal, student’s t, and symmetric contamination errors.
4. A Real Life Data Analysis
In this section, we illustrate how the LMP method can be applied to a practical application. This data consist of 78 monthly number of annulus growth rate of the import bill in Australia, starting in December 2010 and ending in May 2017. The data are available online at the CEInet Statistics Database site http://db.cei.cn/page/Default.aspx. The mean and variance of the data are found to be 0.2069 and 15.3347. The data are denoted as Figure 1 is the sample path plot for the real data ,
For such a process, the mean function of is constant and we may assume that the process mean is subtracted out to produce a process with zero mean. The plot of the sample path, autocorrelation function (ACF), and the partial autocorrelation function (PACF) for series are given in Figures 1 and 2, respectively. From Figure 1, we can see may come from a stationary autoregressive time series process. From Figure 2, we conclude that is from first-order autoregressive process. Moreover, we test the normality of the residual data according to the Normal Q-Q plot introduced by Henry C Thode . From Figure 3, we notice that the scatter points on the Normal Q-Q plot are close to the reference line, so the residual data can basically be seen as following the normal distribution. Hence, we derive that the model N1 would be more suitable to model these data.
From the time series plot given in Figure 1, the constancy of the parameter may be suspected, and, therefore, we are interested in testing the hypothesis of constancy of the coefficient parameter. We carry out the test for against The value of the test statistic in (8) turned out to be 2.1151, with value 0.0344, which indicates the rejection of the null hypothesis at 5% level of significance. Thus, in this case the RCAR(1) model would be much more appropriate as opposed to the AR(1) model.
In this article, we propose a locally most powerful-type test for testing the constancy of the random coefficient parameter in autoregressive model and derive their limiting null distributions under regularity conditions. It is clear from the applications that the coefficient need not remain constant throughout the time. Therefore, it is essential to have such a test conducted whenever the random variation is suspected. Through our simulation study and a real-data analysis, we demonstrate that our test succeeds and it performs better than the competitor. Finally, we anticipate that our locally most powerful-type test can be extended to other types of time series model.
A. Process of Establish the Test Statistic
In this Appendix A, we present the detailed steps to obtain the test statistics.
Proof. Therefore, we can get the likelihood function Now, the Taylor series expansion of around which is the mean of gives that Obviously, we can conclude that if That is to say, the distribution function of random variable is degenerated. Furthermore, we derive that By taking the derivative of with respect to , at , we have the following equation:Thus, the LMP test statistic has the formThis completes the proof.
B. Proof of Theorem 1
Proof of Theorem 1. In the following, we can write down the log-likelihood function under the null hypothesis: According to the maximum likelihood principle, the maximum likelihood estimate can be obtained by maximizing the log-likelihood function with respect to . Applying the Taylor series expansion to giveswhere is on the line segment between and , so . Under the null hypothesis, we can write Using the similar method as in the above, expanding around gives that with . The remainder term is since Under and , we conclude that . Therefore, Now the first term of (B.5) converges to with This is because Next, we can obtain the elements of Fisher information matrix Thus (B.5) is asymptotically equivalent to We present the following lemma recommended by Billingsley  to establish the asymptotic normality of the test statistic.
Lemma B.1. Under assumption of , we have as ,
(i) ; (ii) , where .
Proof. By the ergodic theorem, the first conclusion holds.
Now, let and is a sigma field. Note that It is easy to see that . Then, we have Thus is a martingale. We have shown , which means is uniformly integrable. By Theorem 1.1 of Billingsley , we have that as Hence, using the following version of Martingale Central Limit Theorem from Hall and Heyde , we have . The proof of Lemma B.1 is thus completed. □
Similarly, we can verify that is a martingale. By ergodic and stationary properties, we obtain that as , Therefore, .
In the same way, for any vector we haveBy the Cramer-Wold device, we obtain where Then we can make the conclusion thatwhere The proof of the theorem is completed.
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
This work is supported by National Natural Science Foundation of China (Nos. 11871028, 11731015, 11571051, and 11501241), Natural Science Foundation of Jilin Province (Nos. 20180101216JC, 20170101057JC, and 20150520053JH), Program for Changbaishan Scholars of Jilin Province (2015010), and Science and Technology Program of Jilin Educational Department during the “13th Five-Year” Plan Period (No. 2016316).
- A. Hoque, “Finite sample analysis of the first order autoregressive model,” Calcutta Statistical Association Bulletin, vol. 34, no. 1-2, pp. 51–63, 1985.
- T. Ogawa, H. Sonoda, S. Ishiwa, and Y. Shigeta, “An application of autoregressive model to pattern discrimination of brain electrical activity mapping,” Brain Topography, vol. 6, no. 1, pp. 3–11, 1992.
- A. Subasi, A. Alkan, E. Koklukaya, and M. K. Kiymik, “Wavelet neural network classification of EEG signals by using AR model with MLE preprocessing,” Journal of the International Neural Network Society, vol. 18, pp. 985–997, 2005.
- M. Maleki and A. R. Nematollahi, “Autoregressive models with mixture of scale mixtures of gaussian innovations,” Iranian Journal of Science & Technology, Transactions A: Science, vol. 41, no. 4, pp. 1099–1107, 2017.
- J. Conlisk, “Stability in a random coefficient model,” International Economic Review, vol. 15, no. 2, pp. 529–533, 1974.
- D. F. Nicholls and B. G. Quinn, “The estimation of random coefficient autoregressive models I,” Journal of Time Series Analysis, vol. 1, no. 1, pp. 37–46, 1980.
- D. F. Nicholls and B. G. Quinn, “The estimation of random coefficient autoregressive models II,” Journal of Time Series Analysis, vol. 2, no. 3, pp. 185–203, 1981.
- D. F. Nicholls and B. G. Quinn, Random Coefficient Autoregressive Models: An Introduction, Lecture Notes in Statistics, Springer-Verlag, New York, NY, USA, 1982.
- A. Brandt, “The stochastic equation Yn+1 = AnYn + Bn with stationary coefficients,” Advances in Applied Probability, vol. 18, no. 1, pp. 211–220, 1986.
- D. Wang and S. K. Ghosh, “Bayesian estimation and unit root tests for random coefficient autoregressive models,” Model Assisted Statistics and Applications, vol. 3, no. 4, pp. 281–295, 2008.
- D. Wang, S. K. Ghosh, and S. G. Pantula, “Maximum likelihood estimation and unit root test for first order random coefficient autoregressive models,” Journal of Statistical Theory and Practice, vol. 4, no. 2, pp. 261–278, 2010.
- T. V. Ramanathan and M. B. Rajarshi, “Rank tests for testing the randomness of autoregressive coefficients,” Statistics & Probability Letters, vol. 21, no. 2, pp. 115–120, 1994.
- S. Lee, J. Ha, O. Na, and S. Na, “The cusum test for parameter change in time series models,” Scandinavian Journal of Statistics, vol. 30, no. 4, pp. 781–796, 2003.
- M. Moreno and J. Romo, “Robust unit root tests with autoregressive errors,” Communications in Statistics—Theory and Methods, vol. 45, no. 20, pp. 5997–6021, 2016.
- V. K. Rohatgi, A. K. Md Ehsanes Sleh, R. Ahluwalia, and P. Ji, “Null distribution of locally most powerful tests for the two sample problem when the combined sample is type II censored,” Communications in Statistics - Theory and Methods, vol. 19, pp. 2337–2355, 1992.
- M. S. Chikkagoudar and B. S. Biradar, “Locally most powerful rank tests for comparison of two failure rates based on multiple type-ii censored data,” Communications in Statistics: Theory and Methods, vol. 41, no. 23, pp. 4315–4331, 2012.
- A. Manik, N. Balakrishna, and T. V. Ramanathan, “Testing the constancy of the thinning parameter in a random coefficient integer autoregressive model,” Statistical Papers, pp. 1–25, 2017.
- P. J. Huber, Robust Statistics, John Wiley & Sons, New York, NY, USA, 1981.
- T. P. Hettmansperger, Statistical Inference Based on Ranks, John Wiley & Sons, Inc., New York, NY, USA, 1984.
- Z.-W. Zhao, D.-H. Wang, and C.-X. Peng, “Coefficient constancy test in generalized random coefficient autoregressive model,” Applied Mathematics and Computation, vol. 219, no. 20, pp. 10283–10292, 2013.
- H. C. Thode, Testing for Normality, CRC Press, New York, NY, USA, 2002.
- P. Billingsley, “The lindeberg-Lvy theorem for martingales,” Proceedings of the American Mathematical Society, vol. 12, no. 1, pp. 788–792, 1961.
- P. Hall and C. C. Heyde, Martingale Limit Theory and Its Application, Academic Press, New York, NY, USA, 1980.
Copyright © 2019 Li Bi et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.