I'm trying to better understand how Vector Auto-Regression models work in practice. It seems to me that a real world time series data set is likely to have time series of different lengths, but I can't figure out how a VAR model would handle this situation.

  1. If we shorten the time series in order to bring them all to the same length, we loose a lot of valuable information.
  2. Zero padding the shorter time series to be the same length as the longest time series would mess with the quality of the coefficients that model the time series.
  3. Imputation might work for single missing values here and there, but I don't see how it could work when an entire leading chunk is missing from the time series.

Is there a way to use VAR on groups of time series with different lengths?

  • $\begingroup$ I'm no VAR expert but I've never heard of shortening everything to be the same length. It kind of makes sense that I haven't because , in a VAR, every variable in the VAR has the possibility of causing or being caused by of any other variable in the VAR so, if you have a longer length for one of the variables $Y$ compared to say $X$, then $X$ can't cause $Y$ or be caused by $Y$ because it doesn't occur at the same time as $Y$. You should include variables in the VAR that occur at the same time and for as long as all of the others. $\endgroup$
    – mlofton
    Mar 8, 2020 at 4:05

1 Answer 1


In economic (mostly macroeconomic) and financial application, it is not uncommon to have time series of different lengths. Some variables have been recorded for a longer time than other. This way you get a data matrix with ragged edges at the top (the oldest observations). It is perhaps less common to have ragged edges at the bottom (the newest observations), but it happens e.g. in macroeconomics where the newest observations are reported at different times for different variables during a quarter or a month. So within a quarter or a month, you will already have observations of some variables but not others. Similar examples can be found in finance, just the frequency of the time series is typically higher.

Time series are usually trimmed by cutting the oldest (and less often, newest) observations from variables that have more old (new) observations than other variables. This way one achieves a data matrix with flat top (bottom) that* can be readily used for estimation with least-squares based routines (such as feasible GLS or equation by equation OLS). This is your option 1.

Zero-padding (your option 2) is tricking yourself; you note correctly that it messes up the coefficients. I would not recommend that and I have not seen it done in serious work (I am mostly familiar with macroeconomics and finance).

Imputations here and there (option 3) also mess up inference, but it may be worth it. When the number of time series is large and quite a few of them have a few missing observations at different time periods, suddenly there are lots of lines with missing data. If deleted, they can substantially reduce the sample size. Moreover, they bring other lines with them; a single missing data point is part of lagged time series for different lags and as such lies in different lines of the data matrix augmented by lags. So sometimes people do such imputation at the expense of messing the inference a bit. There are estimation routines (EM algorithm) and frameworks (Bayesian) where keeping rows with missing data does not mess up inference as the missing data points are not used as data for estimating coefficients but are only estimated from the model. This should work fine for missing data points here and there, but I do not think you would gain any estimation precision by applying them to cases with severely ragged top or bottom of the data matrix.

*when augmented with lags (which again requires trimming the oldest observations from the lower-order lags to remove a ragged top edge and achieve a flat-top matrix)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.