Granger Causality Simulation Code