Bayesian AR(1) and AR(p)
The Bayesian AR(1) model assumes a scalar time series with
and an initial observation (often treated as known or given its stationary distribution). The AR(p) extension has
Written in regression form with and design matrix whose rows are lagged windows , the conditional likelihood is
identical to a Bayesian linear regression with the design built from lags. Under a Normal-Inverse-Gamma prior and , the posterior is again NIG, with the same closed-form updates.Stationarity constraint. AR(1) is stationary iff . For AR(p), stationarity requires all roots of the characteristic polynomial to lie outside the unit circle. A Bayesian analysis with unrestricted Gaussian prior on puts nonzero mass on non-stationary parameters. Truncating the prior to the stationarity region (or reparametrizing to partial autocorrelations) is standard practice when the series is assumed stationary.
Why AR lives in the Bayesian-regression folder. The likelihood factorizes by the Markov property, , so conditional on the initial observation(s), AR is a linear regression of each on its lags. All the conjugate machinery of 3.8.1 Bayesian Linear Regression applies.
Why this is in the course. AR is a canonical illustration of the likelihood principle. A frequentist analyst must specify whether was fixed in advance or whether sampling continued until a particular event (e.g., first observation exceeding a threshold). These stopping rules change the frequentist sampling distribution and therefore the frequentist confidence interval. The Bayesian posterior depends only on the observed likelihood — the stopping rule does not enter. The Bayesian is invariant to the stopping rule.
Prerequisites
- 3.1 Bayesian Framework — Bayesian mechanics including likelihood principle.
- 3.8.1 Bayesian Linear Regression — the regression machinery applies directly.
- 3.5.2 Normal-Normal Model — univariate conjugate Gaussian analysis.
Intuition
An AR(1) process with i.i.d. Gaussian has the property that conditional on the previous observation, the current one is Gaussian with mean — just a linear regression whose predictor happens to be a lagged copy of the response. The conditional likelihood factorizes the same way (product over ), and the Gaussian-Gaussian conjugacy goes through unchanged. Bayesian inference for under a Gaussian prior is therefore identical to Bayesian inference for a regression coefficient.
The stopping-rule invariance of Bayesian AR analysis is the most-taught consequence of the likelihood principle. Suppose an analyst plans to observe an AR(1) series until time or until the first time the series crosses some threshold , whichever comes first. Frequentist analysis must track which stopping rule produced the data: different rules produce different sampling distributions for the MLE, different confidence intervals, different -values. The Bayesian posterior is the same regardless — provided the stopping rule depends only on observed quantities, the likelihood factor from the stopping rule multiplies into both the numerator and denominator of Bayes’ rule and cancels. The AR(1) walk-through in STAT 238 makes this unmistakable: plot two posteriors from datasets drawn under different stopping rules, and they coincide; plot the matching frequentist CIs and they diverge.
The stationarity question is where Bayesian and frequentist analyses share a genuine difficulty. Near the stationarity boundary (unit root), posterior distributions and frequentist sampling distributions are both highly non-Gaussian and sensitive to prior choice or normalization convention. This is where priors on matter: a flat prior on puts extensive mass near 1, which biases inference toward unit-root behavior. A prior concentrated in — or reparametrization to the partial autocorrelation in — handles this cleanly.
Properties
(Likelihood-Principle Invariance) The posterior depends only on the observed likelihood and is invariant to the stopping rule.
If data is collected under any stopping rule whose decision at each step depends only on (not on or ), then the likelihood factors as
and the stopping-rule factor does not depend on the parameters. It cancels in Bayes’ rule:
Frequentist inference, by contrast, integrates over the sampling distribution of , which differs by stopping rule even for identical observed data. This is the clearest inferential consequence of the likelihood principle; see 3.1 Bayesian Framework.
(Conjugate NIG Posterior via Regression Representation) AR(p) inherits the closed-form NIG posterior of Bayesian linear regression.
With the design matrix of lagged values and the response vector (for ),
with posterior marginal . All 3.8.1 Bayesian Linear Regression results carry over unchanged. The conditional likelihood treats the initial observations as given; exact inclusion (via the stationary-distribution density) modifies only.
(Stationarity Constraint) Unrestricted Gaussian prior on places mass on non-stationary parameters.
For AR(1), the stationary region is ; for AR(p), the roots of must lie outside the unit disk. Default Gaussian priors are not supported on the stationarity region. Options: (a) truncate the prior to the stationarity region and renormalize (Gibbs-friendly); (b) reparametrize to partial autocorrelations and put independent Beta-style priors on each (Barndorff-Nielsen-Schou transform); (c) accept that the posterior may place mass on non-stationary parameters and interpret accordingly.
(Posterior Predictive via Markov Sampling) Future values are forecast by cascading posterior samples through the AR recursion.
The -step-ahead posterior predictive for AR(1) is
marginalized over the posterior of . Closed form is not generally available, but Monte Carlo is direct: sample from the posterior, then cascade the recursion forward to draw . The empirical distribution of the samples is the posterior predictive.
(Reference Prior and Bayesian Bridge to Frequentist AR) The improper prior reproduces Yule-Walker / least-squares inference.
Under the reference prior limit, equals the conditional-MLE AR coefficient (also the Yule-Walker estimate up to a finite-sample correction), and the marginal posterior is Student- around it. Frequentist confidence intervals and Bayesian credible intervals numerically coincide in this limit.
(AR as a Gaussian-Process Kernel) The AR(1) process is a GP with exponential kernel (discrete-time analog).
The AR(1) autocovariance is in stationarity. This is the discrete-time version of the Ornstein-Uhlenbeck kernel used in GP regression: with . Bayesian AR is therefore a GP with a specific kernel and equi-spaced observations; the posterior Student- for and the GP posterior over functions are two windows onto the same mathematical object.
Examples
Example 1: Stopping-Rule Invariance on AR(1)
Two analysts observe the same AR(1) process, but with different stopping rules:
Analyst A: Plans to observe data points regardless.
Analyst B: Plans to stop at the first time such that , up to a maximum of .Both collect the same initial 100 observations before the threshold is crossed (say at , just barely). The observed likelihood is identical:
Bayesian posterior: identical for A and B under any common prior.
Frequentist MLE sampling distribution: different — B’s sampling distribution conditions on and all earlier , which is not the same as A’s unconditional distribution. Frequentist confidence intervals differ.The Bayesian analyst simply reports and is done. The frequentist must explain why the analysis depends on what the experimenter was thinking about stopping — a philosophical discomfort often cited as the single most concrete reason to prefer Bayesian methods for sequential data collection.
Example 2: Closed-Form NIG Posterior for AR(1)
Observed series with weakly informative prior , (prior mean , fairly vague).
Design quantities: , , .
Posterior mean: — the ridge-regularized AR coefficient.
Posterior scale: , .
Marginal posterior for : .For a series of observations with sample autocorrelation , the posterior concentrates sharply near 0.7 with a narrow credible interval. Under the prior truncation, the posterior tail at is negligible and no correction is needed.
Example 3: Posterior Predictive Forecast for AR(1)
Given posterior , (so ), and final observation , forecast .
Monte Carlo procedure: draw posterior samples , then iterate the recursion for each sample, drawing .
One-step forecast: mean , 95% credible interval (widening by ).
Five-step forecast: mean , with cumulative variance ; 95% CI .Forecast uncertainty grows as the horizon extends; in the limit, the posterior predictive approaches the stationary distribution .
Derivation
Goal: show that the stopping-rule factor cancels from the AR(1) posterior.
Suppose is a stopping rule whose decision is -measurable, i.e. depends only on data observed so far. The joint density of the observed data and the stopping event is
The stopping-rule indicator depends on but not on the parameters — call this factor . Then
The factor appears identically in numerator and denominator and cancels, leaving
The posterior is the same as if had been fixed in advance. This is exactly the (Likelihood Principle) property of 3.1 Bayesian Framework applied to AR models.
See Also
- 3.8 Bayesian Regression — parent index.
- 3.8.1 Bayesian Linear Regression — conjugate machinery applied here.
- 3.1 Bayesian Framework — likelihood principle and stopping-rule invariance.
- 3.10 Gaussian Processes — AR(1) as a discrete-time GP with exponential kernel.
- 3.11.2 Gibbs Sampling — sampler when the stationarity constraint or hierarchical extensions break conjugacy.
- 2.4 Time Series Regression — frequentist time-series regression for comparison.