RegimeSystemResult#
- class cultivars.multivariate.regime_switching.markov_switching.RegimeSystemResult(*, index, names, order, trend, coefficients, deterministic, sigma_u, resid, weight, nobs)[source]#
One regime of a fitted regime model, dressed as a closed linear system.
The interchange view of the regime families, on the pattern
_ConditionalLevelsset for the global model: a public result produces it, the identification layer consumes it, and users receive it without ever constructing it. Conditional on its regime the model is a linear VAR, and this view exposes exactly the closed-system surface an identification model reads – labels, coefficients, an innovation covariance, residuals, and a moving-average representation – so it passes anywhere a fitted VAR result passes as an identification source.Two honesty notes on the statistical members.
nobsis the expected number of periods governed by this regime – the sum of its weights, a float, because under a latent chain no date belongs to a regime with certainty.residis the full-sample residuals under this regime’s parameters, weighted by the square root of the regime weights and scaled so their second moment matchessigma_u; a scheme that only reads the covariance (recursive, long-run, short-run) is unaffected, while a scheme that reads residual moments directly is consuming a weight-averaged object and should be interpreted accordingly.- Variables:
index (
int) – This regime’s label under the producing fit’s convention.order (
int) – Autoregressive order.trend (
str) – Deterministic specification.coefficients (
NDArray[double]) –(p, k, k)lag stack of this regime.deterministic (
NDArray[double]) – This regime’s deterministic coefficients.sigma_u (
NDArray[double]) – This regime’s innovation covariance.resid (
NDArray[double]) – Probability-weighted residuals, aligned with the effective sample.weight (
NDArray[double]) – This regime’s weights – smoothed probabilities for a latent chain – one per effective row.nobs (
float) – Expected periods governed by this regime.
See also
RegimeSystemResult– the public name of this class.MarkovSwitchingVARResult.regime()– returns an instance.
Attributes#
This regime's label under the producing fit's convention. |
|
Variable labels, in column order. |
|
Autoregressive order. |
|
Deterministic specification. |
|
|
|
This regime's deterministic coefficients. |
|
This regime's innovation covariance. |
|
Probability-weighted residuals, aligned with the effective sample. |
|
This regime's weights -- smoothed probabilities for a latent chain -- one per effective row. |
|
Expected periods governed by this regime. |
|
Whether this regime, read as a linear VAR, is stable. |
|
Number of endogenous variables. |
Methods#
|
Moving-average matrices of this regime, held frozen. |
Companion-eigenvalue verdict for this regime's lag stack. |