Data Science, Causal Inference, Linear Regression, Getting Started, Ab Testing.
linear regression. We will use OLS (Ordinary Least Squares) function from statsmodels package. import statsmodels.formula.api as smf model = smf.ols('time_spent_mins ~ treatment', data=df).fit() model.summary().tables[1] In the result, we got all the needed info: estimation of the effect