dowhy icon indicating copy to clipboard operation
dowhy copied to clipboard

[Refute] Placebo Test

Open elakhatibi opened this issue 3 years ago • 1 comments

Hi,

I have tried to understand the source code of "placebo Test" ("https://github.com/py-why/dowhy/blob/master/dowhy/causal_refuters/placebo_treatment_refuter.py)"

I was wondering (especially in hereunder line of code) whether the algorithm tries to assign one of the available features as a "new_treatment" variable and shut down backdoor paths, then calculate the NEW causal-effect estimation?

[new_treatment = self._data[self._treatment_name].iloc[permuted_idx].values]

Meanwhile, could you please share with me some docs/materials about validation parts?

Looking forward to hearing from you.

Thanks a lot for your precious time and your kind consideration.

Best, Ela

elakhatibi avatar Jul 13 '22 17:07 elakhatibi

The algorithm shuts down the backdoor path by permuting the treatment variable data. Since the treatment is randomized, it cannot be affected by the confounders. This paper on negative controls describes the core idea. https://pubmed.ncbi.nlm.nih.gov/20335814/

We are also preparing an updated chapter on this topic, will post it here next week.

amit-sharma avatar Jul 14 '22 05:07 amit-sharma