In https://github.com/amit-sharma/causal-inference-tutorial/blob/master/python/simple_recommender_example.py.ipynb you merely average between strata. This works only because the starta size is equal. In the general case, one needs to multiply by the probability to be in the strata and sum. I think this will confuse students.
In https://github.com/amit-sharma/causal-inference-tutorial/blob/master/python/simple_recommender_example.py.ipynb you merely average between strata. This works only because the starta size is equal. In the general case, one needs to multiply by the probability to be in the strata and sum. I think this will confuse students.