Data Science, Causal Inference, Linear Regression, Getting Started, Ab Testing.
mean1 - mean2 conf_interval = (mean_difference - margin_of_error, mean_difference + margin_of_error) print("Confidence Interval:", list(map(lambda x: round(x, 3), conf_interval))) # Output: Confidence Interval: [-1.918, -1.814] As expected since p-value is below 5%, our confidence interval doesn’t