Skip to content

Commit

Permalink
correct equations in readme.md1
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4tomxu98 committed Jul 1, 2021
1 parent 71f30b3 commit 3e67f39
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,18 @@ Let’s suppose, you have two variables (Time series) Y1 and Y2, and you need to
To calculate Y1(t), VAR will use the past values of both Y1 as well as Y2. Likewise, to compute Y2(t), the past values of both Y1 and Y2 be used.

For example, the system of equations for a VAR(1) model with two time series (variables `Y1` and `Y2`) is as follows:

![VAR(1) Model Equations](https://www.machinelearningplus.com/wp-content/uploads/2019/07/Equation_VAR1_Model-min.png)
![AR(p) Model Equations](https://www.machinelearningplus.com/wp-content/uploads/2019/07/Equation_VAR1_Model-min.png)

Where, Y{1,t-1} and Y{2,t-1} are the first lag of time series Y1 and Y2 respectively.

The above equation is referred to as a VAR(1) model, because, each equation is of order 1, that is, it contains up to one lag of each of the predictors (Y1 and Y2).

Since the Y terms in the equations are interrelated, the Y’s are considered as endogenous variables, rather than as exogenous predictors.

Likewise, the second order VAR(2) model for two variables would include up to two lags for each variable (Y1 and Y2).

Likewise, the second order VAR(2) model for two variables would include up to two lags for each variable (Y1 and Y2):
![VAR(2) Model Equations](https://www.machinelearningplus.com/wp-content/uploads/2019/07/Equation_VAR2_Model-min.png)

Can you imagine what a second order VAR(2) model with three variables (Y1, Y2 and Y3) would look like?

![VAR(2) Model Three Variables](https://www.machinelearningplus.com/wp-content/uploads/2019/07/Equation_VAR2_Model_with_three_Ys-min.png)

As you increase the number of time series (variables) in the model the system of equations become larger.
Expand Down

0 comments on commit 3e67f39

Please sign in to comment.