smooth.OMG
- class smooth.OMG(model_a='MNN', model_b=None, lags=None, orders_a=None, orders_b=None, constant_a=False, constant_b=None, formula_a=None, formula_b=None, regressors_a='use', regressors_b=None, persistence_a=None, persistence_b=None, phi_a=None, phi_b=None, arma_a=None, arma_b=None, h=0, holdout=False, initial='backcasting', loss='likelihood', reg_lambda=None, ic='AICc', bounds='usual', verbose=0, nlopt_kwargs=None, ets='conventional', smoother='default')
General occurrence model — two parallel ETS sub-models combined.
- Public API:
fit(y, X=None)→ selfpredict(h, X=None)→ForecastResult- Attributes after fit:
model_a:OM— odds-ratio sub-modelmodel_b:OM— inverse-odds-ratio sub-modelfitted: combined probabilities ∈ (0, 1)residuals:ot - fittedloss_value,loglik,aic/aicc/bic/bicccoef: joint parameter vectorconcat(B_A, B_B)model_name:"oETS[G](MNN)(MNN)"-style string
Methods
|
Bootstrap the joint OMG coefficient sampling distribution. |
|
Confidence intervals for the joint OMG parameters. |
|
|
|
Multi-step forecast-error covariance — not defined for OMG. |
|
Per-observation log-likelihood of the coupled occurrence model. |
|
|
Pearson standardised residuals for the general occurrence model. |
|
|
Pearson studentised residuals for the general occurrence model. |
|
Re-simulate the combined OMG occurrence series. |
|
Coefficient-table summary for the joint occurrence model. |
|
Joint variance–covariance matrix for both OMG sub-models. |
Attributes
Binary 0/1 indicator built from the raw input series. |
|
Joint parameter names with |
|
Cached observed Fisher Information at the estimated joint B. |
|