Next Article in Journal
Application of Impulsive SIRQ Models for the Development of Forecasting and Cyberattack Mitigation Scenarios
Next Article in Special Issue
A Common Generalization of the (a,b)- and (s,t)-Transformations of Probability Measures
Previous Article in Journal
Standardized Coefficients of Multiple Regression Beyond One and Multicollinearity Diagnostics
Previous Article in Special Issue
A New Index for Quantifying the Statistical Difference Between Two Probability Distributions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

ARIMA Model Selection and Prediction Intervals

by
W. A. Dhanushka M. Welagedara
1,
Mulubrhan G. Haile
2 and
David J. Olive
3,*
1
Digital Learning & Information Technology Department, Coker University, Hartsville, SC 29550, USA
2
Mathematics and Physics Department, Westminster College, Fulton, MO 65251, USA
3
School of Mathematical & Statistical Sciences, Southern Illinois University, Carbondale, IL 62901, USA
*
Author to whom correspondence should be addressed.
Axioms 2026, 15(3), 228; https://doi.org/10.3390/axioms15030228
Submission received: 31 January 2026 / Revised: 6 March 2026 / Accepted: 13 March 2026 / Published: 19 March 2026
(This article belongs to the Special Issue Probability Theory and Stochastic Processes: Theory and Applications)

Abstract

Inference after model selection is a very important problem. Model selection algorithms for ARIMA time series, with criteria such as AIC and BIC, tend to select an inconsistent model with positive probability, making data-splitting inference for testing and confidence intervals unreliable. One technique was fairly reliable for sample sizes greater than 600, and a modification also worked. Model selection is often useful for prediction, since the selected submodel tends to have fitted values and residuals that are highly correlated with those of the full model. A few prediction intervals perform fairly well even after model selection. A useful technique for handling outliers is to replace the outliers with missing values.
MSC:
62M10; 62M20

1. Introduction

This section reviews some time series models and model selection for ARIMA time series models. Section 2.1 shows that model selection algorithms for ARIMA time series, with criteria such as AIC and BIC, tend to select an inconsistent model with positive probability. There is one method that considers exactly one consistent model, and the probability that the consistent model is selected goes to one as the sample size n . This procedure will be used to develop large sample 100 ( 1 δ ) % prediction intervals for Y n + h given a time series Y 1 , , Y n . In simulations, a commonly used prediction interval performs well even when inconsistent models are chosen. Some heuristics for this simulated performance will be given.
We will use the R software notation and write a moving average parameter θ with a positive sign. Many references and software programs write the model with a negative sign for the moving-average parameters. A moving-average MA( q ) times series is
Y t = τ + θ 1 e t 1 + θ 2 e t 2 + + θ q e t q + e t
where θ q 0 . An autoregressive AR( p ) times series is
Y t = τ + ϕ 1 Y t 1 + ϕ 2 Y t 2 + + ϕ p Y t p + e t
where ϕ p 0 . An autoregressive moving-average ARMA( p , q ) times series is
Y t = τ + ϕ 1 Y t 1 + ϕ 2 Y t 2 + + ϕ p Y t p + θ 1 e t 1 + θ 2 e t 2 + + θ q e t q + e t
where θ q 0 and ϕ p 0 . A time series X t follows an ARIMA( p , d , q ) model with known d if the differenced time series model Y t follows an ARMA( p , q ) model. See Box and Jenkins (1976) [1] for more on these models. We will assume that the e t are independent and identically distributed (iid) with zero mean and variance σ 2 . The observed time series is { Y t } = Y 1 , , Y n .
We usually want the ARMA( p , q ) model to be weakly stationary, causal, and invertible. Let Z t = Y t μ where μ = E ( Y t ) if { Y t } is weakly stationary. Then, the causal property implies that Z t = j = 1 ψ j e t j + e t , which is an MA( ) representation, where the ψ j 0 rapidly as j . Invertibility implies that Z t = j = 1 χ j Z t j + e t , which is an AR( ) representation, where the χ j 0 rapidly as j . We will make the usual assumption that the AR() and MA() parameters are square summable. Thus, if the ARMA( p , q ) model is weakly stationary, causal, and invertible, then Y t depends almost entirely on nearby lags of Y t and e t , not on the distant past.
This paper considers model selection where it is known that the model is ARMA, AR, or MA, but the order needs to be determined. For ARMA model selection, let the full model F be an ARMA( p m a x , q m a x ) model. For AR model selection q m a x = 0 , while for MA model selection p m a x = 0 . Granger and Newbold (1977, p. 178) [2] suggested using p m a x = 13 for AR model selection, and we may use p m a x = q m a x = 5 for ARMA model selection, and q m a x = 13 for MA model selection. For ARMA model selection, there are J = ( p m a x + 1 ) ( q m a x + 1 ) ARMA( p , q ) submodels where p ranges from 0 to p m a x and q ranges from 0 to q m a x . For AR and MA model selection, there are J = p m a x + 1 and J = q m a x + 1 submodels, respectively. Assume the true (optimal) model is an ARMA( p S , q S ) model with p S p m a x and q S q m a x . Let the selected model I be an ARMA( p I , q I ) model. Then, the model underfits unless p I p S and q I q S .
More notation is needed for model selection. Let the full model be the AR( p m a x ) , MA( q m a x ), or ARMA( p m a x , q m a x ) model. Let β be a b × 1 vector. For the ARMA model selection, let β = ( ϕ T , θ T ) T = ( ϕ 1 , , ϕ p m a x , θ 1 , , θ q m a x ) T with b = p m a x + q m a x . For AR model selection, let β = ( ϕ 1 , , ϕ p m a x ) T with b = p m a x , and for MA model selection, let β = ( θ 1 , , θ q m a x ) T with b = q m a x . Hence, β = ( β 1 , , β p m a x , β p m a x + 1 , , β p m a x + q m a x ) T . Let S = { 1 , , p S , p m a x + 1 , , p m a x + q S } index the true ARMA( p S , q S ) model. If S = is the empty set, then the time series random variables Y 1 , , Y n are iid. Let I = { 1 , , p I , p m a x + 1 , , p m a x + q I } index the ARMA( p I , q I ) model. Let β ^ I , 0 be a b × 1 estimator of β which is a obtained by padding β ^ I with zeroes. If β I = ( ϕ 1 , , ϕ p I , θ 1 , , θ q I ) T , then β ^ I , 0 = ( ϕ ^ 1 , , ϕ ^ p I , 0 , , 0 , θ ^ 1 , , θ ^ q I , 0 , , 0 ) T . If q I = 0 , then β ^ I , 0 = ( ϕ ^ 1 , , ϕ ^ p I , 0 , , 0 ) T . If p I = 0 then β ^ I , 0 = ( 0 , , 0 , θ ^ 1 , , θ ^ q I , 0 , , 0 ) T . If I = with p I = q I = 0 , then define β ^ I , 0 = 0 , the b × 1 vector of zeroes. The submodel I underfits unless S I .
For example, if p m a x = q m a x = 5 , then S = { 1 , 6 , 7 } corresponds to the ARMA(1,2) model, and I = { 1 , 6 , 7 , 8 } corresponds to the ARMA(1,3) model. Then, β ^ S = ( ϕ ^ 1 , θ ^ 1 , θ ^ 2 ) T , β ^ S , 0 = ( ϕ ^ 1 , 0 , 0 , 0 , 0 , θ ^ 1 , θ ^ 2 , 0 , 0 , 0 ) T , and β ^ I , 0 = ( ϕ ^ 1 , 0 , 0 , 0 , 0 , θ ^ 1 , θ ^ 2 , θ ^ 3 , 0 , 0 ) T .
The model I m i n corresponds to the model that minimizes the AIC, A I C C , or BIC criterion. Then the model selection estimator β ^ M S = β ^ I m i n , 0 . Haile and Olive (2024) [3] gave some large-sample theory for β ^ M S .
For AR model selection, the probability of underfitting goes to 0 if the Akaike (1973) [4] AIC, Schwartz (1978) [5] BIC, or Hurvich and Tsai (1989) [6] A I C C criterion are used. See Hannan and Quinn (1979) [7] and Shibata (1976) [8]. Although Hannan (1980)  [9], Hannan and Kavalieris (1984) [10], and Huang et al. (2022) [11] gave similar results for ARMA models, in simulations, BIC did not appear to select a consistent model, with probability approaching one. AIC and A I C C appear to fail due to the following Theorem 1 for the Gaussian maximum likelihood estimator (GMLE).
Let the r i be the m (one step ahead) residuals, where often m = n or m = n p . Under regularity conditions,
σ ˜ 2 = i = 1 m r i 2 m p q c
is a consistent estimator of σ 2 , where often c = 0 or c = 1 . See Davis (1977) [12] and Granger and Newbold (1977, p. 85) [2]. Huang et al. (2022) [11] argued that estimators of σ 2 could be good even when the time series models overfit. Let σ ^ 2 be the estimator of σ 2 produced by the time series model, and let γ k = C o v ( Y t , Y t k ) . Let
Γ n = γ 0 γ 1 γ n 1 γ 1 γ 0 γ n 2 γ n 1 γ n 2 γ 0 .
The following large sample theorem for the AR(p) model is due to Mann and Wald (1943) [13]. Also see McElroy and Politis (2020, p. 333) [14] and Anderson (1971, pp. 210–217) [15]. For large sample theory for MA and ARMA models, see Hannan (1973) [16], Kreiss (1985) [17], and Yao and Brockwell (2006) [18].
There is a strong regularity condition for the GMLE for the ARMA model. Assume the ARMA( p S , q S ) model is the true model. If both p > p S and q > q S , then the GMLE is not a consistent estimator. See Chan, Ling, and Yau (2020) [19] and Hannan (1980) [9].  
Theorem 1. 
Let the iid zero mean e i have variance σ 2 , and let the time series have mean E ( Y t ) = μ .
(a) Let Y 1 , , Y n be a weakly stationary and invertible AR(p) time series, and let β = ( ϕ 1 , , ϕ p ) T . Let β ^ be the Yule Walker estimator of β . Then,
n ( β ^ β ) D N p ( 0 , V )
where V = V ( β ) = σ 2 Γ p 1 . Equation (3) also holds under mild regularity conditions for the least squares estimator, and the GMLE of β .
(b) Let Y 1 , , Y n be a weakly stationary, causal, and invertible MA(q) time series, and let β = ( θ 1 , , θ q ) T . Let β ^ be the GMLE. Under regularity conditions,
n ( β ^ β ) D N q ( 0 , V )
where V is given, for example, by McElroy and Politis (2022, pp. 340–341) [14].
(c) Let Y 1 , , Y n be a weakly stationary, causal, and invertible ARMA( p , q ) time series, and let β = ( ϕ 1 , , ϕ p , θ 1 , , θ q ) T with g = p + q . Let β ^ be the GMLE. Under regularity conditions,
n ( β ^ β ) D N g ( 0 , V ) ,
where V depends on the autocorrelation function and σ 2 .
The main point of Theorem 1 is that the theory can hold even if the e t are not iid N ( 0 , σ 2 ) . The basic idea for the GMLE is that { Y t } satisfies an AR() model which is approximately an AR( p y ) model, and the large sample theory for the AR( p y ) model depends on the zero mean error distribution through σ 2 by Theorem 1(a). See Anderson (1971: ch. 5) [15], Anderson (1977) [20], Durbin (1959) [21], Hamilton (1994, pp. 117, 429) [22], and Hannan and Rissanen (1982, p. 85) [23]. When the e t are iid N ( 0 , σ 2 ) , V = V ( β ) = I 1 1 ( β ) , the inverse information matrix. Then, for the AR(p) model, V ( ϕ ) = σ 2 Γ p 1 ( ϕ ) = I 1 1 ( ϕ ) . See Box and Jenkins (1976, p. 241) [1] and McElroy and Politis (2020, pp. 340–344) [14].
Pötscher (1994) [24] showed how to estimate r S = max ( p S , q S ) consistently. Section 2.1 reviews this method and proposes a modification that can lead to a more parsimonious model. Section 2.2 illustrates h-step ahead prediction intervals with ARIMA models. Section 2.3 gives some examples and simulations.

2. Materials and Methods

2.1. Model Selection Algorithms

In the literature and software, the AIC and BIC criteria can take many forms since the criterion can be multiplied by a positive constant, such as 1 / n , and a constant d n can be added to the criterion without changing the model that minimizes the criterion. Parameters that are in every model, such as σ 2 and possibly a constant, can be absorbed in a constant d n . For ARMA( p , q ) models, let log ( L ^ ) be the log likelihood for the GMLE. Then the AIC and BIC criteria have the form 2 log ( L ^ ) + ( p + q ) c ( n ) where c ( n ) = 2 for AIC and c ( n ) = log ( n ) for BIC. From McElroy and Politis (2020, p. 360) [14] and Huang et al. (2022) [11], 2 log ( L ^ ) n log ( σ ^ I 2 ) + a n , where σ ^ I 2 is the GMLE of the error variance of model I and a n is a constant that depends on n. Hence, if I is an ARMA( p , q ) model, take
A I C ( I ) = n log ( σ ^ I 2 ) + 2 ( p + q ) a n d B I C ( I ) = n log ( σ ^ I 2 ) + ( p + q ) log ( n ) .
For AIC given by (6), let Δ ( I ) = A I C ( I ) A I C ( I m i n ) , then models with Δ ( I ) 2 are “good,” and models with 4 Δ ( I ) 7 are borderline. See Duong (1984) [25]. Claeskens and Hjort (2008, pp. 39, 111) [26] use slightly different formulas for AR(p) models. Pötscher and Srinivasan (1994) [27] multiply the Equation (6) formulas by 1 / n .
In simulations for ARMA model selection, the model selection methods often failed to select a consistent model with high probability in that an inconsistent model was selected with probability > 0.1 . A model I is inconsistent due to underfitting if p I < p S or q I < q S . A model I is inconsistent due to overfitting if p I > p S and q I > q S . A model I is consistent if p I = p S and q I q S or if q I = q S and p I p S . If the model selection procedure were restricted to AR or MA models, then model I would be inconsistent only due to underfitting. The BIC criterion appeared to work for large n if the only models considered were the ARMA( k , k ) models for k = 0 , , k m a x . Then the only consistent model is the ARMA( r S , r S ) model, assuming r S = max ( p S , q S ) k m a x . For this set of restricted models, A I C and A I C C tend to overfit with positive probability if r S < k m a x , and hence do not select a consistent model with probability going to one as n .
In simulations, the Pötscher (1990) [24] method to estimate r S = max ( p S , q S ) often worked rather well. Also see Pötscher and Srinivasan (1994) [27]. Chan, Ling, and Yau (2020) [19] suggested that this method is reliable for n 1000 . In our simulations, the method was fairly reliable for n 600 , but some models needed much larger n, and there were some models where the method did not simulate well. For the Pötscher (1990) [24] method, let k m a x be a positive integer such as p m a x = q m a x = k m a x = 5 . Fit the ARMA( k , k ) model for k = 0 , 1 , , k m a x . For each of these k m a x + 1 models, compute the BIC–type criterion z ( k ) = log ( σ ^ k 2 ) + 2 k log ( n ) / n where σ ^ k 2 is the GMLE estimator of the error (or innovation) variance σ 2 . This criterion is Equation (6) divided by n, and thus (6) could be used instead. The estimator r ^ of r S is the first local minimum of the series z ( 0 ) , z ( 1 ) , , z ( k m a x ) . Hence r ^ = 0 if z ( 0 ) z ( 1 ) ; r ^ = 1 if z ( 0 ) > z ( 1 ) and z ( 1 ) z ( 2 ) ; r ^ = 2 if z ( 0 ) > z ( 1 ) , z ( 1 ) > z ( 2 ) , and z ( 2 ) z ( 3 ) ; r ^ = k if z ( r ) > z ( r + 1 ) for 0 r < k and z ( k ) z ( k + 1 ) for k = 0 , , k m a x 1 ; and r ^ = k m a x if z ( k ) is not a local minimum for any k = 0 , 1 , , k m a x 1 . Note that r S k m a x is necessary for r ^ to be a consistent estimator of r S .
The following method is new and can have fewer parameters than the ARMA( r ^ , r ^ ) model. Use the AIC(I) criterion of Equation (6) after finding r ^ as above. Then, a decrease in AIC > 2 when one parameter is omitted suggests that the parameter was not needed. Let p e n be a penalty such as p e n = 2 (used in the simulations) or p e n = 0 . The algorithm computes the c r i t = A I C ( I ) p e n for the ARMA( r ^ , r ^ ) model, and fits the ARMA( r ^ i , r ^ ) and ARMA( r ^ , r ^ i ) models for i = 0 , , r ^ 1 . If one of the models has AIC(I) < c r i t , then the set crit = AIC(I) p e n . This process is repeated at each step. The value of c r i t is updated only if a decrease of more than p e n from the current value of c r i t is observed. The final model I is the model selected by this algorithm. This additional penalty reduced underfitting. Note that 2 r ^ models are fitted after finding r ^ , which fits k m a x + 1 models. This method is faster than computing the AIC for ( k m a x + 1 ) 2 models. Take the ARMA( p , r ^ ) or ARMA( r ^ , q ) model that has the smallest value of c r i t . Then at least one of p and q will equal r ^ . Huang et al. (2022) [11] use a similar method with BIC.
Remark 1. 
Let the full model F be an ARMA( p m a x , q m a x ) model. Assume that the full model does not overfit too severely, e.g., use p m a x = q m a x = 5 . Let r and Y ^ denote the residuals and fitted values from the full model. Let r I and Y ^ I denote the residuals and fitted values from the submodel I. Let c o r denote the sample correlation. Empirically, good ARMA time series model selection estimators select a submodel I such that both c o r ( r , r I ) and c o r ( Y ^ , Y ^ I ) are very high, and the plotted points, in both an RR plot of r I versus r and an FF plot of Y ^ I versus Y ^ , should cluster tightly about the identity line with zero intercept and unit slope. Then model I is often “good” for prediction, even if I underfits or overfits.
Note that n log ( σ ^ I 2 ) = n log ( σ ^ I 2 / σ ^ F 2 ) + n log ( σ ^ F 2 ) where the last term acts as a constant. For large n, the term n log ( σ ^ I 2 / σ ^ F 2 ) cannot get much below 0, and the term tends to be near zero if c o r ( r , r I ) is very high so that the full model residuals and submodel residuals are nearly identical.
A lower bound on c o r ( r , r I ) can be found for one model selection estimator. Fit the full ARMA( p m a x , q m a x ) model with the GMLE. Let r i = e ^ i . Let the full multiple linear regression working model be
Y t = τ + ϕ 1 Y t 1 + ϕ 2 Y t 2 + + ϕ p m a x Y t p m a x + θ 1 e ^ t 1 + θ 2 e ^ t 2 + + θ q m a x e ^ t q m a x + e t
for t = max ( p m a x , q m a x ) + 1 , , n . Let m = n max ( p m a x , q m a x ) . Do model selection for multiple linear regression using ordinary least squares and the Mallows (1973) [28] C p ( I ) criterion. Let r be the full model residuals from the full model (7). Let r I be the residuals from the ordinary least squares fit to submodel I. Let d = p m a x + q m a x + 1 be the number of regression parameters for model (7). For the full model, C p ( F ) = d . This method can also be used for AR() models.
Theorem 2. 
Using the above notation, let model I use k parameters, including a constant. Assume the design matrix for the full working model (7) has full rank d. If C P ( I ) 2 k , then
c o r ( r , r I ) 1 d m .
Proof. 
Olive and Hawkins (2005) [29] proved that if the design matrix has full rank p with n cases with C P ( I ) 2 k , then
c o r ( r , r I ) = n p C p ( I ) + n 2 k 1 p n .
Plug in d for p and m for n to get the result.    □
Remark 2. 
Note that m 20 d implies that c o r ( r , r I ) 19 / 20 = 0.9747 . If Δ ( I ) = A I C ( I ) A I C ( I m i n ) 2 , then typically c o r ( r , r I ) , c o r ( Y ^ , Y ^ I ) , c o r ( r S , r I ) , and c o r ( Y ^ S , Y ^ I ) , will be high if m 20 d . If model averaging or Bayesian methods give nearly all the weight to models I, whose residuals and fitted values are highly correlated with those of the full model, then these methods may be useful for prediction. Model averaging is sometimes used for AR(∞) models. See, for example, references in Bürkner, Gabry, and Vehtari (2020) [30] and Liao et al. (2021) [31].

2.2. Prediction Intervals

For forecasting, predict the test data Y n + 1 , , Y n + L given the past training data Y 1 , , Y n . A large sample 100 ( 1 δ ) % prediction interval (PI) for Y n + h is [ L n , U n ] where the coverage P ( L n Y n + h U n ) = 1 δ n is eventually bounded below by 1 δ as n . We often want 1 δ n 1 δ as n . By construction, some of the prediction intervals will have training data coverage 1 δ n where 1 δ n 1 δ , and 1 δ n 1 δ as n . A large sample 100 ( 1 δ ) % PI is asymptotically optimal if it has the shortest asymptotic length: the length of [ L n , U n ] converges to U s L s as n where [ L s , U s ] is the population shorth: the shortest interval covering at least 100 ( 1 δ ) % of the mass.
The shorth estimator of the population shorth will be defined below and used to create large sample PIs that do not require knowing the distribution of the errors e t . If the data are Z 1 , , Z n , let Z ( 1 ) Z ( n ) be the order statistics. Let x denote the smallest integer greater than or equal to x (e.g., 7.7 = 8 ). Consider intervals that contain c cases [ Z ( 1 ) , Z ( c ) ] , [ Z ( 2 ) , Z ( c + 1 ) ] , , [ Z ( n c + 1 ) , Z ( n ) ] . Compute Z ( c ) Z ( 1 ) , Z ( c + 1 ) Z ( 2 ) , , Z ( n ) Z ( n c + 1 ) . Then the estimator shorth(c) = [ Z ( s ) , Z ( s + c 1 ) ] is the interval with the shortest length.
Suppose the data Z 1 , , Z n are iid and a large sample 100 ( 1 δ ) % PI is desired for a future value Z f such that P ( Z f [ L n , U n ] ) 1 δ as n . The shorth(c) interval is a large sample 100 ( 1 δ ) % PI if c / n 1 δ as n , that often has the asymptotically shortest length. Frey (2013) [32] showed that for large n δ and iid data, the shorth( k n = n ( 1 δ ) ) prediction interval has maximum undercoverage 1.12 δ / n , and used the large sample 100 ( 1 δ ) % PI shorth(c) =
[ Z ( s ) , Z ( s + c 1 ) ] w i t h c = min ( n , n [ 1 δ + 1.12 δ / n ] ) .
Some more notation is needed before deriving PIs for time series. Suppose the training data set is Y 1 , , Y t . The h-step ahead forecast for a future value Y t + h is Y ^ t ( h ) and the h-step ahead forecast residual is e ^ t ( h ) = Y t + h Y ^ t ( h ) . For example, a common choice for model Y t = τ + i ψ i Y t i k i + j ν j e t j k j + e t is Y ^ t ( h ) = τ ^ + i ψ ^ i Y t + h i k i + j ν ^ j e ^ t + h j k j where e ^ t is the tth residual, Y t + h i k i = Y t + h i k i if h i k i 0 ,   Y t + h i k i = Y ^ t ( h i k i ) if h i k i > 0 , e ^ t + h j k j = e ^ t + h j k j if h j k j 0 , and e ^ t + h j k j = 0 if h j k j > 0 , and the forecasts Y ^ t ( 1 ) , Y ^ t ( 2 ) , , Y ^ t ( L ) are found recursively if there is data Y 1 , , Y t . Typically, the residuals e ^ t = e ^ t 1 ( 1 ) are the 1-step ahead forecast residuals, and the fitted or predicted values Y ^ t = Y ^ t 1 ( 1 ) are the 1-step ahead forecasts.
The following example is useful to illustrate the forecasts. The R software 4.5.3 produces e ^ t and Y ^ t = Y t e ^ t for t = m + 1 , , m + n 1 where there are n 1 1-step ahead forecast residuals e ^ t = e ^ t 1 ( 1 ) available, often with m = 0 and n 1 = n . In the examples, we obtain the formulas Y ^ n ( h ) and then replace n by t so that the test-data formula is applied to the training data. Then, the general formula for an ARMA( p , q ) model is Y ^ t ( h ) = τ ^ + ϕ ^ 1 Y ^ t ( h 1 ) + ϕ ^ 2 Y ^ t ( h 2 ) + + ϕ ^ h 1 Y ^ t ( 1 ) + ϕ ^ h Y t + + ϕ ^ p Y t + h p + θ ^ h e ^ t + + θ ^ q e ^ t + h q for 1 < h m i n ( p , q ) . Assume there are n h forecast residuals e ^ t ( h ) available from the training data.
Example 1. 
Suppose the training data is Y 1 , , Y n . (a) Consider an MA(2) model: Y t = τ + θ 1 e t 1 + θ 2 e t 2 + e t . The R software produces e ^ t = Y t Y ^ t . Thus, Y ^ t = Y t e ^ t and Y t = Y ^ t + e ^ t . Then, Y ^ t = Y ^ t 1 ( 1 ) = τ ^ + θ ^ 1 e ^ t 1 + θ ^ 2 e ^ t 2 for t = 1 , , n , and e ^ t ( 1 ) = Y t + 1 Y ^ t ( 1 ) for t = 3 , , n . Also, Y ^ n ( 1 ) = τ ^ + θ ^ 1 e ^ n + θ ^ 2 e ^ n 1 . Hence, there are n 1 = n 1-step ahead forecast residuals e ^ t = e ^ t 1 ( 1 ) available. Similarly, Y ^ t ( 2 ) = τ ^ + θ ^ 2 e ^ t for t = 1 , , n . Hence, the 2-step ahead forecast residuals are available for t = 3 , , n 2 . Now Y ^ t ( h ) = τ ^ Y ¯ for h > 2 . Hence, there are n h-step ahead forecast residuals Y t Y ¯ for h > 2 and t = 1 , , n .
  • (b) Consider an ARMA(1,1) model: Y t = τ + ϕ 1 Y t 1 + θ 1 e t 1 + e t . For h = 1 ,   Y ^ t ( 1 ) = τ ^ + ϕ ^ 1 Y t + θ ^ 1 e ^ t . For h > 1 , Y ^ t ( h ) = τ ^ + ϕ ^ 1 Y ^ t ( h 1 ) .
  • (c) Consider an AR(1) model: Y t = τ + ϕ 1 Y t 1 + e t . For h = 1 ,   Y ^ t ( 1 ) = τ ^ + ϕ ^ 1 Y t . If Y ^ t ( 0 ) = Y t , then Y ^ t ( h ) = τ ^ + ϕ ^ 1 Y ^ t ( h 1 ) = τ ^ ( 1 + ϕ ^ 1 + + ϕ ^ 1 h 1 ) + ϕ ^ 1 h Y t = 1 ϕ ^ 1 h 1 ϕ ^ 1 τ ^ + ϕ ^ 1 h Y t . For a weakly stationary AR(1) time series, a good estimation method will have | ϕ ^ 1 | < 1 .
  • (d) Consider an ARIMA(1,1,1) model with τ = 0 : Y t = ( 1 + ϕ 1 ) Y t 1 ϕ 1 Y t 2 + θ 1 e t 1 + e t . Then Y ^ t ( 1 ) = ( 1 + ϕ ^ 1 ) Y t ϕ ^ 1 Y t 1 + θ ^ 1 e ^ t , Y ^ t ( 2 ) = ( 1 + ϕ ^ 1 ) Y ^ t ( 1 ) ϕ ^ 1 Y t , and Y ^ t ( h ) = ( 1 + ϕ ^ 1 ) Y ^ t ( h 1 ) ϕ ^ 1 Y ^ t ( h 2 ) for h > 2 .
  • (e) Consider an ARIMA(0,1,1) model with τ = 0 : Y t = Y t 1 + θ 1 e t 1 + e t . Then Y ^ t ( 1 ) = Y t + θ ^ 1 e ^ t , and Y ^ t ( h ) = Y ^ t ( h 1 ) = Y ^ t ( 1 ) for h 2 .
  • (f) Consider an ARIMA(0,2,2) model with τ = 0 : Y t = 2 Y t 1 Y t 2 + θ 1 e t 1 + θ 2 e t 2 + e t . Then Y ^ t ( 1 ) = 2 Y t Y t 1 + θ ^ 1 e ^ t + θ ^ 2 e ^ t 1 , Y ^ t ( 2 ) = 2 Y ^ t ( 1 ) Y t + θ ^ 2 e ^ t , and Y ^ t ( h ) = 2 Y ^ t ( h 1 ) Y ^ t ( h 2 ) for h 3 .
The basic idea for getting prediction intervals for the test data is now given. Find the forecast formulas for the test data Y n + 1 , , Y n + L , and apply the formulas to the training data Y 1 , , Y n to get forecast residuals. Assume consistent estimators are used so that the forecast residuals are consistent estimators of the forecast errors. Apply the shorth to the n h forecast residuals e ^ t ( h ) to get [ L n ( h ) , U n ( h ) ] , a PI for a future forecast error. Then the PI for Y n + h is [ Y ^ n ( h ) + L n ( h ) , Y ^ n ( h ) + U n ( h ) ] . Since the forecast residuals tend to underestimate the forecast errors, small correction factors are needed for small n. This idea is illustrated for ARIMA models but also applies to many other time series methods, including seasonal ARIMA models. Similar PIs and prediction regions were derived for multiple linear regression and multivariate linear regression by Olive (2013) [33].
Often, time series PIs assume normality, and do not work well unless the errors e t are iid N ( 0 , σ e 2 ) . For many time series models, a large sample normal 100 ( 1 δ ) % PI for Y t + h is
[ L n , U n ] = Y ^ t ( h ) ± t 1 δ / 2 , n p q S E ( Y ^ t ( h ) ) .
Suppose that as n , Y ^ t ( h ) P E ( Y t + h ) = μ t + h and S E ( Y ^ t ( h ) ) P S D ( Y t + h ) = σ t + h . Thus Y ^ t ( h ) and S E ( Y ^ t ( h ) ) are consistent estimators of μ t + h and σ t + h , respectively. These quantities are conditional on the past, but the conditioning is suppressed. Then,
P ( Y t + h [ L n , U n ] ) P ( Y t + h [ μ t + h z 1 δ / 2 σ t + h , μ t + h + z 1 δ / 2 σ t + h ] ) = P [ | Y t + h μ t + h | < z 1 δ / 2 σ t + h ] 1 1 z 1 δ / 2 2 assuming Chebyshev’s inequality holds to a good approximation. Hence, the 95% Chebyshev PI (9) could have coverage as low as 74%, and the 99.7% PI could have coverage as low as 89%. If n is large, a nominal 95% PI uses t 1 δ / 2 , n p q 1.96 while using z 1 δ / 2 = 5 has coverage that is eventually bounded below by 96% as n . The t cutoff 1.96 tends to be too low, while the Chebyshev cutoff 5 tends to be too high, in that the PI length will be too long and the coverage too high.
Theorem 3. 
Suppose the Y t are from an MA(∞) time series model. Assume E ( Y ) and V ( Y ) exist.
  • (a) Then the sample percentiles, sample mean, sample variance, and sample shorth of the Y t converge to the population values. Thus, the population values for Y t from an MA(∞) model are the same as the population values for iid Y i .
  • (b) For h and n sufficiently large, the shortest 100 ( 1 δ ) % PI for Y t + h is approximately PI (8) applied to Y 1 , , Y n . This result is true even if E ( Y ) and V ( Y ) do not exist.
Proof. 
Since the MA() time series model is approximately an MA( q y ) time series model, where q y depends on the time series but not on n (and the approximation gets better for an MA(Q) model as Q > q y increases), the results hold if they hold for an MA(q) model. So, suppose the Y i are from an MA(q) model.
(a) Then, the Y i are iid in q + 1 blocks: Y 1 + k ( q + 1 ) ; Y 2 + k ( q + 1 ) ; , Y q + k ( q + 1 ) for k = 0 , 1 , 2 Hence the first block is Y 1 , Y 1 + ( q + 1 ) , Y 1 + 2 ( q + 1 ) , , Y 1 + k 1 ( q + 1 ) where 1 + k 1 ( q + 1 ) n but 1 + ( k 1 + 1 ) ( q + 1 ) > n . Since the sample quantities converge to the population quantities in each of the q + 1 blocks, the sample quantities applied to all of the data converge to the population quantities.
(b) Similar to Example 1 (a), Y ^ t + h = Y ^ t ( h ) = τ ^ Y ¯ for h > q . Hence, there are n h-step ahead forecast residuals e ^ t = Y t Y ¯ for h > q and t = 1 , , n . Subtracting a constant from the Y t does not change the lengths of the population or sample shorth. Hence the shortest population 100 ( 1 δ ) % covering interval is [ L s , U s ] and PI (8) [ Y ( s ) , Y ( s + c 1 ) ] P [ L s , U s ] where this notation means that the endpoints of the sample PI converge in probability to the endpoints of the population interval.    □
If the Y t are from an MA() time series model where E ( Y ) = μ exists, then the location model is Y t = E ( Y ) + e t , where the e t = Y t E ( Y ) are from an MA() time series model. Note that the convergence of the sample quantities to the population quantities in Theorem 3 may not be as fast as the convergence for iid Y i . An MA( q y ) time series model tends to be ergodic: see White (1984, p. 46) [34]. For ergodic data from a unimodal distribution, Chen and Shao (1999) [35] proved the sample shorth converges to the unique population shorth. Lee and Scholtes (2014) [36] discuss when the percentiles of forecast errors are consistent for ARMA models. Theorem 3’s proof is much simpler than the proofs from the above two papers. The corresponding asymptotic Chebyshev PI for Y t + h is [ Y ¯ z 1 δ / 2 V ^ ( Y ) , Y ¯ + z 1 δ / 2 V ^ ( Y ) ] P [ E ( Y ) z 1 δ / 2 V ( Y ) , E ( Y ) + z 1 δ / 2 V ( Y ) ] .
The following new PI is easier to compare with Chebyshev PIs. The technique can be used to make PI (8) longer with the same center, if c is used instead of k n , which can be useful if n < 50 and the Y t are not iid. Let e ¯ t = Y t Y ¯ , and let shorth( k n = n ( 1 δ ) ) = [ L n ( h ) , U n ( h ) ] be computed from the e ¯ t . Then the large sample 100 ( 1 δ ) % shorth( k n ) PI for Y t + h is
[ L n , U n ] = [ Y ¯ + b n L n ( h ) , Y ¯ + b n U n ( h ) ]
where b n = 1 + 15 n n + 1 n 1 . Note that this PI is the same for all h. For weakly stationary, causal, and invertible ARMA( p , q ) models, this PI is too long for h near 1, but should have short length for large h, and if h > q for an MA(q) model by Theorem 3(b). This PI is the Olive (2013) [33] PI suggested for Y f when Y 1 , , Y n and Y f = Y n + 1 are iid.
PI (10) is similar to the shorth PI (8) from Theorem 3, but has a correction factor for small n. For the MA(q) model with μ = τ , e t ( h ) = τ + θ h e t + θ h + 1 e t 1 + θ q e t + h q for h q (provided t n and t + h q 1 ), e t ( h ) = Y t + h μ for h > q , the e t ( h ) are identically distributed for fixed h, and the random variables e j ( h ) , e j + h ( h ) , e j + 2 ( h ) ( h ) , are iid for fixed h q . For h q , there are h iid sequences starting at j = 1 , 2 , , h , respectively. For h > q , there are q + 1 iid sequences starting at j = 1 , , ( q + 1 ) . Since the sample percentiles of the iid sequences converge in probability to the population percentiles for fixed h, so do the sample percentiles of all of the data. Hence P ( e t ( h ) [ L n ( h ) , U n ( h ) ] ) 1 δ as n for the MA(q) model. Then P ( Y t + h [ μ + L n ( h ) , μ + U n ( h ) ] ) = P ( e t ( h ) [ L n ( h ) , U n ( h ) ] ) 1 δ . Hence, PI (10) is a large sample 100 ( 1 δ ) % PI for Y t + h if the Y t are from an MA() time series model where E ( Y ) exists.
Using the forecast residuals e ^ t ( h ) from the training data for t = 1 , , n h to create a PI may not work well if n h is too small. For the MA(q) model with h q , need 1 q + h t n with n h = n + q h + 2 . Also, the e ^ t ( h ) may not be available from the software. Then, using PI (10) or the shorth PI (8) computed from the Y i makes sense. These PIs may outperform the widely used Chebyshev PIs for coverage and length, even for rather small h. The shorth PI (8) also works for heavy-tailed data where the forecast error variance does not exist.
The following PI is new and takes into account the time-series structure of the data. A similar idea in Masters (1995, p. 305) [37] is to find the n h h-step ahead forecast residuals and use percentiles to make PIs for Y t + h for h = 1 , , L . Let the full model be the ARMA( k m a x , k m a x ) model. Let I m be the ARMA ( p m , q m ) model that was selected by the model selection algorithm. Often I m = I m i n . Find Y ^ n ( h ) and the forecast residuals e ^ t ( h ) for the selected model I m . For h = 1 , we will use the residuals e ^ t . Let k = p m + q m , and
e ˜ t ( h ) = 1 + 15 n h n h n h k e ^ t ( h ) .
Let q n = min ( 1 δ + 0.05 , 1 δ + k / n h ) for δ > 0.1 and
q n = min ( 1 δ / 2 , 1 δ + 10 δ k / n h ) ,
otherwise. If 1 δ < 0.999 and q n < 1 δ + 0.001 , set q n = 1 δ . Then, compute the shorth( c m o d ) PI [ L ^ n ( h ) , U ^ n ( h ) ] from the n h scaled forecast residuals e ˜ t ( h ) with
c m o d = min ( n h , n h [ q n + 1.12 δ / n h ] ) .
If the Pötscher (1990) [24] method is used, then the new large sample 100 ( 1 δ ) % PI for Y n + h is
[ L n , U n ] = [ Y ^ t ( h ) + L ^ n ( h ) , Y ^ t ( h ) + U ^ n ( h ) ] .
Note that for h = 1 , an estimator for σ 2 = V ( e ) is
σ ^ 2 = 1 n 1 k i = 1 n 1 e ^ i 2 1 n 1 i = 1 n 1 e i 2 ,
by Equation (2), suggesting that
n 1 n 1 k e ^ i e i .
Since the residuals r I from many models I are nearly identical by Remark 1, these models give very similar e ^ i 2 and σ ^ 2 for large n. For h > 1 , since the fitted values are nearly identical on the training data for many models, expect the h-step ahead forecasts and residuals to be similar for small h.
In addition to the above paragraph, why might PIs (12) have good coverage? For both the test data and the training data, Y t + h = Y ^ t ( h ) + e ^ t ( h ) = μ t + h + e t ( h ) . First, consider the training data where n h forecast residuals e ^ t ( h ) exist. Then the proportion of Y t + h [ Y ^ t ( h ) + L n ( h ) , Y ^ t ( h ) + U n ( h ) ] = the proportion of the n h forecast residuals e ^ t ( h ) [ L n ( h ) , U n ( h ) ] 1 δ n 1 δ by construction. Hence the training data coverage is good. If the selected fitted model is good, and the test data behaves like the training data, then we expect the test data coverage to be good for large n.
Second, assume the time series follow a weakly stationary ARMA model, and suppose Y ^ t ( h ) is a consistent estimator of μ t + h and e ^ t ( h ) estimates e t ( h ) in that e ^ t ( h ) e t ( h ) D 0 as n . Also assume that the percentiles of e ^ t ( h ) estimate the percentiles of e t ( h ) such that P ( e t ( h ) [ L n ( h ) , U n ( h ) ] ) 1 δ as n . Then P ( Y n + h [ Y ^ n ( h ) + L n ( h ) , Y ^ n ( h ) + U n ( h ) ] ) P ( e t ( h ) [ L n ( h ) , U n ( h ) ] ) 1 δ . These assumptions are roughly the assumptions made when normality is assumed, which makes the time series strictly stationary. For h = 1 , the { e ^ t + 1 } = { e ^ t ( 1 ) } estimate the iid { e t } for many models I, and these assumptions may be reasonable if n is large. If the model selection estimator selects a consistent estimator with probability that goes to 1 as n , then the model selection estimator tends to be consistent by Haile and Olive (2023) [3]. For MA() models (weakly stationary causal ARMA models), μ t + h μ , Y ^ t ( h ) μ , and e ^ t ( h ) estimates Y t + h μ as h .

2.3. Example and Simulations

Model selection can be done using the R function auto.arima from the Hyndman and Khandakar (2008) [38] forecast package. Also, see Hyndman and Athanasopoulos (2018) [39]. The AIC and BIC criteria used by this function differ from those given by Equation (6).
Example 2. 
The monthly Brent crude oil spot price Y t (dollars per barrel) with 396 observations was collected over the period of 01/1990–12/2022. The differenced time series did not have constant variance. Hence, the differenced time series X t of log(price) was used. The plot of time series in Figure 1 shows several outliers, cases 7, 8, 362, 363, 364, and 365, which create white space in the plot. The outliers near 2020 may be due to COVID-19. These six outliers were replaced by missing values. Hence, if X t = l o g ( Y t ) l o g ( Y t 1 ) is the original time series, then W t is the new time series with W t = X t if X t is not one of the outliers, and W t = N A if X t was an outlier, where NA is R notation for missing values. This new technique for handling outliers is useful if the time series software can handle missing values. See Figure 2 for the plot of W t . The auto.arima function was used for model selection and picked an AR(1) model, which appeared to be reasonable from ACF and PACF plots. The new model selection procedure and the Pötscher method both selected an ARMA(1,1) model, which is consistent if the AR(1) model is consistent.
The large sample 95% PI (10) (computed from the 389 values that were not missing) was [ 0.1963 , 0.1643 ] and contained 371 / 389 = 0.9537 of the 389 X t . If the last nine X t were omitted, then the large sample 95% PI (10) (computed from the 380 values that were not missing) was [ 0.1965 , 0.1644 ] and contained all 9 of the future cases X 381 , , X 389 . Next we computed the large sample 95% PI (10) using X i to X i + 99 for i = 1 , , 150 and determined whether x i + 109 was in the PI (10 steps ahead, ignoring missing values). This occurred for 139 / 150 = 0.927 of the PIs, and the average PI length was 0.372. Some R code is shown below.
  • library(forecast)
  • d1=diff(log(d$price))
  • d1[c(7,8,362,363,364,365)] <- NA
  • pricets=ts(d1,frequency=12, start=c(1990,1))
  • plot.ts(pricets, main="The Difference Series of the Logs of the Oil Price",
  • xlab="Year", ylab="Price",type="o")
  • d2 <- d1[-c(7,8,362,363,364,365)]
  • locpi(d2)
  • d3 <- d2[1:380]
  • locpi(d3) #get rolling forecasts
  • cov <- 0
  • len <- 1:150
  • for(i in 1:150){
  • dd <- d2[i:(i+99)]
  • temp <- locpi(dd)
  • yf <- d2[i+109]
  • if(temp$LPI <= yf && yf <= temp$UPI)
  • cov<-cov+1
  • len[i] <- temp$UPI-temp$LPI }
Figure 1. Differenced series of logs of oil price.
Figure 1. Differenced series of logs of oil price.
Axioms 15 00228 g001
Figure 2. Differenced series of logs of oil price using NA.
Figure 2. Differenced series of logs of oil price using NA.
Axioms 15 00228 g002
For the model selection and PI simulations, there were four error types for the iid e t : (1) N(0,1), (2) t 5 , (3) U ( 1 , 1 ) , or (4) (EXP(1) − 1), a shifted exponential distribution. All these distributions have mean 0, but the fourth distribution is not symmetric. The 6 time series types were tstype = 1 for an AR(1) model with ϕ = 0.5 , tstype = 2 for an AR(2) model with ϕ = ( 0.5 , 0.33 ) T , tstype = 3 for an MA(1) model with θ = 0.5 , tstype = 4 for an MA(2) model with θ = ( 0.5 , 0.5 ) T , tstype = 5 for an ARMA(3,1) model with ϕ = ( 0.7 , 0.1 , 0.4 ) T and θ = 0.1 . Finally, tstype = 6 allows the user to specify ϕ and θ for an ARMA( p , q ) model with p 1 , q 1 , and p , q k m a x , where kmax is the largest value of r for the fitted ARMA( r , r ) models, r = 0 , 1 , , kmax.
Model Selection Simulations
We used the auto.arima function with “AIC”, the Pötscher (1990) [24] method that selects an ARMA( r ^ , r ^ ) model, and the new ARMA model selection method given in Section 2.1. In Table 1 and Table 2, these methods are denoted by R AIC, r ^ , and I, respectively. AIC was used with auto.arima since in the simulations for n 500 , underfitting was much more of a problem than overfitting. The simulations give the proportion of times a consistent model I was selected. Thus p I = p S and q I q S or q I = q S and p I p S .
For the 6 time series types, searching all 36 models with auto.arima would select a consistent model about 75% to 96% of the time if the true model was AR(p) or MA(q) and n was large (tstype 1 to 4), but it did not perform well for ARMA(1,1) models.
The ARMA models were sensitive to the values of ϕ and θ . For ARMA(1,1) models with ( ϕ , θ ) T = ( 0.5 , 0.2 ) , ( 0.2 , 0.1 ) , ( 0.4 , 0.1 ) , ( 0.6 , 0.3 ) , ( 0.2 , 0.6 ) , ( 0.4 , 0.8 ) , ( 0.6 , 1.0 ) ,
( 0.2 , 0.5 ) , ( 0.4 , 0.7 ) , ( 0.2 , 0.1 ) , ( 0.4 , 0.1 ) , ( 0.6 , 0.4 ) , ( 0.8 , 0.6 ) , the Pötscher method worked well with n = 1000 , but ( ϕ , θ ) T = ( 0.5 , 0.5 ) did not. In the simulations, the Pötscher model selection method could work fairly well for n as low as 80, and often worked fairly well for n = 600 , but often much larger sample sizes were needed. The tstype = 5 model needed n 1500 . Chan, Ling, and Yau (2020) [19] suggested that the Pötscher (1990) [24] method is reliable for n 1000 . More simulations are presented in Welagedara (2023) [40].
For the simulated ARMA(1,1) time series in Table 1, the Pötscher (1990)  [24] and new methods picked a consistent model in at least 94% of the runs (were reliable) for n 200 , while auto.arima with AIC picked an inconsistent model in at least 69% of the 1000 runs (was unreliable). Table 2 used the tstype = 5 = ARMA(3,1) model. The new method was fairly reliable for n 1500 , while auto.arima with AIC picked an inconsistent model in at least 47% of the 1000 runs.
Prediction Intervals after Model Selection
For ease of programming, we used one-step ahead prediction intervals after model selection using the auto.arima function, the GMLE, and A I C C . Haile (2022) [41] provided additional prediction intervals and simulations. With 5000 runs, coverages between 0.94 and 0.96 suggest that there is no reason to believe that the nominal coverage is not 0.95. The iid error distributions for e t were N(0,1), t 5 , U ( 1 , 1 ) , or (EXP(1) − 1), a shifted exponential distribution. For h = 1 , the asymptotic optimal lengths of the 95% PIs are 3.92, 5.141, 1.9, and 2.996, while the asymptotic lengths of the normal (Chebyshev) nominal 95% PIs are 3.92 σ = 3.92, 5.061, 2.263, and 3.92 for the N(0,1), t 5 , U ( 1 , 1 ) , and (EXP(1) − 1) distributions, respectively. By Theorem 3, for MA() time series, using iid data formulas, the asymptotic coverages of the nominal 95% Chebyshev intervals for the four error distributions are 0.95, 0.948, 1.00, and 0.948.
Table 3 gives some results for nominal 95% PIs. The full model was the ARMA(5,5) model. The true model was an MA(2) model. PIs (9) and (12) were used, as well as the normal (Chebyshev) nominal 95% PI from auto.arima, denoted by (F). Two lines were provided for each distribution-sample size combination. The first line gives the simulated coverage, which tended to be higher than 0.94. The second line gives the average PI length. PIs (9) and (F) were very similar. For n = 800 , the PI lengths and coverages were close to their asymptotic values.
In limited simulations, one-step ahead prediction intervals (12) and the Chebyshev “95%” h-step ahead prediction intervals (10) simulated fairly well after model selection using auto.arima or the Pötscher method. Prediction interval (10) does not depend on model selection. For example, in Table 4, the true model was an ARMA( 0.4 , 0.7 ) model, the e t were iid t 5 , A stands for auto.arima, and P stands for the Pötscher method. PI (10) does not depend on the model selection method; hence, the coverage and length were provided for A but not for P. For PI (12) and PI (F), the coverages and lengths were similar for A and P. Note that PI (12) was slightly longer than PI (10) for P and n = 100 , 200 . Also, the PI (F) average length is close to the asymptotic length 5.061, while the PI (12) length is not as close to the asymptotically optimal length 5.141.
A random walk or AR(1) model with unit root is Y t = Y t 1 + e t . This time series model is not weakly stationary. The PIs (8) and (10) are valid for AR(1) models with a near unit root, so they may simulate well for the unit root model if the iid errors have E ( e t ) = 0 and V ( e t ) = σ e 2 . Table 5 shows some results for one step ahead PIs when e t N ( 0 , 1 ) where auto.arima was used.
Some R code is shown below.
  • #Table 4, need the source command for tspack and library(forecast)
  • arimapisim(n=400,nruns=5000,phi=0.4,theta=-0.7,tstype=6,etype=2,dd=0)
  • arimapisim(n=200,nruns=5000,phi=0.4,theta=-0.7,tstype=6,etype=2,dd=0)
  • arimapisim(n=100,nruns=5000,phi=0.4,theta=-0.7,tstype=6,etype=2,dd=0)
  • unitrootpisim(n=100,nruns=5000)
  • unitrootpisim(n=200,nruns=5000)
  • unitrootpisim(n=400,nruns=5000)

3. Discussion

For MA() models, PIs (8) and (10) were proven to have good asymptotic coverage for h 1 and to have near optimal asymptotic length for large h. PIs (8) and (10) may be rather long for small h. If the search is restricted to ARMA( k , k ) models, and if r S = m a x ( p S , q S ) k m a x , then the probability that the ARMA( r S , r S ) model is chosen goes to 1 as n if BIC is used. Hence (12) is a large sample 100 ( 1 δ ) % PI for Y n + h if the Pötscher method is used.
Heuristically, ARMA and ARIMA model selection is often useful for prediction since the selected submodel tends to have fitted values and residuals that are very highly correlated with those of the full model and hence with those of the unknown “optimal ARIMA( p S , d , q S ) model.” Thus, the Chebyshev PI and PI (12) should be similar for the selected model, the ARMA( r S , r S ) model, and the ARMA( p S , q S ) model, at least for very small and very large values of h. To our knowledge, there is no other explanation for why the Chebyshev PIs simulate well after variable selection.
Consider the usual sample estimators, computed from iid Y i , of population percentiles, mean, variance, and the shorth. Theorem 3 showed that these estimators are consistent estimators of the population quantities, even if the Y t are from an MA() time series model. This result means that Olive (2013) [33] PIs for multiple linear regression, that use the shorth of the residuals, work even if the errors follow an MA() model, provided that least squares gives a consistent estimator of β . As shown in Example 2, a useful technique for handling outliers is to replace the outliers with missing values.
The Chebyshev “95%” prediction intervals, such as (9), are useful even after model selection, provided that consistent estimators of μ t + h and σ t + h are used, but the asymptotic coverage could be between 0.74 and 1.0, depending on the error distribution. PIs (8) and (10), the new PI (12) with h = 1 , and the Chebyshev “95%” h-step ahead prediction intervals simulated fairly well after model selection using auto.arima or the Pötscher method. Remarks 1 and 2 and Section 2.1 help explain why PIs after model selection can perform fairly well if the selected submodel has fitted values and residuals that are very highly correlated with those of a consistent model. Huang et al. (2022) [11] show that the variance estimator and the estimator β ^ are still useful even when the model overfits.
Model selection methods that use AIC, BIC, or A I C C tend to be unreliable at selecting a submodel that has a consistent estimator. Using BIC from Equation (6), k m a x = p m a x = q m a x , and fitting the ARMA( k , k ) models for k = 0 , 1 , , k m a x with the Pötscher method had much better performance but still needed n 600 to be fairly reliable. For data splitting, suppose the first n H values of the time series are used to select the ARMA( k I , k I ) model I, and the remaining n V = n n H values for inference. Then, n H 600 and n V 20 k I should be used. Hence, the time-series length needs to be fairly long, n 600 + 20 k m a x , in order to use data-splitting inference. Much larger values of n H and n V are sometimes needed.
There is a large literature on ARIMA time series PIs, especially for AR(p) models, and the bootstrap is often used. Most of the literature assumes the model and order are known, thereby ignoring model selection. See Haile (2022) [41], Hyndman and Athanasopoulos (2018) [39], Lu and Wang (2020) [42], and Pan and Politis (2016)  [43] for references. See Hong, Kuffner, and Martin (2018) [44] for why classical PIs after AIC variable selection do not work. Hyndman and Athanasopoulos (2018, last paragraph of ∮8.8) [39] note that ARIMA-based prediction intervals tend to be too narrow, so actual coverage is less than the nominal coverage. See Bhansali (1981) [45] for the effects of estimating the order of the time series model. Data sets in which future data do not behave like past data are common, and then the prediction intervals tend to perform poorly.
There is a large literature on outlier-anomaly detection in time series. Often, imputation is used, for example, to replace the outlier with the sample mean or median of neighboring values. See Blázquez-García, Conde, Mori, and Lozano (2021) [46] and Welagedara (2023) [40] for references. Replacing outliers with missing values is useful because software methods for handling missing values, including Chebyshev PIs, are widely available. See, for example, Jones (1980) [47].
Plots and simulations were done in R. See R Core Team (2024) [48]. Programs are in the collection of functions tspack.txt. See http://parker.ad.siu.edu/Olive/tspack.txt (accessed on 15 January 2026). The function armamsel1 performs Pötscher (1990) [24] ARMA model selection method, and the function armamsel2 also performs the new ARMA model selection method described in Section 2. The function armasim3 did the simulation for Table 1 and Table 2.
The function locpi gets PI (10). The function locpi2 needs the forecast residuals and finds [ L n , U n ] used in PI (12). One-step-ahead PIs similar to (12) are easy to compute if the one-step-ahead residuals are given by the model selection output. The function onesteppi computes the one-step-ahead PI for seasonal ARIMA( p , d , q ) × ( P , D , Q ) s models with period s, where the six estimated parameters need to be given. The function can handle missing values entered as NA. For Table 3, the function pitsvssim simulates PIs (9) and (12) after model selection using the GMLE with A I C C using the R function auto.arima. Table 5 used the function unitrootpisim.
For Table 4, the functions armapisim and arimapisim compare auto.arima and the Pötscher method for three 1-step ahead methods. The function tspisim compares auto.arima and the Pötscher method for the normal Chebyshev h-step ahead PIs. These three functions would often fail if 5000 runs were used.

Author Contributions

Conceptualization, W.A.D.M.W., M.G.H. and D.J.O.; methodology, W.A.D.M.W., M.G.H. and D.J.O.; software D.J.O.; validation, W.A.D.M.W., M.G.H. and D.J.O.; formal analysis, W.A.D.M.W., M.G.H. and D.J.O.; investigation, W.A.D.M.W. and M.G.H.; writing—original draft, D.J.O.; writing—review & editing, W.A.D.M.W., M.G.H. and D.J.O.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data set is available from https://github.com/rishabh89007/Time_Series_Datasets (accessed 15 January 2026) and http://parker.ad.siu.edu/Olive/BSP.csv (accessed 5 March 2026).

Acknowledgments

The authors thank the editors and referees for their work.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AICAkaike’s information criterion
ARautoregressive
ARMAautoregressive moving average
ARIMAautoregressive integrated moving average
BIC Bayesian information criterion
GMLE Gaussian maximum likelihood estimator
iid independent and identically distributed
MA moving average
PI prediction interval

References

  1. Box, G.; Jenkins, G.M. Time Series Analysis: Forecasting and Control, Revised ed.; Holden-Day: Oakland, CA, USA, 1976. [Google Scholar]
  2. Granger, C.W.J.; Newbold, P. Forecasting Economic Time Series; Academic Press: New York, NY, USA, 1977. [Google Scholar]
  3. Haile, M.G.; Olive, D.J. Bootstrapping ARMA time series models after model selection. Commun. Stat.-Theory Methods 2024, 53, 8255–8270. [Google Scholar] [CrossRef] [Scilit]
  4. Akaike, H. Information theory and an extension of the maximum likelihood principle. In Proceedings, 2nd International Symposium on Information Theory; Petrov, B.N., Csakim, F.F., Eds.; Akademiai Kiado: Budapest, Hungary, 1973; pp. 267–281. [Google Scholar]
  5. Schwarz, G. Estimating the dimension of a model. Ann. Stat. 1978, 6, 461–464. [Google Scholar] [CrossRef] [Scilit]
  6. Hurvich, C.; Tsai, C.L. Regression and time series model selection in small samples. Biometrika 1989, 76, 297–307. [Google Scholar] [CrossRef]
  7. Hannan, E.J.; Quinn, B.G. The determination of the order of an autoregression. J. R. Stat. Soc. B 1979, 41, 190–195. [Google Scholar] [CrossRef] [Scilit]
  8. Shibata, R. Selection of the order of an autoregressive model by Akaike’s information criterion. Biometrika 1976, 63, 117–126. [Google Scholar] [CrossRef]
  9. Hannan, E.J. The estimation of the order of an ARMA process. Ann. Stat. 1980, 8, 1071–1081. [Google Scholar] [CrossRef] [Scilit]
  10. Hannan, E.J.; Kavalieris, L. A method for autoregressive-moving average estimation. Biometrika 1984, 71, 273–280. [Google Scholar] [CrossRef]
  11. Huang, H.H.; Chan, N.H.; Chen, K.; Ing, C.K. Consistent order selection for ARFIMA processes. Ann. Stat. 2022, 50, 1297–1319. [Google Scholar] [CrossRef] [Scilit]
  12. Davis, W.W. Robust interval estimation of the innovation variance of an Arma model. Ann. Stat. 1977, 5, 700–708. [Google Scholar] [CrossRef] [Scilit]
  13. Mann, H.B.; Wald, A. On the statistical treatment of linear stochastic difference equations. Econometrica 1943, 11, 173–220. [Google Scholar] [CrossRef] [Scilit]
  14. McElroy, T.S.; Politis, D.N. Time Series: A First Course with Bootstrap Starter; Taylor & Francis/CRC: Boca Raton, FL, USA, 2020. [Google Scholar]
  15. Anderson, T.W. The Statistical Analysis of Time Series; Wiley: Hoboken, NJ, USA, 1971. [Google Scholar]
  16. Hannan, E.J. The asymptotic theory of linear time-series models. J. Appl. Prob. 1973, 10, 130–145. [Google Scholar] [CrossRef] [Scilit]
  17. Kreiss, J.P. A note on M-estimation in stationary ARMA processes. Stat. Risk Model. 1985, 3, 317–336. [Google Scholar] [CrossRef] [Scilit]
  18. Yao, Q.; Brockwell, P.J. Gaussian maximum likelihood estimation for ARMA models I: Time series. J. Time Ser. Anal. 2006, 27, 857–875. [Google Scholar] [CrossRef] [Scilit]
  19. Chan, N.H.; Ling, S.; Yau, C.Y. Lasso-based variable selection of ARMA models. Stat. Sin. 2020, 30, 1925–1948. [Google Scholar] [CrossRef] [Scilit]
  20. Anderson, T.W. Estimation for autoregressive moving average models in the time and frequency domains. Ann. Stat. 1977, 5, 842–865. [Google Scholar] [CrossRef] [Scilit]
  21. Durbin, J. Efficient estimation of parameters in moving-average models. Biometrika 1959, 46, 306–316. [Google Scholar] [CrossRef] [Scilit]
  22. Hamilton, J.D. Time Series Analysis; Princeton University Press: Princeton, NJ, USA, 1994. [Google Scholar]
  23. Hannan, E.J.; Rissanen, J. Recursive estimation of mixed autoregressive-moving average order. Biometrika 1982, 69, 81–94. [Google Scholar] [CrossRef] [Scilit]
  24. Pötscher, B.M. Estimation of autoregressive moving-average order given an infinite number of models and approximation of spectral densities. J. Time Ser. Anal. 1990, 11, 165–179. [Google Scholar] [CrossRef] [Scilit]
  25. Duong, Q.P. On the choice of the order of autoregressive models: A ranking and selection approach. J. Time Ser. Anal. 1984, 5, 145–157. [Google Scholar] [CrossRef] [Scilit]
  26. Claeskens, G.; Hjort, N.L. Model Selection and Model Averaging; Cambridge University Press: New York, NY, USA, 2008. [Google Scholar]
  27. Pötscher, B.M.; Srinivasan, S. A comparison of order estimation procedures for ARMA models. Stat. Sin. 1994, 4, 29–50. [Google Scholar]
  28. Mallows, C. Some comments on Cp. Technometrics 1973, 15, 661–676. [Google Scholar]
  29. Olive, D.J.; Hawkins, D.M. Variable selection for 1D regression models. Technometrics 2005, 47, 43–50. [Google Scholar] [CrossRef] [Scilit]
  30. Bürkner, P.-C.; Gabry, J.; Vehtari, A. Approximate leave-future-out cross-validation for Bayesian time series models. J. Stat. Comput. Sim. 2020, 90, 2499–2523. [Google Scholar] [CrossRef] [Scilit]
  31. Liao, J.; Zou, G.; Go, Y.; Zhang, X. Model averaging prediction for time series models with a diverging number of parameters. J. Econom. 2021, 223, 190–221. [Google Scholar] [CrossRef] [Scilit]
  32. Frey, J. Data-driven nonparametric prediction intervals. J. Stat. Plan. Inf. 2013, 143, 1039–1048. [Google Scholar] [CrossRef] [Scilit]
  33. Olive, D.J. Asymptotically optimal regression prediction intervals and prediction regions for multivariate data. Int. J. Stat. Prob. 2013, 2, 90–100. [Google Scholar] [CrossRef] [Scilit]
  34. White, H. Asymptotic Theory for Econometricians; Academic Press: San Diego, CA, USA, 1984. [Google Scholar]
  35. Chen, M.-H.; Shao, Q.-M. Monte carlo estimation of Bayesian credible and HPD intervals. J. Comput. Graph. Stat. 1999, 8, 69–92. [Google Scholar] [CrossRef] [Scilit]
  36. Lee, Y.S.; Scholtes, S. Empirical prediction intervals revisited. Int. J. Forecast. 2014, 30, 217–234. [Google Scholar] [CrossRef] [Scilit]
  37. Masters, T. Neural, Novel, & Hybrid Algorithms for Time Series Prediction; Wiley: New York, NY, USA, 1995. [Google Scholar]
  38. Hyndman, R.J.; Khandakar, Y. Automatic time series forecasting: The forecast package for R. J. Stat. Softw. 2008, 27, 1–22. [Google Scholar] [CrossRef] [Scilit]
  39. Hyndman, R.J.; Athanasopoulos, G. Forecasting: Principles and Practice, 2nd ed.; OTexts: Melbourne, Australia, 2018. [Google Scholar]
  40. Welagedara, W.A.D.M. Model Selection, Data Splitting for ARMA Time Series, and Visualizing Some Bootstrap Confidence Regions. Ph.D. Thesis, Southern Illinois University, Carbondale, IL, USA, 2023. Available online: http://parker.ad.siu.edu/Olive/swelagedara.pdf (accessed on 15 January 2026).
  41. Haile, M.G. Inference for Time Series after Variable Selection. Ph.D. Thesis, Southern Illinois University, Carbondale, IL, USA, 2022. Available online: http://parker.ad.siu.edu/Olive/shaile.pdf (accessed on 15 January 2026).
  42. Lu, X.; Wang, L. Bootstrap prediction interval for ARMA models with unknown orders. Revstat-Stat. J. 2020, 18, 375–396. [Google Scholar]
  43. Pan, L.; Politis, D.N. Bootstrap prediction intervals for linear, nonlinear, and nonparametric autoregressions. J. Stat. Plan. Inf. 2016, 177, 1–27. [Google Scholar] [CrossRef] [Scilit]
  44. Hong, L.; Kuffner, T.A.; Martin, R. On overfitting and post-selection uncertainty assessments. Biometrika 2018, 105, 221–224. [Google Scholar] [CrossRef] [Scilit]
  45. Bhansali, R.J. Effects of not knowing the order of an autoregressive process on the mean squared error of prediction-I. J. Am. Stat. Assoc. 1981, 76, 588–597. [Google Scholar]
  46. Blázquez-García, A.; Conde, A.; Mori, U.; Lozano, J.A. A review on outlier/anomaly detection in time series data. ACM Comput. Surv. 2021, 54, 56. [Google Scholar] [CrossRef] [Scilit]
  47. Jones, R.H. Maximum likelihood fitting of ARMA models to time series with missing observations. Technometrics 1980, 22, 389–395. [Google Scholar] [CrossRef]
  48. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2024; Available online: www.R-project.org (accessed on 15 January 2026).
Table 1. ARMA, proportion of runs where a consistent model was selected; ϕ = 0.4 , θ = 0.7 , R AIC for auto.arima; r ^ for the Pötscher method; I for the new method.
Table 1. ARMA, proportion of runs where a consistent model was selected; ϕ = 0.4 , θ = 0.7 , R AIC for auto.arima; r ^ for the Pötscher method; I for the new method.
nDistR AIC r ^ I
50N0.1510.5610.561
200N0.2390.9790.979
500N0.1521.001.00
2000N0.2491.001.00
50t0.1510.6090.609
200t0.2390.9440.944
500t0.1091.001.00
2000t0.2331.001.00
50U0.1530.5590.559
200U0.2410.9530.953
500U0.2290.9820.982
2000U0.3091.001.00
50sEXP0.1490.5690.569
200sEXP0.2410.9590.959
500sEXP0.1790.9950.995
2000sEXP0.2631.001.00
Table 2. Proportion of runs where a consistent model was selected; tstype = 5; R AIC for auto.arima; r ^ for the Pötscher method; I for the new method.
Table 2. Proportion of runs where a consistent model was selected; tstype = 5; R AIC for auto.arima; r ^ for the Pötscher method; I for the new method.
nDistR AIC r ^ I
500N0.2510.3810.364
800N0.2790.6920.609
1000N0.3610.6480.619
1500N0.3570.9430.832
2000N0.5141.000.954
500t0.2190.3540.324
800t0.2830.6540.584
1000t0.3540.7930.739
1500t0.3590.9390.793
2000t0.3890.9690.904
500U0.2190.4090.339
800U0.2290.7130.680
1000U0.3240.8390.761
1500U0.4340.9640.879
2000U0.5240.9830.963
500sEXP0.2790.3620.301
800sEXP0.3230.6190.519
1000sEXP0.4190.7740.663
1500sEXP0.3690.9390.889
2000sEXP0.3940.9940.909
Table 3. One-step-ahead PIs after model selection, coverages, and lengths.
Table 3. One-step-ahead PIs after model selection, coverages, and lengths.
nDistCov/LenPI (12)PI (F)PI (9)
100Ncov0.95920.94420.9476
100 len4.32143.88573.9341
100t5cov0.95500.94120.9434
100 len5.67475.00155.0637
100Ucov0.97760.98420.9860
100 len2.19922.25382.2819
100sEXPcov0.95400.94060.9424
100 len3.79893.85043.8983
400Ncov0.95000.94700.9476
400 len3.99903.91193.9239
400t5cov0.94440.94040.9412
400 len5.23645.04555.0609
400Ucov0.95760.99880.9992
400 len1.96442.25932.2662
400sEXPcov0.95780.95080.9518
400 len3.29353.90473.9166
800Ncov0.95260.95140.9520
800 len3.94453.91473.9206
800t5cov0.94800.94520.9456
800 len5.16045.04915.0568
800Ucov0.95240.99940.9994
800 len1.92552.26052.2640
800sEXPcov0.94380.94100.9410
800 len3.18423.91473.9207
Table 4. One-step-ahead PIs after model selection, ϕ = 0.4 , θ = 0.7 .
Table 4. One-step-ahead PIs after model selection, ϕ = 0.4 , θ = 0.7 .
nModel Selection MethodCov/LenPI (10)PI (12)PI (F)
100Acov0.95080.95100.9380
100Alen5.69645.69485.0013
100Pcov 0.95740.9334
100Plen 5.98874.9387
200Acov0.94760.95080.9426
200Alen5.47925.39645.0300
200Pcov 0.95540.9432
200Plen 5.51535.0007
400Acov0.94780.95140.9482
400Alen5.39715.24085.0444
400Pcov 0.95160.9490
400Plen 5.29185.0323
Table 5. One-step-ahead PIs after model selection, random walk, e t N ( 0 , 1 ) .
Table 5. One-step-ahead PIs after model selection, random walk, e t N ( 0 , 1 ) .
nCov/LenPI (10)PI (12)PI (F)
100cov0.96800.96720.9494
100len4.36714.47963.8887
200cov0.95460.95280.9432
200len4.09994.12373.9036
400cov0.95340.95080.9498
400len3.98974.00353.9129
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Welagedara, W.A.D.M.; Haile, M.G.; Olive, D.J. ARIMA Model Selection and Prediction Intervals. Axioms 2026, 15, 228. https://doi.org/10.3390/axioms15030228

AMA Style

Welagedara WADM, Haile MG, Olive DJ. ARIMA Model Selection and Prediction Intervals. Axioms. 2026; 15(3):228. https://doi.org/10.3390/axioms15030228

Chicago/Turabian Style

Welagedara, W. A. Dhanushka M., Mulubrhan G. Haile, and David J. Olive. 2026. "ARIMA Model Selection and Prediction Intervals" Axioms 15, no. 3: 228. https://doi.org/10.3390/axioms15030228

APA Style

Welagedara, W. A. D. M., Haile, M. G., & Olive, D. J. (2026). ARIMA Model Selection and Prediction Intervals. Axioms, 15(3), 228. https://doi.org/10.3390/axioms15030228

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop