Dear all,
I want to simulate a time series.
Given x_0, y_0, z_0,
x_t = a*y_t-1 + b*x_t-1;
y_t = c*x_t;
For example, a = 0.5, b = 0.8, c = 0.6; x_0 = 12, y_0 = 2; iterate the equations for t = 1...20.
I tried that,
x[_n] = a*y[_n-1] + b*x[_n-1];
y[_n]= c*x[_n]
It is wrong and returns an error, "weights not allowed". How to solve it?
Thank you a lot.
I want to simulate a time series.
Given x_0, y_0, z_0,
x_t = a*y_t-1 + b*x_t-1;
y_t = c*x_t;
For example, a = 0.5, b = 0.8, c = 0.6; x_0 = 12, y_0 = 2; iterate the equations for t = 1...20.
I tried that,
x[_n] = a*y[_n-1] + b*x[_n-1];
y[_n]= c*x[_n]
It is wrong and returns an error, "weights not allowed". How to solve it?
Thank you a lot.

Comment