反例检验
原能力
寻找和主判断不一致的资料,记下什么新事实能区分竞争解释。(细化版 p.4–5)
首选项目
DoWhy(MIT)。 DoWhy
匹配范围
Refuters 对既定统计因果估计运行反驳检验。
源码
DoWhy · def refute_estimate(
dowhy/causal_model.py · 474–487 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def refute_estimate(self, estimand, estimate, method_name=None, show_progress_bar=False, **kwargs):
"""Refute an estimated causal effect.
method_name must be specified. Examples of refutation methods include:
* Adding a randomly-generated confounder: "random_common_cause"
* Adding a confounder that is associated with both treatment and outcome: "add_unobserved_common_cause"
* Replacing the treatment with a placebo (random) variable): "placebo_treatment_refuter"
* Removing a random subset of the data: "data_subset_refuter"
* Bootstrap the data: "bootstrap_refuter"
* Replace outcome with a dummy (random) variable: "dummy_outcome_refuter"
For available refuters, see modules under dowhy.causal_refuters.
:param estimand: target estimand, an instance of the IdentifiedEstimand class
(typically the output of identify_effect)
实现与验收要点
搜集与原判断不符的事实、来源筛查和竞争解释。