Vector autoregression (VAR) is a powerful statistical model used to measure and analyze the relationships between multiple variables over time. It is a stochastic process model, meaning it models…