pmdarima icon indicating copy to clipboard operation
pmdarima copied to clipboard

Unable to count seasonality

Open tiwari93 opened this issue 3 years ago • 1 comments

Describe the question you have

While running auto arima i made seasonal parameter as true. Still while fitting and testing model is not testing for seasonality. I tested with various samples having seasonality I found same issue.

image image

Versions (if necessary)

No response

tiwari93 avatar Sep 20 '22 05:09 tiwari93

That's not how auto_arima works. When you provide seasonal=True and m=12 (in your case) it tells auto_arima to perform a seasonal differencing test for D:

    if m == 1:
        D = max_P = max_Q = 0
    # m must be > 1 for nsdiffs
    elif D is None:  # we don't have a D yet and we need one (seasonal)
        D = nsdiffs(xx, m=m, test=seasonal_test, max_D=max_D,
                    **seasonal_test_args)

In your case, D was found to be 0, meaning no seasonal differencing required. Both d and D are only solved for once, and are not included in the stepwise search

tgsmith61591 avatar Sep 23 '22 12:09 tgsmith61591