This project explores the problem of causal inference, where we want to make inference on the hidden confounder Z, which is represented by some proxies X and influences both the treatment T and the outcome Y of an experiment. Starting from a basic approach where we did not consider hidden confounders at all, we delve deeper in the latent variables model with SVI optimization and in the CEVAE model, experimenting with the underlying architecture and comparing the results.
This repository is organized in the following way:
-
./Referencescontains the papers we built our project on -
./srccontains the Python code used for the project./resultscontains all the plots of the results of the experimentscausal_effect_inference.ipynbis the main notebook containing all the procedures done in this projectdata_generation.pycontains the data generating functionsexperiments.pycontains the functions to run the experimentsmodels.pycontains the causal inference model classessynthetic_dataset.ipynbcontains graphs of the synthetic generated data
-
./slidescontains the slides for the presentation -
./theorycontains the underlying theory of this projectcausal_ml_theory.mdcovers the main theory about causal machine learningcevae_theory.mdexplains the CEVAE architectureTARNet.mdcovers the neural network architecture underlying the CEVAELVM_vs_CEVAE.mdcontains a direct comparison, from the theoretical point of view, between the latent variable model and its deep analogue (i.e. the CEVAE)
References:
- Louizos, Christos, et al. "Causal effect inference with deep latent-variable models." Advances in neural information processing systems 30 (2017).
- Hoffman, Matthew D., et al. "Stochastic variational inference." the Journal of machine Learning research 14.1 (2013): 1303-1347.
- Dang, Khue-Dung, and Luca Maestrini. "Fitting structural equation models via variational approximations." Structural Equation Modeling: A Multidisciplinary Journal 29.6 (2022): 839-853.
- Rissanen, Severi, and Pekka Marttinen. "A critical look at the consistency of causal estimation with deep latent variable models." Advances in Neural Information Processing Systems 34 (2021): 4207-4217.