Quasi Experiment, Experimentation, Synthetic Control, Causal Inference, Data Science.
matplotlib.pyplot as plt # Fit the synthetic control model for the actual treated unit sc = SyntheticControl(data.loc[0], data.loc[1:], pre_intervention_period) sc.fit() counterfactual = sc.predict(post_intervention_period) actual_treatment_effect = data.loc[0, post_intervention_period] -