Statistics, Machine Learning, Data Science, Financial Planning, Python.
['X', 'X', 'X', 'X', 'X', 'Y', 'Y', 'Y', 'Y', 'Y', 'X', 'X', 'X', 'X', 'X', 'Y', 'Y', 'Y', 'Y', 'Y', 'X', 'X', 'X', 'X', 'X', 'Y', 'Y', 'Y', 'Y', 'Y'] } df = pd.DataFrame(data) # Perform the factorial ANOVA model = ols('y ~ factor1 * factor2', data=df).fit() anova_table = sm.stats.anova_lm(model,