14.6 ANOVA
One-way ANOVA
Lab 14.6.1
The data set below (URL) contains the students test1_score, gender, level, section etc.
- Write a Python code to read the data set and display the first and last five rows.
- Write a Python code to find
test3_scoremeans, std and size for each level - Write a Python code to perform ANOVA to test if there is sufficient evidence to indicate a difference in the averages of
test1_scoresamong the threelevels(low, medium, high). Use 10% level of significance.
my_csv_file.csv
Two-way ANOVA (Block Design)
Lab 14.6.2
The data set below (URL) contains students test1_score, gender, level, section etc.
- Write a Python code to read the dataset and display the first five rows.
- Write a program to find
test3_scoremeans grouped bylevelandgender. - Write a Python code to perform ANOVA block design to test if there is sufficient evidence to indicate a difference in the averages of
test3_scoreamong the three levels (low, medium, high) using gender as blocks. Use 10% level of significance.
my_csv_file.csv
Two-Factor ANOVA (Interactions)
Lab 14.6.3
The dataset below (URL) contains students test1_score, gender, level, section etc.
- Write a Python code to read the dataset and display the first 5 rows.
- Write a Python code to display the means grouped by
levelandinteractionfortest3_score. - Write a Python code to perform a two-factor ANOVA with
levelandsection. Do the data provide sufficient evidence to indicate an interaction betweenlevelandsection? Use 10% level of significance.
my_csv_file.csv
Adapted from Python for Introductory Statistics: Student's Lab Workbook, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.