Machine Learning, Causal Inference, Data Science, Deep Dives, Notes From Industry.
X. Use the first half to train a separate auxiliary RandomForest model to predict log(q) from X. Use the two auxiliary models to predict log(p) and log(q) from X in the second half of the data, to obtain after residualizing: 6. Infer elasticity as the coefficient of a linear regression, 7. Repeat