RensembleHTE · grf · xgboost
Heterogeneous treatment effects
For: finding out who a treatment helps, in a randomised trial, without
data-mining the answer.
The estimands are Chernozhukov, Demirer, Duflo and Fernández-Val's: the best
linear predictor, sorted group effects and classification analysis, estimated fold by
fold, pooled by median over 180 sample splits, and
accompanied by a simulation check of the pooled test's size.
On the simulated trial: true average effect
-0.019, estimated 0.009
(p = 0.93). Heterogeneity is strongly present:
top minus bottom quartile 1.67
(p < 0.0001), against a true gap of
1.72.
Open
PythonXGBoost · SMOTENC · scikit-learn
Predicting a rare outcome
For: predicting a rare and sensitive survey answer that many respondents
skipped, when the predictions are aggregated into shares rather than used for decisions
about individuals.
The page goes through four steps, each with the experiment that motivates it: imputing
missing features without the outcome, handling the imbalance, setting the threshold, and
validating the predicted shares. It also examines whether oversampling improves the
predictions and how performance changes as the outcome becomes rarer.
On the simulated survey,
2.6% of respondents report carrying a weapon, against
3.8% of the students who skipped the question. Filling
in the gaps with recalibrated probabilities reduces the error in the overall share from
0.46 to 0.22 percentage points,
averaged over 5 simulated surveys.
Open