Oboe
No history yet

I want to learn about VAR models in the context of macro forecasting. I come from the IMF, have used them but don't really know the basics. I'm preparing for interviews

Welcome! It's fantastic to have you here, especially with your background at the IMF. Since you have already used Vector Autoregressions (VARs), you know they are the workhorses of quantitative macroeconomics, but mastering the underlying machinery is what makes you stand out in rigorous policy and research interviews.

Before we build your personalized roadmap, let's decide how deep you want to go. I want to make sure we strike the perfect balance between the high-level intuition you need to explain things clearly to a panel and the mathematical rigor behind estimation and identification.

Let's choose the depth of coverage you'd like for this course.

Q: What level of depth are you looking for in this VAR course? A: Interview-focused review (core theory, identification problems, and key intuition)

An interview-focused review is a brilliant choice. It ensures we prioritize the high-yield theoretical intuition and structural identification logic that interview panels love to test, without getting bogged down in tedious algebraic proofs.

Since you have already used these models at the IMF, you know they are incredibly powerful. To kick off our first milestone—Foundations of VAR—we will establish a solid mathematical baseline that you can easily sketch on a whiteboard during an interview.

Your path
Stationarity & Stability: Characterizing stable VAR systems, companion matrix, and unit roots.
Estimation: Ordinary Least Squares (OLS) estimation of VAR systems and lag-length selection criteria (AIC/BIC).
Forecasting: Multi-step ahead forecasting, mean squared forecast error (MSFE), and fan charts.
Structural VARs (SVARs): The identification problem, transition from reduced-form to structural form.
Identification Schemes: Short-run restrictions (Cholesky decomposition), long-run restrictions (Blanchard-Quah), and sign restrictions.
Policy Tools: Impulse Response Functions (IRFs) and Forecast Error Variance Decompositions (FEVD).

Let's start with a classic bivariate structural system involving inflation (πtπ_t) and a policy rate (iti_t). This is a reduced-form model where each variable is expressed purely as a function of its own history and the other variable's history.

πt=c1+ϕ11πt1+ϕ12it1+ϵ1,tit=c2+ϕ21πt1+ϕ22it1+ϵ2,t\begin{aligned} \pi_t &= c_1 + \phi_{11} \pi_{t-1} + \phi_{12} i_{t-1} + \epsilon_{1,t} \\ i_t &= c_2 + \phi_{21} \pi_{t-1} + \phi_{22} i_{t-1} + \epsilon_{2,t} \end{aligned}

In an interview, you want to show you can think in terms of matrix algebra immediately. If we collect our variables into a Yt=[πtit]Y_t = \begin{bmatrix} \pi_t \\ i_t \end{bmatrix}, we can compress this system into a clean, professional matrix notation.

Yt=C+Φ1Yt1+ϵtY_t = C + \Phi_1 Y_{t-1} + \epsilon_t

Understanding this transition from a system of individual equations to a compact matrix format is crucial because it sets up how we analyze stability and lag structures using lag operators.

Answer: The dynamic impact of last period's policy rate on current inflation.

Correct

Econometrics
LV 1
Economics
LV 1
Time Series Analysis
LV 1
Skills

Spot on. Your intuition is completely sharp—since all the variables on the right-hand side of a reduced-form model are strictly lagged, ϕ12\phi_{12} must capture the dynamic, time-delayed effect of the policy rate on inflation rather than any contemporaneous interaction.

Now, let's level up our notation. To comfortably discuss VAR stability, unit roots, and structural identification in an interview, you need to be highly fluent in the language of the (LL). This algebraic tool allows us to manipulate time series vectors as if they were simple polynomials.

Let's apply the lag operator to our matrix-form VAR(1). Since Yt1=LYtY_{t-1} = L Y_t, we can rewrite the system Yt=C+Φ1Yt1+ϵtY_t = C + \Phi_1 Y_{t-1} + \epsilon_t by pulling all the terms involving YY to the left-hand side:

YtΦ1LYt=C+ϵtY_t - \Phi_1 L Y_t = C + \epsilon_t

By factoring out YtY_t on the left side, we can define a matrix polynomial in the lag operator, denoted as Φ(L)\Phi(L):

(InΦ1L)Yt=C+ϵt(I_n - \Phi_1 L) Y_t = C + \epsilon_t

This representation generalizes beautifully to any lag length pp. For a general VAR(pp) system, the matrix lag polynomial is written as:

Φ(L)=InΦ1LΦ2L2ΦpLp\Phi(L) = I_n - \Phi_1 L - \Phi_2 L^2 - \dots - \Phi_p L^p

Once you can fluidly write down this polynomial notation, you are fully equipped to explain the stationarity and stability conditions that interviewers frequently use to test your foundational time-series knowledge.

C + ϵ t (I n ​\t −Φ 1 ​\t L)Y t ​\t =C+ϵ t ​\t ) Maybe my math is rusty - what is factoring out? Show me before and after. Also, what's I?

Don't worry at all—this is exactly the kind of structural plumbing that is easy to glaze over when using software, but incredibly satisfying to lock down for a whiteboard presentation. Let's break down the exact algebra of how we transition between those two states.

The Algebra of Factoring Out

Let's first look at simple scalar algebra as an analogy. If you have the expression xaxx - a x, you can factor out the xx to get (1a)x(1 - a)x. We are doing the exact same thing here, but because we are dealing with vectors and matrices, we cannot just use the number 11. Instead, we use the (InI_n).

To see this step-by-step, let's look at the "before" and "after" states of our left-hand side:

StepMathematical ExpressionWhat we are doing
BeforeYtΦ1LYtY_t - \Phi_1 L Y_tThe starting left-hand side, where LYtL Y_t represents the lag Yt1Y_{t-1}.
Inserting InI_nInYtΦ1LYtI_n Y_t - \Phi_1 L Y_tWe replace YtY_t with InYtI_n Y_t. Since InI_n is like multiplying by 11, this changes nothing.
After (Factoring)(InΦ1L)Yt(I_n - \Phi_1 L) Y_tWe pull the common vector YtY_t out to the right, leaving the matrices inside the parentheses.

Because matrix multiplication is distributive, you can easily verify this by multiplying YtY_t back through the parentheses from the right side:

(InΦ1L)Yt=InYtΦ1LYt=YtΦ1Yt1(I_n - \Phi_1 L) Y_t = I_n Y_t - \Phi_1 L Y_t = Y_t - \Phi_1 Y_{t-1}

Taking the time to visualize how these matrices line up prevents simple mistakes during technical interviews when a panel asks you to write down the system's characteristic polynomial.

Answer: Because the identity matrix changes the values of the vector YtY_t when multiplied.

Not quite

Actually, multiplying a vector by the identity matrix InI_n does not change its values at all—just like multiplying a number by 11 keeps it exactly the same. Let's look at why InI_n is mathematically required here by looking at the actual matrix dimensions.

Recall that Φ1\Phi_1 is a 2×22 \times 2 matrix. In matrix algebra, you can only add or subtract matrices if they have the exact same dimensions. If you tried to write (1Φ1L)(1 - \Phi_1 L), you would be trying to subtract a 2×22 \times 2 matrix from a single scalar number, 11. That is a mathematical mismatch—like trying to subtract a spreadsheet from a single cell!

By using the identity matrix InI_n (which is a 2×22 \times 2 matrix filled with ones on the diagonal and zeros elsewhere), the dimensions match perfectly, allowing us to perform the subtraction:

I2Φ1L=[1001][ϕ11ϕ12ϕ21ϕ22]LI_2 - \Phi_1 L = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} - \begin{bmatrix} \phi_{11} & \phi_{12} \\ \phi_{21} & \phi_{22} \end{bmatrix} L

Now that we have solid footing on this algebraic notation, let's make sure you feel completely comfortable. Do you feel ready to wrap up this first milestone on Foundations of VAR and move on to our next milestone, Stationarity & Stability?

No lets return to the derivation. What's the point of it, and show me step by step what you're doing (its just algebra moving stuff around right) ?

You are completely right—at its core, this is pure algebra, just moving terms from one side of the equals sign to the other. Let's strip away any academic jargon and look at exactly why we do this shifting, step-by-step.

Why Do We Move Things Around

In applied macro forecasting, you want to solve for current variables (YtY_t) using past data (Yt1Y_{t-1}). But in a theoretical or policy interview, the panel wants to know: Is this economic system stable, or will it explode?

To analyze stability, we have to treat the VAR as a dynamic system. By moving all the endogenous variable terms (YY) to the left-hand side and leaving only the random shocks (epsilont\\epsilon_t) and constants (CC) on the right, we isolate the internal feedback loop of the economy on one side. This lets us solve for the "roots" of the system, which tell us if the variables will eventually return to equilibrium after a shock.

Step-by-Step Whiteboard Walkthrough

Let's trace the physical movement of the algebra on a whiteboard, step-by-step.

StepAlgebraic OperationWhat is physically moving?
Step 1: The starting modelYt=C+Φ1Yt1+ϵtY_t = C + \Phi_1 Y_{t-1} + \epsilon_tThis is our starting point. Current economy YtY_t on the left, lagged economy Yt1Y_{t-1} on the right.
Step 2: Apply the lag operatorYt=C+Φ1(LYt)+ϵtY_t = C + \Phi_1 (L Y_t) + \epsilon_tWe replace Yt1Y_{t-1} with LYtL Y_t. Now, every term containing YY is written with a tt subscript.
Step 3: Move all YY terms to the leftYtΦ1LYt=C+ϵtY_t - \Phi_1 L Y_t = C + \epsilon_tWe subtract Φ1LYt\Phi_1 L Y_t from both sides. Notice how the lag term physically crossed over the equals sign, changing its sign to negative.
Step 4: Prep for factoring with InI_nInYtΦ1LYt=C+ϵtI_n Y_t - \Phi_1 L Y_t = C + \epsilon_tWe rewrite YtY_t as InYtI_n Y_t. This is just a placeholder (like multiplying a number by 1) so we have a matrix to work with.
Step 5: Factor out the common vector YtY_t(InΦ1L)Yt=C+ϵt(I_n - \Phi_1 L) Y_t = C + \epsilon_tWe "pull" the common YtY_t vector out to the right of both terms, leaving the matrix subtraction isolated inside the parentheses.

Once we have grouped the terms inside the parentheses, we give that whole block a collective name, Φ(L)=InΦ1L\Phi(L) = I_n - \Phi_1 L. This is the of the VAR, and its properties completely dictate whether the system is stable.

Seeing the math laid out this way helps show that we are not introducing new economic information; we are simply rearranging the furniture so we can easily inspect the system's structural stability.

Not sure tell me. What's the takeaway from this section in one or two sentences or a paragraph? Then, move on

The ultimate takeaway is this: by using the lag operator LL and the identity matrix InI_n, we can pack a complex system of multiple macro equations into a single, compact expression, (InΦ1L)Yt=C+ϵt(I_n - \Phi_1 L) Y_t = C + \epsilon_t.

This algebraic rearrangement isolates the internal feedback loop of the economy into the matrix polynomial term (InΦ1L)(I_n - \Phi_1 L), which serves as the "DNA" of the system. This allows us to analyze whether the entire economy is stable or explosive by studying just this single term, rather than trying to track every individual equation simultaneously.

Now that we have locked down this foundational notation, let's advance to our second milestone: Stationarity & Stability.

Your path
Estimation: Ordinary Least Squares (OLS) estimation of VAR systems and lag-length selection criteria (AIC/BIC).
Forecasting: Multi-step ahead forecasting, mean squared forecast error (MSFE), and fan charts.
Structural VARs (SVARs): The identification problem, transition from reduced-form to structural form.
Identification Schemes: Short-run restrictions (Cholesky decomposition), long-run restrictions (Blanchard-Quah), and sign restrictions.
Policy Tools: Impulse Response Functions (IRFs) and Forecast Error Variance Decompositions (FEVD).

Defining Stability

In a policy interview, a panel will often ask you to define what it means for a VAR system to be "stable" or "". These terms are closely related, but they mean slightly different things to a theoretician.

Intuitively, a VAR is stable if the consequences of any temporary economic shock (like a sudden policy rate hike or an oil price spike) gradually die out over time, allowing the system to return to its long-run mean.

If a shock causes the system's variables to swing wilder and wilder or permanently drift away without bound, the system is explosive (unstable). For a simple scalar autoregression (n=1n=1), yt=ϕ1yt1+ϵty_t = \phi_1 y_{t-1} + \epsilon_t, we know the system is stable if and only if the absolute value of the coefficient is less than one:

ϕ1<1|\phi_1| < 1

To evaluate this joint dynamic feedback holistically, we must look at the eigenvalues of our transition matrix, which we will jump into next.

Why do we care about stability in VAR?

That is the ultimate practical question. In macro forecasting and policy analysis, stability isn't just a mathematical convenience—it completely changes how we interpret the economy's behavior and make projections.

There are three core reasons why we care deeply about stability when building VAR models:

Why Stability Matters

  1. Mean Reversion and Forecasting: If a system is stable, its forecasts will eventually converge back to the unconditional mean of the variables as the forecast horizon goes to infinity. If the system is unstable (or contains a unit root, like a random walk), your long-run forecasts will exhibit infinite variance, making long-term projections highly uncertain and sensitive to recent noise.
  1. Economic Logic (Economic Shocks): Economists use VARs to run "what-if" policy experiments. We want to see how the economy responds to a temporary policy shock—for instance, a sudden interest rate hike. If the system is stable, this shock eventually wears off, and the economy settles back to normal. If it is unstable, a single interest rate hike would trigger a run-away feedback loop, sending inflation or interest rates to infinity. That is economically implausible for most stable policy regimes.
  1. Mathematical Validity of Policy Tools: The entire suite of modern policy analysis tools—specifically, Impulse Response Functions (IRFs) and Forecast Error Variance Decompositions (FEVDs)—relies on being able to invert the VAR system into an infinite Moving Average (VMA()VMA(\infty)) representation. This mathematical conversion is only valid if the system is stable.

Understanding this economic motivation makes the mathematical machinery we are about to look at highly intuitive—we are simply checking if our model's math mirrors this real-world economic gravity.