GitHub

Original file line numberDiff line numberDiff line change

@@ -734,7 +734,7 @@ sample_size = 500_000

734734

ar = LinearStateSpace(A_2, C_2, G_2, mu_0=np.ones(4))

735735

fig, ax = plt.subplots()

736736

x, y = ar.simulate(sample_size)

737-

mu_x, mu_y, Sigma_x, Sigma_y = ar.stationary_distributions()

737+

mu_x, mu_y, Sigma_x, Sigma_y, Sigma_yx = ar.stationary_distributions()

738738

f_y = norm(loc=float(mu_y), scale=float(np.sqrt(Sigma_y)))

739739

y = y.flatten()

740740

ygrid = np.linspace(ymin, ymax, 150)

@@ -920,7 +920,7 @@ def cross_plot(A,

920920

ar = LinearStateSpace(A, C, G, mu_0=np.ones(4))

921921
922922

if steady_state == 'True':

923-

μ_x, μ_y, Σ_x, Σ_y = ar.stationary_distributions()

923+

μ_x, μ_y, Σ_x, Σ_y, Σ_yx = ar.stationary_distributions()

924924

ar_state = LinearStateSpace(A, C, G, mu_0=μ_x, Sigma_0=Σ_x)

925925
926926

ymin, ymax = -0.6, 0.6

Read the original on github.com ↗