偏离归因
原能力
区分原前提变化、资源短缺、执行延迟和观察不足,保留不确定归因。(细化版 p.8–9)
首选项目
DoWhy(MIT)。 DoWhy
匹配范围
反驳检验检验已建因果解释的稳健性。
源码
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)
实现与验收要点
施工过程事实、可辨识条件和不同原因的独立证据。