Abstract
Traffic management authorities in metropolitan areas use real-time systems that analyze high-frequency measurements from fixed sensors, to perform short-term forecasting and incident detection for various locations of a road network. Published research over the last 20 years focused primarily on modeling and forecasting of traffic volumes and speeds. Traffic occupancy approximates vehicular density through the percentage of time a sensor detects a vehicle within a pre-specified time interval. It exhibits weekly periodic patterns and heteroskedasticity and has been used as a metric for characterizing traffic regimes (e.g. free flow, congestion). This article presents a Bayesian three-step model building procedure for parsimonious estimation of Threshold-Autoregressive (TAR) models, designed for location- day- and horizon-specific forecasting of traffic occupancy. In the first step, multiple regime TAR models reformulated as high-dimensional linear regressions are estimated using Bayesian horseshoe priors. Next, significant regimes are identified through a forward selection algorithm based on Kullback-Leibler (KL) distances between the posterior predictive distribution of the full reference model and TAR models with fewer regimes. Given the regimes, the forward selection algorithm can be implemented again to select significant autoregressive terms. In addition to forecasting, the proposed specification and model-building scheme, may assist in determining location-specific congestion thresholds and associations between traffic dynamics observed in different regions of a network. Empirical results applied to data from a traffic forecasting competition, illustrate the efficacy of the proposed procedures in obtaining interpretable models and in producing satisfactory point and density forecasts at multiple horizons.
Keywords: Threshold autoregressive model, nonlinear time series, horseshoe prior, regime-switching models, subset selection, traffic occupancy, urban network
2010 SUBJECT CLASSIFICATION: 62M10
1. Introduction
Rising populations in major cities add stress to traffic management systems tasked with monitoring real-time traffic variables to proactively reduce congestion. Ever since [1] used ARIMA models to forecast measurements from freeways in large US cities – Los Angeles, Minneapolis, and Detroit – significant efforts have been devoted to analyze the massive amount of data collected in transportation networks. The global concern has manifested through independent research in major cities, in countries such as the United Kingdom [22,74], Greece [44,81,82], Italy [3,63], China [42,61,78], and Ethiopia [37]. The state of short-term traffic forecasting 20 years ago has been reviewed in [79], while [87] summarize recent advancements and propose 10 challenges to the research community.
The timely detection of a traffic incident (e.g. recurring or non-recurring congestion) and the accuracy of a corresponding control action (e.g. change of traffic signal plan) rely on efficient modeling and accurate short-term forecasting of important traffic variables. Nowadays, online systems for traffic forecasting can implement multiple forecasting specifications, which are updated on a regular basis (e.g. weekly) and compute forecasts for different horizons using adaptive, or regime-switching combination schemes. Similar systems are used to compute forecasts for wind farm or solar panel energy outputs [76] Three variables have been used to quantify traffic congestion: flow (volume per time), speed and occupancy (the percent of time a detection zone is occupied) [35]. Traffic occupancy is used by traffic control centers as a quality assessment measure, to characterize network links as ‘congested’ [91], if some location-specific thresholds have been exceeded. Hence control actions such as switching of traffic signal plans, depend primarily on the level of occupancy [46]. Previous efforts adopted the same modeling strategies as the ones used for other traffic variables [44], although the dynamics of occupancy, which is bounded on the interval, are harder to forecast accurately [51].
Like speed and volume, occupancy exhibits changes in mean and variance as traffic dynamics fluctuate between free flow and congestion in urban environments. The parametric, piecewise linear, threshold autoregressive (TAR) process, first discussed in [83], is a conditional regime-specific autoregressive (AR) model, with regimes that depend on the levels of a transition variable. TAR have been designed to model cyclical and asymmetric phenomena, for which linear models do not offer satisfactory representation. Such piecewise linear specifications, estimated using a frequentist quantile regression approach, have been used to forecast traffic volumes in [43,45]. TAR is appealing to practitioners because it is interpretable: some states are expected to correspond to ‘free-flow’ and others to ‘congestion’ and the regime-specific coefficients provide useful input with regard to controls that should be exercised to improve traffic flow.
Frequentist analysis of the TAR model is typically implemented in two stages, with regime-specific parameters estimated conditional on the transition variable and the threshold parameter. On the other hand, Bayesian methods allow simultaneous inference on all parameters [8,18,30]. Hence uncertainty about the transition variable and the threshold parameter can be incorporated into estimation and inference [19]. Campbell [9] applied reversible jump Markov chain Monte Carlo to select regime-specific AR orders; subset selection of TAR via stochastic search [26] was conducted by [16,80]. In the aforementioned articles, the specifications are restricted to possess at most three regimes. Chan et al. [15] expressed the nonlinear TAR model as a high-dimensional linear regression, which can be effective even when the number of regimes is large. In this case, multi-step procedures based on penalized estimators are used to identify the regimes and estimate regime-specific dynamics [13]. The Bayesian approach of Pan et al. [66] operates similarly by utilizing a sequence of binary inclusion variables to identify change points and select regimes.
This paper combines the regression framework proposed for TAR in [15], with a Bayesian three-step procedure, which automates regime identification and sparse subset AR estimation within regimes. In contrast with [66], the methodology can use existing samplers for high-dimensional regression, for instance the R package bayesreg [77]. Thus the proposed methodology can produce results for t-distributed responses, which is advantageous for applications based on measurements that relate to incidents, outliers, etc. Furthermore, to the best of our knowledge, previous analyses of Bayesian TAR did not investigate important theoretical properties of the samplers, such as geometric ergodicity. Based on [65], hierarchical estimation schemes analogous to the ones adopted here can produce geometrically ergodic Markov chains, which ensure strongly consistent estimation of intractable posterior expectations. Finally, typical applications of penalized estimators such as Lasso, or adaptive LAD Lasso, in problems analogous to ours [45], do not produce confidence or credible intervals for the estimated coefficients and the associated forecasts. In what follows, forecasts are computed by averaging over the posterior samples of the coefficients and scale parameters, allowing estimation uncertainty to be taken into account in the prediction process.
Our methodology is summarized as follows. First, a saturated TAR model is estimated using Bayesian regularization; our analyses were mostly based on a modified horseshoe prior [4,11,12]. Next, the Kullback-Leibler (KL) divergence [48] combined with forward selection, identifies the regimes by comparing posterior predictive distributions of the linear AR to multiple-regime TAR models. This projection-based regime-identification procedure is novel to our knowledge; our numerical experiments suggest that it reduces dramatically the number of columns in the matrix of predictors, and consequently, the computational burden of the real-time implementation. Given a restricted set of regimes, the same procedure is repeated to select the relevant terms within each regime. The result is a parsimonious TAR model with a posterior predictive distribution close in KL distance to the posterior predictive distribution from the full model. In addition to reducing the number of computations in the real-time implementation phase, the adopted strategy provides interpretable models that can help practitioners to identify location-dependent traffic regimes and act, for instance by modifying traffic signal plans, if some location-specific thresholds are expected to be exceeded.
The proposed methods are used to estimate location- day- and horizon-specific models for traffic occupancies. Forecasts for short horizons are typically used from traffic management centers as input in control optimization algorithms, whereas forecasts for longer horizons can be disseminated to the public [91]. The paper provides a detailed evaluation of out-of-sample forecasting performance, using some challenging time series from the 2013 forecasting competition organized by Transportation Research Board's committee on Artificial Intelligence and Advanced Computing Applications. The data is presented in Section 2, while Section 3 discusses TAR models and their high-dimensional linear representation. Section 4 presents a novel Bayesian estimation, regime identification and subset selection strategy. The proposed methods are evaluated in two simulation experiments in Section 5. Section 6 presents forecasting models for occupancies, which are assessed using the mean absolute scaled measure of forecast accuracy (MASFE) proposed in [39] and Section 7 concludes the paper.
2. TRANSportation data FORecasting Competition (TRANSFOR)
The analyzed data were used in the 2013 TRANSportation Data FORecasting Competition (TRANSFOR); results were announced at the 92nd annual meeting of the Transportation Research Board (TRB) in Washington D.C. [43]. The National Technical University of Athens provided traffic occupancy collected every 90 seconds in April 2000 from seven loop detectors, abbreviated . The detectors are located in Alexandras Avenue, a significant arterial in Athens, the capital of Greece. Figure 1 depicts the network, with arrows representing direction of traffic flow: detectors A, B, C, and D measure traffic occupancy in the westbound, and detectors E, F, and G, in the eastbound direction.
Figure 1.

Locations of loop detectors along Alexandras Ave. in Athens, Greece: arrows indicate direction of traffic flow.
Analysis of raw traffic occupancies measured on 90-second intervals can be problematic due to the large amount of data and the low signal to noise ratio [87]. Temporal aggregation to larger intervals, i.e. 15 min has been practiced over the years as a smoothing technique prior to modeling: this diminishes nonlinear and heteroskedastic dynamics in the underlying signal [86] and makes short-term forecasting irrelevant for short horizons, which are useful to modern Traffic Control Centers. Rather than modeling across different levels of temporal aggregation as in [78], in this work traffic occupancy is aggregated to 3 minute intervals resulting in 480 daily time points per location.
Data during April 2000 covers four complete weeks; the first three are used to fit TAR models and the last week is utilized to evaluate forecasting performance. Similar with numerous previous studies, our analysis ignores weekend data. Time series plots of observed occupancies are depicted in Figure 2; some of their inherent characteristics (e.g. erroneous values and outliers due to incidents) make short-term forecasting challenging.
Figure 2.
Traffic occupancy for all TRANSFOR locations, aggregated on 3-minute intervals: shaded region indicates the forecasting period.
3. Threshold autoregressive model
3.1. Transformed occupancy
Let represent traffic occupancy for location L at time t, with denoting an observed value. For each location , day of the week , and horizon , -specific TAR models are built to forecast , where . In the application that follows the chosen levels of h correspond to forecasting 3, 9 and 15 minutes ahead. The purpose of h-specific models is to ensure that possible mis-specification errors of models that produce 1-step ahead forecasts do not propagate through the chain rule; furthermore horizon-specific models provide additional input to practitioners, related to how traffic propagates.
The specifications that follow aim to capture the dynamics of . The logit transformation, with , has been used for proportional time series at least since [88] and has been included in the extended family of transformations, seeking to obtain approximate linearity in the transformed scale for bounded responses [27]. Occupancy is bounded on the interval; recoding 0 with 0.0001 and 1 with 0.9999 was implemented to handle extreme values for which is undefined. Figure 3 displays the transformed series .
Figure 3.
Logit-transformed traffic occupancy aggregated on 3-minute intervals for all locations: shaded regions indicate the forecasting period.
Essentially, each MCMC cycle produces a set of coefficients that can be combined with the predictors of the regression model in the testing sample, to produce forecasts. Density forecasts are derived by back-transforming the resulting samples, using the inverse-logit transformation. Specifically, evaluation of forecasts takes place on the original scale, using where . Since is a nonlinear transformation, the forecast . Unbiased forecasts and quantiles are produced from , where represents S posterior samples obtained from the posterior predictive distribution , with .
3.2. -specific TAR models
follows a TAR process of order P with m + 1 regimes if
| (1) |
where , , and . The vector of thresholds with , divides the process into m + 1 regimes. The sequence of errors is assumed to be i.i.d. with zero mean and unit variance. represents the maximum short-term lag relevant for forecasting, which should be chosen large enough to cover relevant temporal dependencies across all traffic regimes.
For the illustrative purposes of this work, Equation (1) is more rigid than the classic structure in [18]. Often a delay parameter d is introduced and drives regime changes; following [15], d is assumed known, with d = h. Hence, the most recent realization determines the current state, which is a reasonable assumption for traffic models and results in ‘self-exciting’ TAR [31]. Furthermore, rather than utilizing regime-specific variance parameters , homoskedasticity is assumed. It is worth highlighting that linear regression model with heteroskedasticity of unknown form can be specified as a regression model with independent Student-t errors [47]; such specifications will be discussed in the application.
3.3. High-dimensional linear representation
The regression design for estimating (1), which is presented below, follows from the frequentist analysis in [13,15]. Large values of m, the number of possible thresholds in , may lead to high-dimensional designs; in such cases parameter estimation is typically based on penalized schemes. Analogous penalized estimators have been applied in change-point analysis for i.i.d. [7] and time series data [14]. Change-point analysis [59] is based on structural break autoregressive processes [28,38], with a time index taking the role of the threshold variable. Giordani et al. [33] proposed a unifying framework for change point and nonlinear time series models and [15] modified the change-point methodology in [14] to estimate threshold models, by constructing a new design matrix and by proving that the convergence rates for the threshold estimators are different relative to change-point estimators.
Specifically, let denote the observed time series, with , , and define the model matrix , with , as:
The second column in contains the h-specific transition variable. Let designate the sorting function, with denoting the time index of the ith smallest element in , , and
are essentially , , and , sorted according to the order statistics of the transition variable. The reordered is assumed i.i.d. with mean 0 and variance .
To reduce the computational burden, it makes sense to limit the TAR model to possess at most m + 1 regimes, requiring the estimation of m thresholds in the range of the transition variable. Let denote the sample quantile function and consider a sequence of m evenly spaced percentiles, such that . For a fully saturated TAR model limited to regimes, fix a-priori the vector of thresholds ; for , let represent the number of elements in less than and define:
The -regime TAR process can be expressed as a linear regression:
| (2) |
where is a model matrix and is a vector of coefficients grouped by regime. From Equation (1), set : starting with , the state dependent coefficient group with represents the marginal adjustment in dynamics when crosses the threshold .
The high-dimensional regression designs presented in [13,15], correspond to fully saturated TAR models where every realization in the series resides in a different regime. On the other hand, the linear form of TAR in Equation (2) arises from restricting the set of possible thresholds to a finite set of quantiles, based on the sampled transition variable. To restrict estimation of the m thresholds to the range of , slightly informative uniform priors bounded by empirical quantiles and ensure that at least of the data belong in the lowest and highest regime [17,18,54,55]; in this work and , following [36].
For the -specific models presented in the application, the maximum number of thresholds is fixed to m = 50 and P = 7, corresponding to the last 21 minutes of traffic information. The model matrix of the fully saturated 51-regime TAR has dimension . The fitting period for each model contains T = 1440 discrete time realizations of leading to . A straightforward extension of the above TAR models would include information from neighboring locations, as in [45], increasing the number of predictors per regime and leading to high-dimensional regressions for a sufficiently large number of neighbors.
The predetermined threshold vector constructed from m evenly spaced percentiles ensures that approximately of the full time series is represented in each potentially relevant regime. These modifications to the framework presented in [13,15] ensure that the dimensionality of the parameter space is not unnecessarily large. Based on this approach, it is recommended to select m large enough to result in a dense set of quantile-based thresholds, so that a-priori mis-specification of is avoided.
3.4. Baseline seasonal models
In previous studies, seasonal autoregressive integrated moving average models (SARIMA) have been used to forecast traffic data [32,90,94]. As noted in [49], these specifications require large databases of historical measurements to estimate periodicity accurately. Here, similar to [49], a 3 day period is utilized for model training, which is relatively short for traffic applications. For a similar dataset, Kamarianakis et al. [44] applied a smoothing spline with 150 degrees of freedom to characterize daily patterns; such daily profiles typically correspond to static baseline forecasts, which are very ‘cheap’ in their online implementation.
In this work, baseline forecasts are based on harmonic models. Specifically, regressions which estimate daily occupancy profiles from a linear specification over a Fourier basis [53,60] capture weekly and daily periodicities [44]. The harmonic model is restricted to the first H terms of the Fourier series; are again assumed i.i.d. with mean 0 and unit variance:
| (3) |
Equation (3) is a linear regression:
| (4) |
where , , and . The model matrix is formulated as , where is a vector of 1s and and are matrices containing the Fourier sine and cosine terms, respectively. As h increases, -specific harmonic models are expected to dominate over -specific TAR.
For -specific harmonic models, the number of sine/cosine pairs H must be less than half the period [53]. Preliminary regularized estimation of these models using adaptive LASSO [95] indicated that the largest significant harmonic of the model in Equation (3) across locations and days was for j = 139. Before estimating location- and day-specific profiles under the Bayesian framework, a maximum number of harmonics, H = 150, is chosen. The vector contains 2H + 1 = 301<1440 = T parameters; to ensure weekly periodic signals are smooth, sparse estimation of is performed using shrinkage priors, which are discussed in the next Section.
4. Bayesian estimation, regime identification, and subset selection
The purpose of representing the -regime TAR process as a linear regression is to make Bayesian posterior estimation and model selection computationally feasible for multiple-regime TAR. The fully saturated regression nests a finite, but extensive, library of -regime subset TAR models, where , which includes all linear subset AR models. For simplicity, let . A-priori it is expected that is small, implying that only of the vectors in are nonzero. Hence it is anticipated that is sparse.
To simultaneously estimate , choose and identify the thresholds, Chan et al. [15] recommended the (penalized) group LASSO estimator [93]:
| (5) |
The parameter λ controls regularization, denotes the -norm, and is the -norm. When is constructed as in [15], the set of thresholds identified from estimates the true thresholds consistently, if the true is known a-priori. In practice, is unknown, and overestimates the number of regimes. Second stage selection of the best subset of the group LASSO identified thresholds via penalized information criteria, i.e. AIC [52], BIC [92], or MDL [21], leads to consistent estimation of the true set of thresholds [15]. The three-step procedure of [13], primarily based on a group orthogonal greedy algorithm (GOGA) and high-dimensional information criteria (HDIC), significantly outperformed the two-step group LASSO approach in [15].
What has a Bayesian approach to offer relative to standard penalized estimators? First, Bayesian estimators can be relatively easily modified to produce results for t-distributed (or Laplace) innovations, which is advantageous for the application we consider, as some measurements may relate to outliers, incidents etc. Furthermore, typical applications of penalized estimators such as Lasso, or adaptive LAD Lasso, in problems analogous to ours (see for instance [45]), do not compute confidence or credible intervals for the estimated coefficients and the associated forecasts.
4.1. Bayesian estimation
4.1.1. Conditional likelihood
Bayesian inference is based on the full posterior distribution , which is proportional to the product of the likelihood with the prior :
| (6) |
Given the linear model , stems from a distributional assumption about the errors in . In what follows we make the conventional assumption which produces the normal regression model:
| (7) |
where is a T-dimensional Multivariate normal distribution and is a identity matrix. For future reference, we let TAR and SEAS denote the normal regression models from Equations (2) and (4); in both TAR and SEAS, Jeffreys' prior is used for . Derivation of the inverse-gamma full conditional distribution for for both linear models is presented in [77].
4.1.2. Horseshoe+ priors for penalized regression
Mallick and Yi [58] presents an overview of Bayesian model selection in high-dimensional linear models. Estimates based on continuous scale-mixture priors [64,72] have been proposed to approximate the spike-and-slab shape of discrete mixture priors [10,26,40,41,50,56,62]. Specifically, the Bayesian horseshoe (BHS) estimator of [11,12] has been successful in the estimation and detection of sparse signals; furthermore BHS possesses desirable theoretical properties and computational feasibility in high dimensions [20,67,70,73,84]. The BHS prior falls in the class of shrinkage priors with global-local hierarchical representations [72]. A global tuning parameter is used to enforce variable selection by shrinking coefficients toward 0; similar to adaptive LASSO, BHS utilizes additional coefficient-specific tuning parameters to ensure that significant effects are not over-shrunk.
The horseshoe+ estimator () of [4] results from a slightly modified hierarchy with additional tuning on the local level. Specifically, the hierarchical prior for each parameter in the full parameter vector is represented as:
| (8) |
where denotes the half-Cauchy distribution. Theoretical and empirical advantages of relative to BHS in the high-dimensional regression setting, are presented in [5]. is adopted in the TAR and SEAS models that follow, since it provides better detection of ultra-sparse signals than the original BHS [4]. Thus is appropriate in the general setting in which location-specific models include information from various locations in a network, resulting in high-dimensional regressions in the first modeling stage, before projection-based regime identification.
The original hierarchy in Equation (8) makes posterior sampling difficult since full conditional distributions are not obtainable. By exploiting the scale-mixture decomposition of the half-Cauchy using inverse gamma distributions, abbreviated , Wand et al. [89] and Makalic and Schmidt [57] derived full conditional distributions for all parameters in . Thus Gibbs sampling [24,25] can be utilized to sample from the full posterior distribution . Equation (9) reflects the changes to the hierarchy for each parameter in :
| (9) |
4.1.3. Posterior sampling
Even though shrinkage priors are applied for both TAR and SEAS, posterior means of irrelevant effects in and will never equal 0. Let represent the fully saturated TAR model fitted using . The primary goal of the next two steps is to search for the best sub-model from the different possible sub-models ; when m = 50 and P = 7, there are subset TAR models. Hence in order to reduce computations in the real-time implementation of the forecasting models, it is beneficial to adopt a strategy, similar to the one outlined in [68]: first identify a model that predicts well, then find a minimal subset of terms that provide similar predictions. This strategy has shown empirically very good performance in comparison to other methods with good tradeoff between sparsity and predictive accuracy [71].
4.2. Regime identification
The samples and from the joint posterior distribution
provide a starting point for forecasting since priors were used to enforce sparsity. Under , density forecasts at time T + 1 can be obtained from the posterior predictive distribution:
Assuming produces reasonable forecasts, it can serve as a valid reference model. Given a simpler submodel , the Kullback-Leibler (KL) divergence [48] measures the distance between their posterior predictive distributions [23,34]; if the discrepancy between and is not significant, the more parsimonious model is favored.
Samples and from the joint posterior distribution
are obtained via projection, hence repeated Gibbs sampling is not necessary. In this representation, and contains the columns of associated with the sub-model . Piironen and Vehtari [71] derived analytical solutions to acquire the projected samples and measure the KL divergence from forecasts under versus for linear Gaussian models. The sth posterior sample is given by:
| (10) |
For each posterior draw from , the associated KL divergence is formulated as:
| (11) |
Averaging the KL divergences across all posterior samples estimates the overall discrepancy between posterior predictive distributions of and :
| (12) |
Using these concepts, surveying the entire model space is avoided by employing a forward stepwise selection algorithm similar to [69]. Starting with the linear AR model, denoted where if j>1 and , the initial discrepancy represents the maximum divergence between the fully saturated and all nested TAR models with less than regimes. For each , is added to and the best 2-regime TAR model that minimizes the discrepancy in Equation (12) is selected. Likewise, this procedure is continued to identify the best 3-regime TAR, 4-regime TAR, and j-regime models, denoted , , and , respectively. Although this process can be continued up to j = m + 1, where , a stopping rule is enforced based on relative explanatory power (RelE) [23]:
| (13) |
Based on the additive properties of KL, RelE strictly increases from 0 to 1. In the traffic forecasting application, regime-specific AR parameter groups are added until RelE exceeds 0.95. It was observed that this choice, which was adopted in previous works [68] and was implemented by modifying the codes provided in [69], leads satisfactory forecasting accuracy relative to the full models. Moreover, it produces parsimonious, interpretable specifications in most cases, which are far less demanding in terms of computations in the online stage relative to the full model. In addition, this strategy can help practitioners identify location-dependent traffic regimes that correspond to congestion, free-flow, etc., and act, for instance by modifying traffic signal plans if some thresholds have been or are expected to be exceeded. This is an important secondary application of the adopted specifications; an alternative method to identify traffic regimes was based in quantile regressions [91].
4.3. Subset variable selection
Let indicate the AR parameter groups in selected via the algorithm outlined in Section 4.2. The final -regime TAR, designated as , is likely to include irrelevant parameter groups ( denotes the cardinality of a set). When some subset of the linear AR model is optimal, the initial discrepancy is small. As higher regime models are considered, the reduction in the discrepancy may decrease at a slow rate.
Let represent the ith parameter in the jth vector for and . Following regime identification, the set contains potentially relevant parameters in . Because may still contain irrelevant AR parameter groups, the regime identification stage can be considered a filtering step leading to a restricted model space with different -regime subset TAR where .
After fixing all to 0, the forward selection algorithm is repeated to search for the best and final subset TAR model , resulting in sparse estimation of Equation (2). The intercept-only model, where unless i = j = 1, is the starting point and identified as . Parameters from are added one-at-a-time to the intercept-only model to obtain a chain of optimal subset models . The superscript of these models does not indicate the number of regimes, but rather the number of nonzero parameters in . The final model is identified using the same stopping rule seen in Section 4.2. Based on the ordering of in Equation (2), the subset of parameters in selected in imply the optimal number of regimes , the optimal choice of the thresholds in δ, and the relevant parameters within each of the regimes.
This additional model-building step reduces further computations in the online implementation. For extended specifications that contain information from other locations of the network (in the presented application this would not make much sense as the TRANSFOR competition focused on a small part of the Athens network), the derived models may provide useful information to practitioners as they may reveal regime-specific associations of traffic dynamics observed in different locations of a network.
5. Monte Carlo experiments
Before applying the methodology presented in Section 4 to traffic data, we illustrate its performance using two Monte Carlo experiments, similar to the ones presented in [66]. Both DGPs are specified according to the classic TAR representation in Equation (1). In the linear specification , we consider m = 50 thresholds and fix P = 3. After Bayesian regularization, regime identification, and subset selection, the estimate is obtained for final model . Regime-specific coefficient groups , under Equation (1), are sequentially obtained given and for .
In both DGPs, 100 replications each of length 1000, with i.i.d. standard normal errors, are simulated. The delay d = h = 1 in all DGPs is assumed known. For the high-dimensional penalized regression, 5000 posterior samples are computed after a burn-in period of 5000, with a thinning of 20. For regime identification and subset variable selection, we use 0.95 as a stopping rule for RelE. We report the percentage of replications that correctly identified the number of regimes along with the percentage of replications that overestimated and underestimated the true m + 1. For replications that accurately identified the true number of regimes, we report the mean and standard deviation of posterior means for non-zero parameters including the thresholds when m + 1>1. The mean bias (MB) and root mean squared error (RMSE) are also reported to evaluate the overall estimation error across these replications.
5.1. Simulation 1
The first data generating process is AR(1):
| (14) |
Using the high-dimensional approach, we estimate the marginal change in autoregressive dynamics as thresholds are crossed. Autoregressive parameters correspond to one of 51 distinct regimes defined by a specific threshold; for each of regime, we evaluate the current state of the autoregressive parameters. Figure 4 traces the autoregressive estimates for all 100 replications as thresholds are passed. Solid black lines show the true paths of these estimates under Equation (14). The intercept is often estimated to be nonzero, but this is a parameter forced into every considered submodel. A numerical evaluation for Simulation 1 is provided in Table 1: our methodology correctly identifies the number of regimes 100% of the time and consistently estimates the non-zero parameters and σ accurately.
Figure 4.
Regime coefficient progression across possible thresholds for Simulation 1.
Table 1. Evaluation of Simulation 1.
| Parameter | Actual | Mean | SD | MB | RMSE | Correct(%) | Over(%) | Under(%) |
|---|---|---|---|---|---|---|---|---|
| 0.5 | 0.49 | 0.03 | −0.01 | 0.00 | – | – | – | |
| σ | 2 | 2.00 | 0.05 | −0.00 | 0.00 | – | – | – |
| m + 1 | 1 | – | – | – | – | 100 | 0 | 0 |
5.2. Simulation 2
Next, we consider the 2-regime TAR, which is similar to the one investigated in [66]:
| (15) |
The dynamics of this DGP is difficult to estimate as the two regimes possess similar structure with no intercept [13]. Using 0.95 as a stopping threshold for RelE in both the regime identification and variable selection, 79% of the replications identified correctly the number of regimes. All other replications led to final models with more than 2 regimes. Lowering the stopping rule for RelE to 0.9, thus favoring more parsimonious TAR models, results in improved identification of the number of regimes (84% accuracy). Figures 5 and 6 show the posterior means of autoregressive parameters for potential thresholds under both stopping rules. Likewise, Table 2 summarizes empirical performance, results corresponding to 0.9 stopping threshold given in parentheses. Estimation of the regime-specific parameters is excellent in both cases. Figures 5 and 6 and Table 2, suggest a difficulty in the estimation of the threshold ; the same problem has been observed in [66] where the true parameter was outside the 95% credible region.
Figure 5.
Coefficient progression across possible thresholds for Simulation 2 using 0.95 as a stopping threshold.
Figure 6.
Coefficient progression across possible thresholds for Simulation 2 using 0.90 as a stopping threshold.
Table 2. Evaluation of Simulation 2 (Results under 0.9 Stopping Rule Used are Given in Parentheses).
| Parameter | Actual | Mean | SD | MB | RMSE | Correct(%) | Over(%) | Under(%) |
|---|---|---|---|---|---|---|---|---|
| 0.5 | 0.49 (0.49) | 0.03 (0.04) | −0.01 (−0.01) | 0.03 (0.04) | – | – | – | |
| −0.5 | −0.50 (−0.50) | 0.07 (0.07) | −0.00 (−0.00) | 0.07 (0.07) | – | – | – | |
| σ | 2 | 2.00 (2.00) | 0.05 (0.05) | −0.00 (−0.00) | 0.05 (0.05) | – | – | – |
| −0.4 | −0.20 (−0.17) | 0.30 (0.35) | 0.20 (0.23) | 0.36 (0.41) | – | – | – | |
| m + 1 | 2 | – | – | – | – | 79 (84) | 21 (16) | 0 (0) |
6. Forecasting performance
6.1. Full models
Continuous shrinkage priors are implemented using R package bayesreg [77], which can handle Gaussian, Laplace and Student-t distributed and . The TAR and SEAS models contain large and design matrices; the full conditional distributions of and are based on and matrices, respectively. To obtain S posterior samples and , inversion of and is required. The algorithm of [75] performs fast Gibbs sampling in scenarios similar to our application, but for larger choices of m, and P, leading to high-dimensional designs, the algorithm of [6] is an efficient alternative. For both TAR and SEAS models, S = 5000 posterior samples after a burn-in period of 5000 and a thinning of 10 was large enough to ensure that the minimum effective sample size of all parameters was larger than 150 and that the multivariate effective sample size [85] was larger than 10000 in all examined cases. Figure 7 depicts the Geweke diagnostic [29] for the basic specifications that are based on Gaussian errors and estimate 408 coefficients per location and per day for h = 1. The observed Z-scores do not suggest large differences in means between the first (10%) and last (50%) parts of Markov chains.
Figure 7.
Distribution of calculated Geweke diagnostics for all coefficients and all models that correspond to h = 1.
How sensitive are the posterior distributions of the unknown coefficients and the forecasts to different choices of priors and alternative likelihood specifications? Figure 8 shows the estimated posterior means for all coefficients, of all models that correspond to h = 1, for the first 2 days of our study. It is evident that the choice of a likelihood which ‘robustifies’ models against outliers (Laplace) and/or heteroscedasticity (Student-t), is far more important than the choice of shrinkage priors in this evaluation.
Figure 8.
Posterior means of estimated coefficients for h = 1 for the first 2 days of the study. Horseshoe plus priors versus Horseshoe and double Exponential (Lasso) priors (top). Normal versus Laplace and Student-t errors combined with Horseshoe plus priors (bottom).
Forecasts from the 5 alternative full specifications for h = 1 are evaluated using the mean absolute scaled forecast error (MASFE) metric proposed in [39]:
| (16) |
represents the mean absolute error from a h-specific naive random walk (RW) model over the fitting period where equals the observed . Whenever MASFE, the model produces absolute forecast errors that are, on average, less than the forecast errors from a RW. Table 3 suggests that although naive, the RW should be included in the 'model-library' of an online system, since quite frequently it outperforms more complex specifications for h = 1. The choice of shrinkage priors does not influence results dramatically; double exponential priors perform slightly worse than BHS and , in accordance with what is reported in [5]. Interestingly ‘robustified-models’ based on Student-t(5) likelihoods achieve the best performance and should also be considered in the 'model-library' of an online system. The next section presents the model building steps for models with Gaussian errors and .
Table 3. 1-Step ahead MASFE forecast comparison for alternative likelihood-prior combinations.
| Location | ||||||||
|---|---|---|---|---|---|---|---|---|
| Full Model | Day | A | B | C | D | E | F | G |
| Normal | M | 0.99 | 1.07 | 0.88 | 1.04 | 1.77 | 0.81 | 1.44 |
| T | 0.92 | 1.07 | 1.03 | 0.96 | 1.38 | 1.01 | 1.88 | |
| Normal BHS | M | 0.99 | 1.09 | 0.88 | 1.04 | 1.76 | 0.82 | 1.45 |
| T | 0.92 | 1.07 | 1.03 | 0.96 | 1.38 | 1.01 | 1.90 | |
| Normal BLasso | M | 1.08 | 1.09 | 0.88 | 1.06 | 1.72 | 0.80 | 1.49 |
| T | 1.04 | 1.08 | 1.01 | 0.94 | 1.40 | 1.05 | 2.04 | |
| Laplace | M | 1.01 | 1.08 | 0.85 | 1.06 | 1.56 | 0.63 | 1.27 |
| T | 0.93 | 1.04 | 0.96 | 0.94 | 1.10 | 0.88 | 1.37 | |
| Student | M | 0.90 | 1.07 | 0.85 | 1.02 | 1.46 | 0.56 | 1.21 |
| T | 0.9 | 1.05 | 0.96 | 0.94 | 0.99 | 0.76 | 1.43 | |
6.2. Regime identification
The model building procedure outlined in Section 4 resulted in h-specific TAR models for the TRANSFOR data, which vary in complexity across locations and days. Final models range from linear, 1-regime AR(P), to nonlinear 9-regime TAR(P), when a 0.95 stopping threshold is used for RelE. Figure 9 summarizes models according to the number of regimes identified: more than 50% of all final models are either 2-regime or 3-regime TAR(P), which is in accordance with prior expectations for this application. It is worth highlighting that this implies a dramatic reduction in the number of coefficients that will be used in real-time, hence significant computational savings.
Figure 9.

Percentage of final models based on number of regimes.
Models with many regimes can be hard to explain; for the few scenarios where m + 1>5, we repeat our three-step algorithm lowering the stopping rule for RelE, to 0.9. Tables 4–6 display the estimated number of regimes for all -specific models. The final -specific TAR models for traffic occupancies vary in the number of selected regimes by location, day, and horizon. Figures 10–12 depict on the original [0-1]-interval, the m thresholds in occupancies that characterize traffic regimes. Horizontal lines represent scenarios where regime-switching behavior is absent.
Table 4. Number of Regimes Identified for 1-Step Ahead Models. Results corresponding to a reduced stopping threshold are given in parentheses.
| Location | |||||||
|---|---|---|---|---|---|---|---|
| Day | A | B | C | D | E | F | G |
| M | 1 | 2 | 1 | 2 | 3 | 2 | 4 |
| T | 2 | 5 | 4 | 1 | 2 | 3 | 3 |
| W | 4 | 5 | 3 | 1 | 3 | 4 | 3 |
| Th | 5 | 9 (4) | 4 | 3 | 7 (4) | 3 | 3 |
| F | 5 | 6 (2) | 3 | 5 | 2 | 3 | 2 |
Table 5. Number of Regimes Identified for 3-Step Ahead Models. Results corresponding to a reduced stopping threshold are given in parentheses.
| Location | |||||||
|---|---|---|---|---|---|---|---|
| Day | A | B | C | D | E | F | G |
| M | 3 | 2 | 2 | 2 | 4 | 2 | 2 |
| T | 2 | 6 (3) | 4 | 2 | 2 | 2 | 2 |
| W | 6 (4) | 4 | 3 | 2 | 3 | 3 | 5 |
| Th | 3 | 5 | 2 | 3 | 2 | 3 | 5 |
| F | 9 (5) | 5 | 4 | 6 (3) | 3 | 2 | 2 |
Table 6. Number of Regimes Identified for 5-Step Ahead Models. Results corresponding to a reduced stopping threshold are given in parentheses.
| Location | |||||||
|---|---|---|---|---|---|---|---|
| Day | A | B | C | D | E | F | G |
| M | 3 | 3 | 5 | 2 | 4 | 2 | 3 |
| T | 2 | 7 (3) | 6 (4) | 4 | 2 | 2 | 5 |
| W | 8 (3) | 6 (4) | 6 (3) | 3 | 2 | 3 | 6 (3) |
| Th | 5 | 7 (4) | 2 | 2 | 2 | 2 | 2 |
| F | 4 | 4 | 3 | 4 | 4 | 2 | 2 |
Figure 10.
Thresholds identified for 1-step ahead models using 0.95 as a stopping threshold in model building.
Figure 11.
Thresholds identified for 3-step ahead models using 0.95 as a stopping threshold in model building.
Figure 12.
Thresholds identified for 5-step ahead models using 0.95 as a stopping threshold in model building.
To illustrate the different models, we start with the model:
| (17) |
which is linear and outperforms in terms of forecasting accuracy both the harmonic model and the naive random walk. Only estimates for non-zero autoregressive terms are displayed; furthermore, these estimates in are sequentially modified in Equation (1) using . In Equations (18) and (19), occupancy thresholds are depicted on their original scale in parentheses. For the -specific TAR model, 2 regimes lead to optimal forecasting performance:
| (18) |
Finally, an example where a 3 regime model dominates is given by the -specific TAR:
| (19) |
Interestingly, in this case, the third regime corresponds to levels of occupancy greater than 0.73, which conforms with heavily congested traffic conditions.
Traffic occupancy forecasts are evaluated over the final week of April on the original -interval, using a rolling-window, without re-estimation. For each -specific TAR model, there are time points requiring forecasts. Using the -specific harmonic models estimated from the first three weeks of April, forecasts can be quickly calculated for all horizons. Figure 13 displays the SEAS models fitted to the last week of April. The 3-min ahead forecasts are depicted in Figure 14; figures corresponding to longer horizons are provided as supplemental files. In the TAR plots, credible regions are displayed instead of point forecasts for . The last Friday of April, which falls on a Greek holiday weekend (Labor Day), had unusually low levels of occupancy relative to the first three Fridays of April. Although forecasting accuracy is less critical for low congested states, this day illustrates the significance of short-term dependencies in modeling traffic dynamics.
Figure 13.
Forecasts based on harmonic models; observed occupancies are depicted in gray.
Figure 14.
1-Step Ahead TAR Density Forecasts.
By scaling errors using , TAR can be compared to SEAS and both can be compared to naive RW. Tables 7–9 compare final TAR and SEAS models for all days and locations at horizons , respectively. Results in parentheses display the MASFE under final models developed using a 0.9 stopping rule for RelE. The purpose of lowering the stopping rule was to force simpler, more intuitive models that would hopefully improve forecasting performance. For most of the cases when under 0.95, the MASFE slightly changed when the stopping rule decreased; however, there are 2 cases where the search of a simpler model led to a significant decline in forecasting performance. Specifically, the MASFE increased for the -specific TAR model from 1.48 to 2.55 and for the -specific TAR model from 3.04 to 3.21 when the stopping rule decreased. On the other hand forecasting performance did not get worse for models derived with the 0.95 rule, relative to the full specifications (3); on the contrary slight improvements can be observed due to removing a large number of weak predictors.
Table 7. 1-Step ahead MASFE forecast comparison; results with the 0.9 stopping threshold are given in parentheses.
| Location | ||||||||
|---|---|---|---|---|---|---|---|---|
| Day | Model | A | B | C | D | E | F | G |
| M | TAR | 1.02 | 1.10 | 0.88 | 1.07 | 1.87 | 0.81 | 1.48 |
| SEAS | 1.80 | 1.47 | 1.15 | 1.43 | 4.02 | 1.57 | 3.66 | |
| T | TAR | 0.90 | 1.05 | 1.04 | 0.98 | 1.36 | 1.03 | 1.95 |
| SEAS | 1.35 | 1.36 | 1.22 | 1.46 | 3.36 | 1.65 | 3.29 | |
| W | TAR | 1.04 | 1.11 | 0.91 | 0.97 | 2.27 | 1.86 | 1.55 |
| SEAS | 1.39 | 2.01 | 2.18 | 1.61 | 4.65 | 2.90 | 2.80 | |
| Th | TAR | 0.93 | 0.89 (0.94) | 0.82 | 0.92 | 1.48 (2.55) | 1.52 | 1.83 |
| SEAS | 1.44 | 1.43 | 1.51 | 1.42 | 3.98 | 2.74 | 4.07 | |
| F | TAR | 1.80 | 1.08 (1.02) | 1.01 | 0.85 | 1.45 | 2.40 | 1.16 |
| SEAS | 4.77 | 2.23 | 1.98 | 1.83 | 4.37 | 6.24 | 3.78 | |
Table 8. 3-Step ahead MASFE forecast comparison; results with the 0.9 stopping threshold are given in parentheses.
| Location | ||||||||
|---|---|---|---|---|---|---|---|---|
| Day | Model | A | B | C | D | E | F | G |
| M | TAR | 0.94 | 1.06 | 0.88 | 1.13 | 1.85 | 0.88 | 1.50 |
| SEAS | 1.36 | 1.17 | 0.93 | 1.14 | 2.91 | 1.19 | 2.57 | |
| T | TAR | 0.87 | 1.04 | 0.96 | 1.03 | 1.46 | 1.15 | 1.21 |
| SEAS | 1.04 | 1.06 | 0.91 | 1.10 | 2.24 | 1.22 | 2.15 | |
| W | TAR | 1.09 (1.08) | 1.15 | 1.10 | 0.99 | 1.75 | 2.00 | 1.26 |
| SEAS | 1.15 | 1.61 | 1.69 | 1.21 | 2.94 | 2.24 | 1.71 | |
| Th | TAR | 0.90 | 0.96 | 0.82 | 0.93 | 1.88 | 1.47 | 1.14 |
| SEAS | 1.15 | 1.09 | 1.14 | 1.03 | 2.69 | 1.96 | 2.68 | |
| F | TAR | 3.04 (3.21) | 1.09 | 1.00 | 0.66 (0.68) | 1.14 | 2.47 | 0.92 |
| SEAS | 3.53 | 1.57 | 1.42 | 1.33 | 3.12 | 4.35 | 2.42 | |
Table 9. 5-Step ahead MASFE forecast comparison; results with the 0.9 stopping threshold are given in parentheses.
| Location | ||||||||
|---|---|---|---|---|---|---|---|---|
| Day | Model | A | B | C | D | E | F | G |
| M | TAR | 0.94 | 0.99 | 0.89 | 1.12 | 1.97 | 0.86 | 1.68 |
| SEAS | 1.24 | 1.06 | 0.88 | 1.06 | 2.46 | 1.08 | 2.17 | |
| T | TAR | 0.81 | 1.05 (1.02) | 0.95 (0.95) | 1.00 | 1.47 | 1.13 | 1.15 |
| SEAS | 0.95 | 0.95 | 0.85 | 0.99 | 1.85 | 1.07 | 1.77 | |
| W | TAR | 1.02 (1.02) | 1.12 (1.15) | 1.04 (1.00) | 0.99 | 1.67 | 1.94 | 1.26 (1.19) |
| SEAS | 1.01 | 1.44 | 1.56 | 1.12 | 2.30 | 1.95 | 1.44 | |
| Th | TAR | 0.84 | 0.98 (0.99) | 0.82 | 0.87 | 1.51 | 1.48 | 1.22 |
| SEAS | 1.05 | 1.03 | 1.07 | 0.94 | 2.13 | 1.73 | 2.24 | |
| F | TAR | 2.85 | 1.20 | 0.88 | 0.70 | 1.26 | 2.52 | 1.00 |
| SEAS | 3.07 | 1.48 | 1.33 | 1.19 | 2.59 | 3.82 | 2.01 | |
In accordance with prior expectations, multiple-regime TAR models consistently outperform harmonic profiles at all locations and days when forecasting 1-step ahead. For 3-step ahead forecasts, the SEAS model for Tuesday at location C has a smaller MASFE, by a negligible amount. For 5-step ahead forecasts, more occurrences of SEAS producing forecasts, as good or better, than TAR are observed. The opposite pattern is exhibited for h-specific RW. For 1-step ahead forecasts, for many models; as h increases, a clear advantage of using more complicated models (TAR and SEAS) to capture nonlinear and/or seasonal dynamics can be noticed. This is generally true except for locations E, F, and G where traffic occupancies are considerably more difficult to forecast accurately; this is indicated by the wide credible regions in Figure 14, which are computed conditional on the model selection procedure.
7. Conclusion
Algorithms for real-time short-term forecasting of traffic occupancies constitute an important module of Intelligent Transportation Systems. Quite frequently the dynamics of occupancy are hard to estimate accurately and the resulting forecasts are unsatisfactory. This article presented interpretable threshold autoregressions that capture non-linearities in traffic dynamics using piecewise linear processes. In practice, specifications similar to the ones presented here can be used as components of a ‘library-of-models’, with final forecasts computed using regime-switching combination schemes [2].
In the vast majority of published works, researchers focused on TAR models with at most three regimes, due to computational challenges. In this application a high-dimensional linear model which nests a large collection of TAR specifications is constructed. Sparse estimation of the coefficients not only quantifies the optimal number of regimes, but also identifies the thresholds. After fixing the maximum autoregressive order and the maximum number of regimes, we present a three-step model building procedure that automates subset TAR selection. In contrast with previous Bayesian investigations of TAR, the hierarchical scheme presented here (a) can be implemented using existing samplers; (b) results in geometrically ergodic Markov chains, which ensures strongly consistent estimation for selected shrinkage priors; and (c) can model heteroscedastic data with outliers by adopting non-Gaussian likelihood specifications.
The proposed methodology can be improved in a number of ways. The posterior prediction projective method for subset selection of TAR uses the assumption of normal and homoscedastic errors. Although we analyze logit-transformed data and capture some of the heteroskedasticity when converting back to the original scale, our experiments suggest that it may be advantageous to modify the hierarchical Bayesian scheme using Student-t-distributed errors. In addition, regime-specific autoregressive dynamics can be augmented to include information from neighboring detectors, leading to space-time models. These topics are left for future research.
Acknowledgements
We would like to thank the Editor and the anonymous referee for their thoughtful and useful comments, which led to an improved version of this article. The manuscript extends the dissertation published internally at Arizona State University by M. Giacomazzo (2018), titled ‘Three essays on shrinkage estimation and model selection of linear and nonlinear time series models’. R functions related to the presented algorithms and the TRANSFOR data can be found in the Github repository: https://github.com/SuperMarioGiacomazzo/BAYESIAN_SUBSET_TAR.
Disclosure statement
No potential conflict of interest was reported by the author(s).
References
- 1.Ahmed M.S. and Cook A.R., Analysis of freeway traffic time-series data by using box-jenkins techniques, Transp. Res. Rec. 722 (1979), pp. 1–9. [Google Scholar]
- 2.Aiolfi M., Capistrán C., and Timmermann A., Forecast combinations, Working Paper No. 2010-04, Banco de México, 2010.
- 3.Annunziato M., Moretti F., and Pizzuti S., Urban traffic flow forecasting using neural-statistic hybrid modeling, in Soft Computing Models in Industrial and Environmental Applications, V. Snášel, A. Abraham, and E. Corchado, eds., Springer-Verlag, Berlin, 2013, pp. 183–190.
- 4.Bhadra A., Datta J., Polson N.G., and Willard B., The horseshoe+ estimator of ultra-sparse signals, Bayesian Anal. 12 (2017), pp. 1105–1131. [Google Scholar]
- 5.Bhadra A., Datta J., Polson N.G., and Willard B.T., Lasso meets horseshoe: A survey, preprint (2019). Available at arXiv preprint arXiv:1706.10179v4.
- 6.Bhattacharya A., Chakraborty A., and Mallick B.K., Fast sampling with gaussian scale mixture priors in high-dimensional regression, Biometrika 103(4) (December 2016), pp. 985–991. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Bleakley K. and Vert J.P., The group fused lasso for multiple change-point detection, preprint (2011). Available at arXiv preprint arXiv:1106.4199.
- 8.Broemeling L.D. and Cook P., Bayesian analysis of threshold autoregressions, Comm. Statist. Theory Methods 21 (1992), pp. 2459–2482. [Google Scholar]
- 9.Campbell E.P., Bayesian selection of threshold autoregressive models, J. Time Ser. Anal. 25 (2004), pp. 467–482. [Google Scholar]
- 10.Carlin B.P. and Chib S., Bayesian model choice via Markov chain Monte Carlo methods, J. R. Stat. Soc. Ser. B Methodol. 57 (1995), pp. 473–484. [Google Scholar]
- 11.Carvalho C.M., Polson N.G., and Scott J.G., Handling sparsity via the horseshoe, in Proceedings of the Twelth International Conference on Artificial Intelligence and Statistics, D. van Dyk and M. Welling, eds., Proceedings of Machine Learning Research, Vol. 5, 16–18 Apr. PMLR Press, Clearwater Beach, FL, 2009, pp. 73–80.
- 12.Carvalho C.M., Polson N.G., and Scott J.G., The horseshoe estimator for sparse signals, Biometrika 97 (2010), pp. 465–480. [Google Scholar]
- 13.Chan N.H., Ing C.K., Li Y., and Yau C.Y., Threshold estimation via group orthogonal greedy algorithm, J. Bus. Econ. Stat. 35 (2017), pp. 334–345. [Google Scholar]
- 14.Chan N.H., Yau C.Y., and Zhang R.M., Group lasso for structural break time series, J. Am. Stat. Assoc. 109 (2014), pp. 590–599. [Google Scholar]
- 15.Chan N.H., Yau C.Y., and Zhang R.M., Lasso estimation of threshold autoregressive models, J. Econom. 189 (2015), pp. 285–296. [Google Scholar]
- 16.Chen C., Liu F., and Gerlach R., Bayesian subset selection for threshold autoregressive moving-average models, Comput. Stat. 26 (2011), pp. 1–30. [Google Scholar]
- 17.Chen C.W., A bayesian analysis of generalized threshold autoregressive models, Stat. Probab. Lett. 40 (1998), pp. 15–22. [Google Scholar]
- 18.Chen C.W. and Lee J.C., Bayesian inference of threshold autoregressive models, J. Time Ser. Anal. 16 (1995), pp. 483–492. [Google Scholar]
- 19.Chen C.W., Lin E.M., Liu F., and Gerlach R., Bayesian estimation for parsimonious threshold autoregressive models in R, Newslett. R Proj. 8 (2008), pp. 26–33. [Google Scholar]
- 20.Datta J. and Ghosh J.K., Asymptotic properties of Bayes risk for the horseshoe prior, Bayesian Anal. 8 (2013), pp. 111–132. [Google Scholar]
- 21.Davis R.A., Lee T.C.M., and Rodriguez-Yam G.A., Structural break estimation for nonstationary time series models, J. Am. Stat. Assoc. 101 (2006), pp. 223–239. [Google Scholar]
- 22.Dunne S. and Ghosh B., Regime-based short-term multivariate traffic condition forecasting algorithm, J. Transp. Eng. 138 (2012), pp. 455–466. [Google Scholar]
- 23.Dupuis J.A. and Robert C.P., Variable selection in qualitative models via an entropic explanatory power, J. Stat. Plan. Inference 111 (2003), pp. 77–94. [Google Scholar]
- 24.Gelfand A.E. and Smith A.F., Sampling-based approaches to calculating marginal densities, J. Am. Stat. Assoc. 85 (1990), pp. 398–409. [Google Scholar]
- 25.Geman S. and Geman D., Stochastic relaxation, Gibbs distributions, and the Bayesian restoration of images, in Readings in Computer Vision, M.A. Fischler and O. Firschein, eds., Elsevier, Amsterdam, 1987, pp. 564–584.
- 26.George E.I. and McCulloch R.E., Variable selection via gibbs sampling, J. Am. Stat. Assoc. 88 (1993), pp. 881–889. [Google Scholar]
- 27.Geraci M. and Jones M., Improved transformation-based quantile regression, Can. J. Statist. 43 (2015), pp. 118–132. [Google Scholar]
- 28.Gerlach R., Carter C., and Kohn R., Efficient bayesian inference for dynamic mixture models, J. Am. Stat. Assoc. 95 (2000), pp. 819–828. [Google Scholar]
- 29.Geweke J., Evaluating the accuracy of sampling-based approaches to the calculation of posterior moments, Vol. 196, Federal Reserve Bank of Minneapolis, Research Department Minneapolis, MN, USA, 1991.
- 30.Geweke J. and Terui N., Bayesian threshold autoregressive models for nonlinear time series, J. Time Ser. Anal. 14 (1993), pp. 441–454. [Google Scholar]
- 31.Ghaddar D. and Tong H., Data transformation and self-exciting threshold autoregression, Appl. Stat. 30 (1981), pp. 238–248. [Google Scholar]
- 32.Ghosh B., Basu B., and O'Mahony M., Time-series modelling for forecasting vehicular traffic flow in Dublin, in Proceedings of the 85th Transportation Research Board Annual Meeting, Washington, DC, 2005.
- 33.Giordani P., Kohn R., and van Dijk D., A unified approach to nonlinearity, structural change, and outliers, J. Econom. 137 (2007), pp. 112–133. [Google Scholar]
- 34.Goutis C. and Robert C.P., Model choice in generalised linear models: A bayesian approach via Kullback-Leibler projections, Biometrika 85 (1998), pp. 29–37. [Google Scholar]
- 35.Hall F., Traffic stream characteristics, in Traffic Flow Theory, N.H. Gartner, C.J. Messer, and A.K. Rathi, eds., US Federal Highway Administration, Washington, DC, 1996, pp. 1–36.
- 36.Hansen B., Sample splitting and threshold estimation, Econometrica 68 (2000), pp. 575–603. [Google Scholar]
- 37.Hellendoorn J., Zegeye S.K., and Zwarteveen J.W., Urban traffic flow modeling in Addis Ababa, in 2011 14th International IEEE Conference on Intelligent Transportation Systems (ITSC), IEEE Publishing, New York City, NY, 2011, pp. 620–625.
- 38.Huber F., Kastner G., and Feldkircher M., Should I stay or should I go? A latent threshold approach to large-scale mixture innovation models, J. Appl. Econom. 34 (2018), pp. 621–640. [Google Scholar]
- 39.Hyndman R.J. and Koehler A.B., Another look at measures of forecast accuracy, Int. J. Forecast. 22 (2006), pp. 679–688. [Google Scholar]
- 40.Ishwaran H. and Rao J.S., Spike and slab variable selection: Frequentist and Bayesian strategies, Ann. Stat. 33 (2005), pp. 730–773. [Google Scholar]
- 41.Ishwaran H. and Rao J.S., Consistency of spike and slab regression, Stat. Probab. Lett. 81 (2011), pp. 1920–1928. [Google Scholar]
- 42.Jun Z. and Jun L., Nonlinear characteristics of short–term traffic flow and their influences to forecasting, in 2007 IEEE International Conference on Automation and Logistics, August. IEEE, Jinan, Shandong, 2007, pp. 847–851.
- 43.Kamarianakis Y., Space-time modeling of traffic variables with adaptive LASSO, in JSM Proceedings, American Statistical Association, Section on Statistical Learning and Data Mining, Boston, MA, 2014, pp. 2732–2738.
- 44.Kamarianakis Y., Gao H.O., and Prastacos P., Characterizing regimes in daily cycles of urban traffic using smooth-transition regressions, Transp. Res. C: Emerg. Technol. 18 (2010), pp. 821–840. [Google Scholar]
- 45.Kamarianakis Y., Shen W., and Wynter L., Real-time road traffic forecasting using regime-switching space-time models and adaptive lasso, Appl. Stoch. Models Bus. Ind. 28 (2012), pp. 297–315. [Google Scholar]
- 46.Klein L. and Kelley M., Detection technology for ivhs: Final report, Federal Highway Administration FHWA-RD-95-100, 1996.
- 47.Koop G., Bayesian Econometrics, Wiley, Hoboken, NJ, 2003. [Google Scholar]
- 48.Kullback S. and Leibler R.A., On information and sufficiency, Ann. Math. Statist. 22 (1951), pp. 79–86. [Google Scholar]
- 49.Kumar S.V. and Vanajakshi L., Short-term traffic flow prediction using seasonal arima model with limited input data, Eur. Transp. Res. Rev. 7 (2015), pp. 1–9. [Google Scholar]
- 50.Kuo L. and Mallick B., Variable selection for regression models, Indian J. Statist. Ser. B (1960–2002) 60 (1998), pp. 65–81. [Google Scholar]
- 51.Levin M. and Tsao Y.D., On forecasting freeway occupancies and volumes, Transp. Res. Rec. 773 (1980), pp. 47–49. [Google Scholar]
- 52.Li D. and Ling S., On the least squares estimation of multiple-regime threshold autoregressive models, J. Econom. 167 (2012), pp. 240–253. [Google Scholar]
- 53.Li T.H., Time Series with Mixed Spectra, CRC Press, Boca Raton, FL, 2014. [Google Scholar]
- 54.Lopes H.F. and Salazar E., Bayesian model uncertainty in smooth transition autoregressions, J. Time Ser. Anal. 27 (2006), pp. 99–117. [Google Scholar]
- 55.Lubrano M., Bayesian analysis of nonlinear time series models with a threshold, in Nonlinear Econometric Modelling, Cambridge University Press, New York City, NY, 1999, pp. 79–118.
- 56.Madigan D. and Raftery A.E., Model selection and accounting for model uncertainty in graphical models using occam's window, J. Am. Stat. Assoc. 89 (1994), pp. 1535–1546. [Google Scholar]
- 57.Makalic E. and Schmidt D.F., A simple sampler for the horseshoe estimator, IEEE Signal Process. Lett. 23 (2016), pp. 179–182. [Google Scholar]
- 58.Mallick H. and Yi N., Bayesian methods for high dimensional linear models, J. Biom. Biostat. 1 (2013), pp. 1–27. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.McCulloch R. and Tsay R., Bayesian inference and prediction for mean and variance shifts in autoregressive time series, J. Am. Stat. Assoc. 88 (1993), pp. 968–978. [Google Scholar]
- 60.Metcalfe A.V. and Cowpertwait P.S., Introductory Time Series with R, Use R, Vol. 11, Springer, New York, NY, 2009. [Google Scholar]
- 61.Min X., Hu J., and Zhang Z., Urban traffic network modeling and short-term traffic flow forecasting based on GSTARIMA model, in 2010 13th International IEEE Conference on Intelligent Transportation Systems (ITSC), September. IEEE Publishing, Funchal, Madeira Island, 2010, pp. 1535–1540.
- 62.Mitchell T.J. and Beauchamp J.J., Bayesian variable selection in linear regression, J. Am. Stat. Assoc. 83 (1988), pp. 1023–1032. [Google Scholar]
- 63.Moretti F., Pizzuti S., Panzieri S., and Annunziato M., Urban traffic flow forecasting through statistical and neural network bagging ensemble hybrid modeling, Neurocomputing 167 (2015), pp. 3–7. [Google Scholar]
- 64.O'Hara R.B. and Sillanpaa M.J., A review of Bayesian variable selection methods: What, how and which, Bayesian Anal. 4 (2009), pp. 85–117. [Google Scholar]
- 65.Pal S. and Khare K., Geometric ergodicity for bayesian shrinkage models, Electron. J. Stat. 8 (2014), pp. 604–645. [Google Scholar]
- 66.Pan J., Xia Q., and Liu J., Bayesian analysis of multiple thresholds autoregressive model, Comput. Stat. 32 (2017), pp. 219–237. [Google Scholar]
- 67.Pas S.V.D., Szabo B., and Vaart A.V.D., Uncertainty quantification for the horseshoe, Bayesian Anal. 12 (2017), pp. 1221–1274. [Google Scholar]
- 68.Piironen J., Paasiniemi M., and Vehtari A., Projective inference in high-dimensional problems: Prediction and feature selection, Electron. J. Statist. 14(1) (2020), pp. 2155–2197. [Google Scholar]
- 69.Piironen J. and Vehtari A., Projection predictive variable selection using stan+r, arXiv preprint. Available at arXiv:1508.02502, 2015.
- 70.Piironen J. and Vehtari A., On the hyperprior choice for the global shrinkage parameter in the horseshoe prior, in AISTATS 2017 Proceedings, MLR Press, FL, 2016.
- 71.Piironen J. and Vehtari A., Comparison of Bayesian predictive methods for model selection, Stat. Comput. 27 (2017), pp. 711–735. [Google Scholar]
- 72.Polson N.G. and Scott J.G., Shrink globally, act locally: Sparse Bayesian regularization and prediction, Bayesian Statist. 9 (2010), pp. 501–538. [Google Scholar]
- 73.Polson N.G. and Scott J.G., On the half-cauchy prior for a global scale parameter, Bayesian Anal. 7 (2012), pp. 887–902. [Google Scholar]
- 74.Queen C.M. and Albers C.J., Intervention and causality: Forecasting traffic flows using a dynamic Bayesian network, J. Am. Stat. Assoc. 104 (2009), pp. 669–681. [Google Scholar]
- 75.Rue H., Fast sampling of Gaussian Markov random fields, J. R. Stat. Soc. Ser. B Stat. Methodol. 63 (2001), pp. 325–338. [Google Scholar]
- 76.Sanchez I., Adaptive combination of forecasts with application to wind energy, Int. J. Forecast. 24 (2008), pp. 679–693. [Google Scholar]
- 77.Schmidt D.F. and Makalic E., bayesreg: Bayesian Regression Models with Continuous Shrinkage Priors (2016). Available at https://CRAN.R-project.org/package=bayesreg, R package version 1.0.
- 78.Shang P., Li X., and Kamae S., Nonlinear analysis of traffic time series at different temporal scales, Phys. Lett. A 357 (2006), pp. 314–318. [Google Scholar]
- 79.Smith B.L. and Demetsky M.J., Traffic flow forecasting: Comparison of modeling approaches, J. Transp. Eng. 123 (1997), pp. 261–266. [Google Scholar]
- 80.So M.K. and Chen C.W., Subset threshold autoregression, J. Forecast. 22 (2003), pp. 49–66. [Google Scholar]
- 81.Stathopoulos A. and Karlaftis M.G., A multivariate state space approach for urban traffic flow modeling and prediction, Transp. Res. C 11 (2003), pp. 121–135. [Google Scholar]
- 82.Theofilatos A., Yannis G., Vlahogianni E.I., and Golias J.C., Modeling the effect of traffic regimes on safety of urban arterials: The case study of Athens, J. Traffic Transp. Eng. 4 (2017), pp. 240–251. [Google Scholar]
- 83.Tong H., Non-linear Time Series: A Dynamical System Approach, Vol. 6, Oxford University Press, Oxford, 1993. [Google Scholar]
- 84.Van Der Pas S., Kleijn B., and Van Der Vaart A., The horseshoe estimator: Posterior concentration around nearly black vectors, Electron. J. Stat. 8 (2014), pp. 2585–2618. [Google Scholar]
- 85.Vats D., Flegal J., and Jones G., Multivariate output analysis for Markov chain Monte Carlo, Biometrika 106 (2019), pp. 321–437. [Google Scholar]
- 86.Vlahogianni E. and Karlaftis M., Temporal aggregation in traffic data: Implications for statistical characteristics and model choice, Transp. Lett. 3 (2011), pp. 37–49. [Google Scholar]
- 87.Vlahogianni E.I., Karlaftis M.G., and Golias J.C., Short-term traffic forecasting: Where we are and where were going, Transp. Res. C: Emerg. Technol. 43 (2014), pp. 3–19. [Google Scholar]
- 88.Wallis K.F., Time series analysis of bounded economic variables, J. Time Ser. Anal. 8 (1987), pp. 115–123. [Google Scholar]
- 89.Wand M.P., Ormerod J.T., Padoan S.A., and Frühwirth R., Mean field variational Bayes for elaborate distributions, Bayesian Anal. 6 (2011), pp. 847–900. [Google Scholar]
- 90.Williams B.M. and Hoel L.A., Modeling and forecasting vehicular traffic flow as a seasonal arima process: Theoretical basis and empirical results, J. Transp. Eng. 129 (2003), pp. 664–672. [Google Scholar]
- 91.Wynter L., Trager B.M., Yu Y., Kamarianakis Y., Jabari S., Coldefy J., Marquois D., and Baudel T., Traffic estimation and prediction for urban road networks, application to GrandLyon, in 22nd Intelligent Transportation Systems World Congress Proceedings, Bordeaux, France, 2015, pp. 1–12.
- 92.Yao Y.C., Estimating the number of change-points via Schwarz' criterion, Stat. Probab. Lett. 6 (1988), pp. 181–189. [Google Scholar]
- 93.Yuan M. and Lin Y., Model selection and estimation in regression with grouped variables, J. R. Stat. Soc. Ser. B Stat. Methodol. 68 (2006), pp. 49–67. [Google Scholar]
- 94.Zhang N., Zhang Y., and Lu H., Seasonal autoregressive integrated moving average and support vector machine models: Prediction of short-term traffic flow on freeways, Transp. Res. Rec. 2215 (2011), pp. 85–92. [Google Scholar]
- 95.Zou H., The adaptive lasso and its oracle properties, J. Am. Stat. Assoc. 101 (2006), pp. 1418–1429. [Google Scholar]












