Data Science, Causal Inference, Linear Regression, Getting Started, Ab Testing.
confounders in our equation to control for it. When we add it to the linear regression, we start to estimate the treatment effect with fixed experience, eliminating the bias. Let’s try to do it. model = smf.ols('time_spent_mins ~ treatment * passed_training + complexity + tenure', data=df).fit()