PerturbationDSGESolution#

class cultivars.multivariate.structural.perturbation.PerturbationDSGESolution(*, h_x, g_x, h_xx, g_xx, h_ss, g_ss, eta, x_ss, y_ss, order)[source]#

A second-order perturbation solution in Schmitt-Grohe-Uribe form.

With \(x\) the predetermined states (deviations from steady state) and y the controls:

y = g_x x + 1/2 g_xx (x kron x) + 1/2 g_ss sigma^2
x' = h_x x + 1/2 h_xx (x kron x) + 1/2 h_ss sigma^2 + eta eps'
Variables:
  • h_x (NDArray[double]) – (n_x, n_x) first-order state transition.

  • g_x (NDArray[double]) – (n_y, n_x) first-order policy.

  • h_xx (NDArray[double]) – (n_x, n_x * n_x) second-order state coefficients, acting on x kron x.

  • g_xx (NDArray[double]) – (n_y, n_x * n_x) second-order policy coefficients.

  • h_ss (NDArray[double]) – (n_x,) risk correction of the states.

  • g_ss (NDArray[double]) – (n_y,) risk correction of the controls.

  • eta (NDArray[double]) – (n_x, n_eps) shock loading.

  • x_ss (NDArray[double]) – (n_x,) steady-state states.

  • y_ss (NDArray[double]) – (n_y,) steady-state controls.

  • order (int) – 1 or 2; at order one every second-order block is zero.

See also

  • PerturbationDSGESolution – the public name of this class.

  • PerturbationDSGE.solve() – returns an instance.

  • _PerturbationModel._solve() – returns an instance.

  • _PerturbationModel.solve() – returns an instance.

  • _solve_perturbation() – returns an instance.

  • _PerturbationFit.solution – holds an instance.

Attributes#

h_x

First-order state transition, (n_x, n_x).

g_x

First-order control policy, (n_y, n_x).

h_xx

Second-order state coefficients, (n_x, n_x * n_x), acting on x kron x.

g_xx

Second-order control coefficients, (n_y, n_x * n_x), acting on x kron x.

h_ss

Risk correction of the states, (n_x,).

g_ss

Risk correction of the controls, (n_y,).

eta

Shock loading on the states, (n_x, n_eps).

x_ss

Steady-state values of the states, (n_x,).

y_ss

Steady-state values of the controls, (n_y,).

order

Approximation order, 1 or 2; at order one every second-order block is zero.

is_stable

Whether the first-order state transition is a contraction.

n_controls

Non-predetermined variables.

n_shocks

Structural shocks.

n_states

Predetermined states.