Closed munichpavel closed 2 years ago
Credit risk seems most analogous to stratification in clinical trials
Problem formulation (notation as in Pearl et al, I think): https://econml.azurewebsites.net/spec/api.html
From https://github.com/Microsoft/EconML
from econml.dml import CausalForestDML
from sklearn.linear_model import LassoCV
# Use defaults
est = CausalForestDML()
# Or specify hyperparameters
est = CausalForestDML(criterion='het', n_estimators=500,
min_samples_leaf=10,
max_depth=10, max_samples=0.5,
discrete_treatment=False,
model_t=LassoCV(), model_y=LassoCV())
est.fit(Y, T, X=X, W=W)
treatment_effects = est.effect(X_test)
# Confidence intervals via Bootstrap-of-Little-Bags for forests
lb, ub = est.effect_interval(X_test, alpha=0.05)
Or not: Causal methods aren't in general about doing prediction better, they are usually about estimating effects of interventions.
In scope
Out of scope