Skip to content

DOC: Clarify deterministic terms in ARIMA GLS estimation - #10711

Merged
bashtage merged 1 commit into
statsmodels:mainfrom
Mohammed-AB:docs/gls-deterministic-terms
Nov 10, 2026
Merged

bashtage merged 1 commit into
statsmodels:mainfrom
Mohammed-AB:docs/gls-deterministic-terms

Conversation

@Mohammed-AB

Copy link
Copy Markdown

Clarify how include_constant and deterministic regressors in exog are handled by the ARIMA GLS estimator, including why an integrated model rejects an added constant and how a linear trend becomes drift after first differencing.

Addresses the GLS trend-documentation item in #6159; other items in that issue remain open.

Validation: repository-wide ruff check ., git diff --check, and a focused Sphinx build of the changed Notes section with warnings treated as errors all passed. No numerical code changed. The full project documentation build and numerical test suite were not run.

AI Disclosure

Contributions must comply with the statsmodels AI Policy.

Tick exactly one of the following. If AI tools were used, replace the <...>
placeholders in the second option with the tool name(s) and how the tool's output was
used.

  • No AI tools were used to develop this pull request.
  • AI tools were used.
    Tool(s): OpenAI Codex.
    Used for: drafting the documentation and release note, inspecting the implementation, running validation, and preparing the PR.
    I have personally read, understood, and can explain every line of this diff, and
    have verified the statistical/numerical correctness of the change.

@bashtage

Copy link
Copy Markdown
Member

Thanks.

@bashtage
bashtage merged commit 6f6dbf0 into statsmodels:main Nov 10, 2026
4 checks passed
bashtage added a commit that referenced this pull request Nov 10, 2026
…d models

Follow up #10711, which addressed #6159. Checked by running gls on
simulated AR(1) data with drift:

- exog description: an integrated model without exog fails for every
  value of include_constant, so say the model must not include
  integration when exog is omitted.
- A constant column in exog is removed by differencing like the
  include_constant column and makes the regression singular, but is not
  rejected.
- A trend in exog becomes a constant after one (regular or seasonal)
  difference and its coefficient is the drift per unit of the column;
  after a second difference the column is zero and cannot be estimated.
- State why the ARMA step does not demean: the regression absorbs all
  deterministic terms and the estimators receive its residuals.

Docstring only; the code is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
bashtage added a commit that referenced this pull request Nov 10, 2026
Follow up #10711, which addressed #6159. Add the PR role, move the
bullet to the end of the Documentation section (entries are appended in
merge order), drop the blank line after it and state that numerical
behavior is unchanged, like the neighbouring bullets.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
bashtage added a commit that referenced this pull request Nov 10, 2026
DOC: Follow up #10711 (constants and trends in the ARIMA GLS notes)
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

Successfully merging this pull request may close these issues.

2 participants