E5PythonAdvancedAbout 180 min to complete
ANOVA (Analysis of Variance)
A t-test compares two group means. But what if you have three or more?
Notebook
About 180 minutes to complete
Enrol to read the notebook and download it to run.
What this module covers
A t-test compares two group means. But what if you have three or more?
By the end of it
- Explain why repeated t-tests inflate Type I error, and how ANOVA avoids it
- Describe the ANOVA logic: between-group vs within-group variance and the F-statistic
- Run a one-way ANOVA with both scipy.stats.f_oneway and a statsmodels ANOVA table
- Check ANOVA assumptions (normality of residuals, homogeneity of variance, independence)
- Report effect size (eta-squared, omega-squared) alongside the F-test
- Run post-hoc pairwise comparisons (Tukey HSD) to locate the differences
- Extend to two-way ANOVA with interaction effects and read an interaction plot