5. Simulation module#

We provide functions for simulating structural causal models starting from a causal graph. This is useful for testing causal discovery algorithms, which assume an underlying graph exists and then data is generated faithful to that graph.

5.1. pywhy_graphs.simulate: Causal graphical model simulations#

simulate.simulate_linear_var_process([...])

Simulate a linear VAR process of a "stationary" causal graph.

simulate.simulate_data_from_var(var_arr[, ...])

Simulate data from an already set VAR process.

simulate.simulate_var_process_from_summary_graph(G)

Simulate a VAR(max_lag) process starting from a summary graph.