Comments (1)
CausalForestDML computes a model which is linear in T, roughly
Y = \theta(X) T + \beta(X) + Y_0(X,W)
where theta and beta are forest-based models, and Y_0 is a nuisance function.
So the marginal CATE is just dY/dT = \theta(X). We don't need to compute a gradient because we're assuming linearity in T and the final model is fitting this directly.
For your second question, const_marginal_ate is the average marginal treatment effect over all of the Xs passed in, whereas const_marginal_effect is the per-X heterogeneous treatment effect, so the former is just the mean of the latter (but to be clear, CausalForestDML does not support X=None as a valid input to either method).
Because the treatment effect is assumed to be linear for all of our DML methods, they implement effect in terms of const_marginal_effect (not const_marginal_ate, because again that would average over the treatments instead of giving the heterogeneous effects): effect(X, T0, T1)
is basically just const_marginal_effect(X) @ (T1-T0)
where @
is matrix multiplication.
Again, because the treatment effect is always linear for these models, the marginal effect is the same for any value of T, and marginal_effect(T, X) == const_marginal_effect(X)
and marginal_ate(T, X) == const_marginal_ate(X)
for every T.
Hope that helps.
from econml.
Related Issues (20)
- DynamicDML() issue: AttributeError: Provided crossfit folds contain training splits that don't contain all treatments DynamicDML HOT 5
- Inconsistent ATE estimation HOT 3
- Confidence Interval for categorical outcome HOT 3
- [Bug] fit_cate_incercept argument in econml.dml.DML does not add intercept correctly HOT 5
- `shap_values` for tree-based models doesn't set `check_additivity=False` as expected HOT 3
- A column-vector y was passed when a 1d array was expected (however, y is already a 1d array) HOT 1
- Individual Treatment Effects HOT 1
- How to get the Confidence Interval for ATE instead of CATE HOT 1
- Converting to Python object not allowed without gil HOT 1
- Reproducible error: SHAP ExplainerError: Additivity check failed in TreeExplainer HOT 4
- Questions regarding DRPolicyForest results HOT 2
- DRtester does not work for binary treatment AND binary outcome HOT 5
- Confounder adjusting before applying the ITE model to observational data
- Calculation of confidence intervals in NormalInferenceResults becomes very slow when passing big dataframes HOT 2
- DML discrete outcome HOT 1
- High memory footprint for big dataframes in CausalForest model HOT 3
- Questions about econml and CausalForestDML
- Reduce residual confounding in time series
- How can I calculate the treatment effect function in a double machine learning model? HOT 1
- Why Shape of Y in Causal Forest notebook is 1000*1000
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from econml.