matheusfacure / python-causality-handbook

Causal Inference for the Brave and True. A light-hearted yet rigorous approach to learning about impact estimation and causality.
https://matheusfacure.github.io/python-causality-handbook/landing-page.html
MIT License
2.61k stars 456 forks source link

Issue on page /12-Doubly-Robust-Estimation.html #330

Closed andytimm closed 1 year ago

andytimm commented 1 year ago

I believe this is a typo, unless I’m missing something.

8FFF63A0-9DC9-4CDE-9A76-50366DE1182D

I believe between lines 2 and 3, you are factoring out a u(Xi) from the last two terms, and then further pulling out a -1 from both terms in parens to set up the next line.

But that -1 then disappears when it shouldn’t, and so I believe the minus between the fractions in the last line should actually be a plus.

matheusfacure commented 1 year ago

and then further pulling out a -1 from both terms in parens to set up the next line.

No. From line 3 to 4, I'm just finding the common denominator of T/P and 1

T/P - 1 = T/P - P/P = (T-P)/P