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

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

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