Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtendedAirline model: Seasonal MA Part is eliminated for AR=true #875

Open
ChristianeHofer opened this issue Aug 18, 2022 · 3 comments
Open

Comments

@ChristianeHofer
Copy link
Contributor

Dear @palatej ,
@webelk and I debugged the code. We have a question to the following:

if (ar) {
double ph = -phi.get(1);
p[0] = ph;
for (int i = 0; i < p0.length; ++i) {
if (!round) {
p[i + 1] = -theta.get(p0[i]-1) / f0[i];
} else {
p[i + 1] = -theta.get(p0[i]-1);
}

Why is the index for ar=true (p0[i]-1) and ar=false (p0[i]) different?
In the case of AR=true, we put in our example
AR = 1,00000 - 0,200000 B; MA = 1,00000 - 0,200000 B^7; var =1.0
and got back 0.2 and 0 what results to the model:
AR = 1,00000 - 0,200000 B; MA = 1,00000; var =1.0.
Why is this behaviour needed?. Regards Christiane

@palatej
Copy link
Contributor

palatej commented Aug 19, 2022

Hi Christiane, you are right. I will correct the code.

To be noted that the objective of ar=true is to diminish the differencing orders that generate a lot of numerical problems.
So, with ar = true, we replace (1-B)y = (1-thetaB)e by (1-phiB)y =e. The periodic ar/ma polynomials are omitted to simplify the notations; they are the same in both models.

Not sure that I will keep that option in the final version.

@palatej
Copy link
Contributor

palatej commented Aug 19, 2022

Additional comment:
Models with stationary AR polynomials are often non decomposable, which lead to other problems (we use the "noisy" approach: we add noise in the initial model to make it decomposable; the irregular is null in that case).

@webelk
Copy link

webelk commented Aug 19, 2022

Thank you, Jean. This information is very useful for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants