# jrfiedler/causal_inference_python_code

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/jrfiedler-causal-inference-python-code).**

1,350 stars · 411 forks · Jupyter Notebook

## Links

- GitHub: https://github.com/jrfiedler/causal_inference_python_code
- awesome-repositories: https://awesome-repositories.com/repository/jrfiedler-causal-inference-python-code.md

## Topics

`causal-inference` `causality` `data-science` `python`

## Description

This repository provides a collection of Python implementations for causal inference, designed to estimate the impact of specific interventions using observational data. It serves as a statistical toolkit for researchers to isolate causal signals from complex confounding factors in data sets that lack experimental control.

The framework enables the application of rigorous methodologies to study health determinants and evaluate policy interventions. By utilizing structural causal modeling and directed acyclic graphs, the library allows users to map causal dependencies and identify the necessary variables for unbiased estimation. It supports the simulation of counterfactual outcomes to compare potential results under different treatment scenarios, providing a structured approach to understanding cause and effect.

The toolkit covers a broad range of statistical estimation techniques, including inverse probability weighting, g-formula computation, and parametric regression analysis. These computational tools are organized to facilitate the analysis of observational data within epidemiological and social research contexts. The project is distributed as a collection of Jupyter Notebooks containing these statistical frameworks and implementations.

## Tags

### Artificial Intelligence & ML

- [Causal Effect Estimators](https://awesome-repositories.com/f/artificial-intelligence-ml/causal-inference-tools/causal-effect-estimators.md) — Calculates the impact of specific interventions on outcomes by applying statistical methodologies to observational data sets. ([source](https://github.com/jrfiedler/causal_inference_python_code#readme))
- [G-Formula Estimators](https://awesome-repositories.com/f/artificial-intelligence-ml/causal-inference-tools/causal-effect-estimators/g-formula-estimators.md) — Estimates causal effects by standardizing the distribution of outcomes across treatment groups using conditional probability models.
- [G-Formula Standardizers](https://awesome-repositories.com/f/artificial-intelligence-ml/causal-inference-tools/causal-effect-estimators/g-formula-standardizers.md) — Estimates causal effects by integrating conditional probability models to simulate outcomes across different hypothetical treatment distributions.
- [Regression Analysis](https://awesome-repositories.com/f/artificial-intelligence-ml/regression-analysis.md) — Uses linear or generalized models to quantify the relationship between treatment variables and outcomes while controlling for covariates.
- [Causal Counterfactual Simulators](https://awesome-repositories.com/f/artificial-intelligence-ml/statistical-analysis/counterfactual-analyses/causal-counterfactual-simulators.md) — Simulates potential outcomes under different treatment scenarios to estimate the difference between observed and hypothetical states.

### Part of an Awesome List

- [Causal Inference](https://awesome-repositories.com/f/awesome-lists/ai/causal-inference.md) — Provides a collection of statistical methods for estimating causal effects from observational data using techniques like inverse probability weighting and g-formula.
- [Data Science](https://awesome-repositories.com/f/awesome-lists/data/data-science.md) — Implements computational techniques to identify and quantify cause and effect relationships within data sets lacking experimental control.

### Data & Databases

- [Observational Data Analysis Tools](https://awesome-repositories.com/f/data-databases/observational-data-analysis-tools.md) — Analyzes data collected without experimental control to identify potential causal relationships between variables using structured statistical frameworks.
- [Observational Data Processors](https://awesome-repositories.com/f/data-databases/observational-data-processors.md) — Applies rigorous statistical frameworks to non-experimental data sets to isolate causal signals from complex confounding factors.

### Education & Learning Resources

- [Epidemiological Research Methodologies](https://awesome-repositories.com/f/education-learning-resources/research-collections/researcher-methodologies/epidemiological-research-methodologies.md) — Applies rigorous causal inference methodologies to study determinants of health and evaluate the impact of policy interventions.

### Scientific & Mathematical Computing

- [Epidemiological Analysis Frameworks](https://awesome-repositories.com/f/scientific-mathematical-computing/epidemiological-analysis-frameworks.md) — Uses structured statistical frameworks to study health determinants and evaluate the potential effects of public health policy interventions.
- [Epidemiological Research Methods](https://awesome-repositories.com/f/scientific-mathematical-computing/epidemiological-research-methods.md) — Applies advanced statistical techniques to study the distribution and determinants of health-related states or events in specified populations.
- [Inverse Probability Weighting Estimators](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/statistics-probability/probability-distributions/probability-outcome-calculation/weighted-probability-matrices/inverse-probability-weighting-estimators.md) — Adjusts for selection bias by weighting observations based on the inverse of their predicted probability of receiving a treatment.
- [Statistical Estimation](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/statistics-probability/statistical-estimation.md) — Fits generalized linear models to observational data to quantify the relationship between interventions and observed outcomes.
- [Causal Effect Estimators](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/statistics-probability/statistical-estimation/causal-effect-estimators.md) — Calculates causal parameters by fitting mathematical models to observational data to isolate the effect of specific interventions.
- [Public Health Policy Evaluators](https://awesome-repositories.com/f/scientific-mathematical-computing/public-health-policy-evaluators.md) — Assesses the potential outcomes of policy interventions by modeling causal pathways to inform evidence-based decision making.
- [Research and Data Analysis Tools](https://awesome-repositories.com/f/scientific-mathematical-computing/research-analysis-workflows/research-and-data-analysis-tools.md) — Facilitates the modeling of counterfactual outcomes and the evaluation of intervention impacts through structured research workflows.
- [Statistical Analysis Libraries](https://awesome-repositories.com/f/scientific-mathematical-computing/research-analysis-workflows/research-and-data-analysis-tools/statistical-analysis-libraries.md) — Offers computational tools for calculating the impact of interventions on outcomes within complex research data sets.

### Software Engineering & Architecture

- [Directed Acyclic Graph Models](https://awesome-repositories.com/f/software-engineering-architecture/causal-relationship-modeling/directed-acyclic-graph-models.md) — Maps causal dependencies using visual diagrams to identify necessary variables for unbiased statistical estimation.
