we want to compare means across many groups. We might initially think to do pairwise comparisons. For example, if there were three groups, we might be tempted to compare the first mean with the second, then with the third, and then finally compare the second and third means for a total of three comparisons. However, this strategy can be treacherous. If we have many groups and do many comparisons, it is likely that we will eventually find a difference just by chance, even if there is no difference in the populations. Instead, we should apply a holistic test to check whether there is evidence that at least one pair groups are in fact different, and this is where ANOVA saves the day.
Core ideas of ANOVA
In this section, we will learn a new method called analysis of variance (ANOVA) and a new test statistic called . ANOVA uses a single hypothesis test to check whether the means across many groups are equal:
The mean outcome is the same across all groups. In statistical notation, where represents the mean of the outcome for observations in category .
At least one mean is different.
Generally we must check three conditions on the data before performing ANOVA:
the observations are independent within and across groups,
the data within each group are nearly normal, and
the variability across the groups is about equal.
When these three conditions are met, we may perform an ANOVA to determine whether the data provide strong evidence against the null hypothesis that all the are equal.
Example 7.40
College departments commonly run multiple lectures of the same introductory course each semester because of high demand. Consider a statistics department that runs three lectures of an introductory statistics course. We might like to determine whether there are statistically significant differences in first exam scores in these three classes (, , and ). Describe appropriate hypotheses to determine whether there are any differences between the three classes.
The hypotheses may be written in the following form:
The average score is identical in all lectures. Any observed difference is due to chance. Notationally, we write .
The average score varies by class. We would reject the null hypothesis in favor of the alternative hypothesis if there were larger differences among the class averages than what we might expect from chance alone.
Strong evidence favoring the alternative hypothesis in ANOVA is described by unusually large differences among the group means. We will soon learn that assessing the variability of the group means relative to the variability among individual observations within each group is key to ANOVA’s success.
Example 7.41
Examine Figure 7.19. Compare groups I, II, and III. Can you visually determine if the differences in the group centers is due to chance or not? Now compare groups IV, V, and VI. Do these differences appear to be due to chance?
Any real difference in the means of groups I, II, and III is difficult to discern, because the data within each group are very volatile relative to any differences in the average outcome. On the other hand, it appears there are differences in the centers of groups IV, V, and VI. For instance, group V appears to have a higher mean than that of the other two groups. Investigating groups IV, V, and VI, we see the differences in the groups’ centers are noticeable because those differences are large relative to the variability in the individual observations within each group.
Is batting performance related to player position in MLB?
We would like to discern whether there are real differences between the batting performance of baseball players according to their position: outfielder (OF), infielder (IF), and catcher (C). We will use a data set called bat18, which includes batting records of 429 Major League Baseball (MLB) players from the 2018 season who had at least 100 at bats. Six of the 429 cases represented in bat18 are shown in Figure 7.20, and descriptions for each variable are provided in Figure 7.21. The measure we will use for the player batting performance (the outcome variable) is on-base percentage (OBP). The on-base percentage roughly represents the fraction of the time a player successfully gets on base or hits a home run.
| name | team | position | AB | H | HR | RBI | AVG | OBP | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Abreu, J | CWS | IF | 499 | 132 | 22 | 78 | 0.265 | 0.325 |
| 2 | Acuna Jr., R | ATL | OF | 433 | 127 | 26 | 64 | 0.293 | 0.366 |
| 3 | Adames, W | TB | IF | 288 | 80 | 10 | 34 | 0.278 | 0.348 |
| 427 | Zimmerman, R | WSH | IF | 288 | 76 | 13 | 51 | 0.264 | 0.337 |
| 428 | Zobrist, B | CHC | IF | 455 | 139 | 9 | 58 | 0.305 | 0.378 |
| 429 | Zunino, M | SEA | C | 373 | 75 | 20 | 44 | 0.201 | 0.259 |
bat18 data matrix.| variable | description |
|---|---|
name |
Player name |
team |
The abbreviated name of the player’s team |
position |
The player’s primary field position (OF, IF, C) |
AB |
Number of opportunities at bat |
H |
Number of hits |
HR |
Number of home runs |
RBI |
Number of runs batted in |
AVG |
Batting average, which is equal to |
OBP |
On-base percentage, which is roughly equal to the fraction of times a player gets on base or hits a home run |
bat18 data set.Guided Practice 7.42
The null hypothesis under consideration is the following: . Write the null and corresponding alternative hypotheses in plain language.1
Example 7.43
The player positions have been divided into three groups: outfield (OF), infield (IF), and catcher (C). What would be an appropriate point estimate of the on-base percentage by outfielders, ?
A good estimate of the on-base percentage by outfielders would be the sample average of OBP for just those players whose position is outfield: .
Figure 7.22 provides summary statistics for each group. A side-by-side box plot for the on-base percentage is shown in Figure 7.23. Notice that the variability appears to be approximately constant across groups; nearly constant variance across groups is an important assumption that must be satisfied before we consider the ANOVA approach.
OF |
IF |
C |
|
|---|---|---|---|
| Sample size () | 160 | 205 | 64 |
| Sample mean () | 0.320 | 0.318 | 0.302 |
| Sample SD () | 0.043 | 0.038 | 0.038 |
Example 7.44
The largest difference between the sample means is between the catcher and the outfielder positions. Consider again the original hypotheses:
The average on-base percentage () varies across some (or all) groups.
Why might it be inappropriate to run the test by simply estimating whether the difference of and is statistically significant at a 0.05 significance level?
The primary issue here is that we are inspecting the data before picking the groups that will be compared. It is inappropriate to examine all data by eye (informal testing) and only afterwards decide which parts to formally test. This is called data snooping or data fishing. Naturally, we would pick the groups with the large differences for the formal test, and this would leading to an inflation in the Type 1 Error rate. To understand this better, let’s consider a slightly different problem.
Suppose we are to measure the aptitude for students in 20 classes in a large elementary school at the beginning of the year. In this school, all students are randomly assigned to classrooms, so any differences we observe between the classes at the start of the year are completely due to chance. However, with so many groups, we will probably observe a few groups that look rather different from each other. If we select only these classes that look so different and then perform a formal test, we will probably make the wrong conclusion that the assignment wasn’t random. While we might only formally test differences for a few pairs of classes, we informally evaluated the other classes by eye before choosing the most extreme cases for a comparison.
For additional information on the ideas expressed in Example 7.44, we recommend reading about the prosecutor’s fallacy.2
In the next section we will learn how to use the statistic and ANOVA to test whether observed differences in sample means could have happened just by chance even if there was no difference in the respective population means.
Analysis of variance (ANOVA) and the -test
The method of analysis of variance in this context focuses on answering one question: is the variability in the sample means so large that it seems unlikely to be from chance alone? This question is different from earlier testing procedures since we will simultaneously consider many groups, and evaluate whether their sample means differ more than we would expect from natural variation. We call this variability the mean square between groups (), and it has an associated degrees of freedom, when there are groups. The can be thought of as a scaled variance formula for means. If the null hypothesis is true, any variation in the sample means is due to chance and shouldn’t be too large. Details of calculations are provided in the footnote.3 However, we typically use software for these computations.
The mean square between the groups is, on its own, quite useless in a hypothesis test. We need a benchmark value for how much variability should be expected among the sample means if the null hypothesis is true. To this end, we compute a pooled variance estimate, often abbreviated as the mean square error (), which has an associated degrees of freedom value . It is helpful to think of as a measure of the variability within the groups. Details of the computations of the and a link to an extra online section for ANOVA calculations are provided in the footnote4 for interested readers.
When the null hypothesis is true, any differences among the sample means are only due to chance, and the and should be about equal. As a test statistic for ANOVA, we examine the fraction of and : The represents a measure of the between-group variability, and measures the variability within each of the groups.
Guided Practice 7.45
For the baseball data, and . Identify the degrees of freedom associated with MSG and MSE and verify the statistic is approximately 5.077.5
We can use the statistic to evaluate the hypotheses in what is called an -test. A p-value can be computed from the statistic using an distribution, which has two associated parameters: and . For the statistic in ANOVA, and . An distribution with 2 and 426 degrees of freedom, corresponding to the statistic for the baseball hypothesis test, is shown in Figure 7.24.
The larger the observed variability in the sample means () relative to the within-group observations (), the larger will be and the stronger the evidence against the null hypothesis. Because larger values of represent stronger evidence against the null hypothesis, we use the upper tail of the distribution to compute a p-value.
The statistic and the -test
Analysis of variance (ANOVA) is used to test whether the mean outcome differs across 2 or more groups. ANOVA uses a test statistic , which represents a standardized ratio of variability in the sample means relative to the variability within the groups. If is true and the model conditions are satisfied, the statistic follows an distribution with parameters and . The upper tail of the distribution is used to represent the p-value.
Example 7.46
The p-value corresponding to the shaded area in Figure 7.24 is equal to about 0.0066. Does this provide strong evidence against the null hypothesis?
The p-value is smaller than 0.05, indicating the evidence is strong enough to reject the null hypothesis at a significance level of 0.05. That is, the data provide strong evidence that the average on-base percentage varies by player’s primary field position.
Reading an ANOVA table from software
The calculations required to perform an ANOVA by hand are tedious and prone to human error. For these reasons, it is common to use statistical software to calculate the statistic and p-value.
An ANOVA can be summarized in a table very similar to that of a regression summary, which we will see in Chapters 8 and 9. Figure 7.25 shows an ANOVA summary to test whether the mean of on-base percentage varies by player positions in the MLB. Many of these values should look familiar; in particular, the -test statistic and p-value can be retrieved from the last two columns.
| Df | Sum Sq | Mean Sq | F value | Pr(F) | |
|---|---|---|---|---|---|
| position | 2 | 0.0161 | 0.0080 | 5.0766 | 0.0066 |
| Residuals | 426 | 0.6740 | 0.0016 | ||
| on | |||||
Graphical diagnostics for an ANOVA analysis
There are three conditions we must check for an ANOVA analysis: all observations must be independent, the data in each group must be nearly normal, and the variance within each group must be approximately equal.
- Independence.
-
If the data are a simple random sample, this condition is satisfied. For processes and experiments, carefully consider whether the data may be independent (e.g. no pairing). For example, in the MLB data, the data were not sampled. However, there are not obvious reasons why independence would not hold for most or all observations.
- Approximately normal.
-
As with one- and two-sample testing for means, the normality assumption is especially important when the sample size is quite small when it is ironically difficult to check for non-normality. A histogram of the observations from each group is shown in Figure 7.26. Since each of the groups we’re considering have relatively large sample sizes, what we’re looking for are major outliers. None are apparent, so this conditions is reasonably met.
Figure 7.26. Histograms of OBP for each field position. - Constant variance.
-
The last assumption is that the variance in the groups is about equal from one group to the next. This assumption can be checked by examining a side-by-side box plot of the outcomes across the groups, as in Figure 7.23. In this case, the variability is similar in the three groups but not identical. We see in Table 7.22 that the standard deviation doesn’t vary much from one group to the next.
Diagnostics for an ANOVA analysis
Independence is always important to an ANOVA analysis. The normality condition is very important when the sample sizes for each group are relatively small. The constant variance condition is especially important when the sample sizes differ between groups.
Multiple comparisons and controlling Type 1 Error rate
When we reject the null hypothesis in an ANOVA analysis, we might wonder, which of these groups have different means? To answer this question, we compare the means of each possible pair of groups. For instance, if there are three groups and there is strong evidence that there are some differences in the group means, there are three comparisons to make: group 1 to group 2, group 1 to group 3, and group 2 to group 3. These comparisons can be accomplished using a two-sample -test, but we use a modified significance level and a pooled estimate of the standard deviation across groups. Usually this pooled standard deviation can be found in the ANOVA table, e.g. along the bottom of Figure 7.25.
Example 7.47
Example 7.40 discussed three statistics lectures, all taught during the same semester. Figure 7.27 shows summary statistics for these three courses, and a side-by-side box plot of the data is shown in Figure 7.28. We would like to conduct an ANOVA for these data. Do you see any deviations from the three conditions for ANOVA?
In this case (like many others) it is difficult to check independence in a rigorous way. Instead, the best we can do is use common sense to consider reasons the assumption of independence may not hold. For instance, the independence assumption may not be reasonable if there is a star teaching assistant that only half of the students may access; such a scenario would divide a class into two subgroups. No such situations were evident for these particular data, and we believe that independence is acceptable.
The distributions in the side-by-side box plot appear to be roughly symmetric and show no noticeable outliers.
The box plots show approximately equal variability, which can be verified in Figure 7.27, supporting the constant variance assumption.
| Class | A | B | C |
|---|---|---|---|
| 58 | 55 | 51 | |
| 75.1 | 72.0 | 78.9 | |
| 13.9 | 13.8 | 13.1 |
Guided Practice 7.48
ANOVA was conducted for the midterm data, and summary results are shown in Figure 7.29. What should we conclude?6
| Df | Sum Sq | Mean Sq | F value | Pr(F) | |
|---|---|---|---|---|---|
| lecture | 2 | 1290.11 | 645.06 | 3.48 | 0.0330 |
| Residuals | 161 | 29810.13 | 185.16 | ||
| on | |||||
There is strong evidence that the different means in each of the three classes is not simply due to chance. We might wonder, which of the classes are actually different? As discussed in earlier chapters, a two-sample -test could be used to test for differences in each possible pair of groups. However, one pitfall was discussed in Example 7.44: when we run so many tests, the Type 1 Error rate increases. This issue is resolved by using a modified significance level.
Multiple comparisons and the Bonferroni correction for
The scenario of testing many pairs of groups is called multiple comparisons. The Bonferroni correction suggests that a more stringent significance level is more appropriate for these tests: where is the number of comparisons being considered (formally or informally). If there are groups, then usually all possible pairs are compared and .
Example 7.49
In Guided Practice 7.48, you found strong evidence of differences in the average midterm grades between the three lectures. Complete the three possible pairwise comparisons using the Bonferroni correction and report any differences.
We use a modified significance level of . Additionally, we use the pooled estimate of the standard deviation: on , which is provided in the ANOVA summary table.
Lecture A versus Lecture B: The estimated difference and standard error are, respectively, (See Section 7.2.4 for additional details.) This results in a T-score of 1.21 on (we use the associated with ). Statistical software was used to precisely identify the two-sided p-value since the modified significance level of 0.0167 is not found in the -table. The p-value (0.228) is larger than , so there is not strong evidence of a difference in the means of lectures A and B.
Lecture A versus Lecture C: The estimated difference and standard error are 3.8 and 2.61, respectively. This results in a score of 1.46 on and a two-sided p-value of 0.1462. This p-value is larger than , so there is not strong evidence of a difference in the means of lectures A and C.
Lecture B versus Lecture C: The estimated difference and standard error are 6.9 and 2.65, respectively. This results in a score of 2.60 on and a two-sided p-value of 0.0102. This p-value is smaller than . Here we find strong evidence of a difference in the means of lectures B and C.
might summarize the findings of the analysis from Example 7.49 using the following notation: The midterm mean in lecture A is not statistically distinguishable from those of lectures B or C. However, there is strong evidence that lectures B and C are different. In the first two pairwise comparisons, we did not have sufficient evidence to reject the null hypothesis. Recall that failing to reject does not imply is true.
Reject with ANOVA but find no differences in group means
It is possible to reject the null hypothesis using ANOVA and then to not subsequently identify differences in the pairwise comparisons. However, this does not invalidate the ANOVA conclusion. It only means we have not been able to successfully identify which specific groups differ in their means.
The ANOVA procedure examines the big picture: it considers all groups simultaneously to decipher whether there is evidence that some difference exists. Even if the test indicates that there is strong evidence of differences in group means, identifying with high confidence a specific difference as statistically significant is more difficult.
Consider the following analogy: we observe a Wall Street firm that makes large quantities of money based on predicting mergers. Mergers are generally difficult to predict, and if the prediction success rate is extremely high, that may be considered sufficiently strong evidence to warrant investigation by the Securities and Exchange Commission (SEC). While the SEC may be quite certain that there is insider trading taking place at the firm, the evidence against any single trader may not be very strong. It is only when the SEC considers all the data that they identify the pattern. This is effectively the strategy of ANOVA: stand back and consider all the groups simultaneously.
Exercises
Exercise 7.35
Fill in the blank. When doing an ANOVA, you observe large differences in means between groups. Within the ANOVA framework, this would most likely be interpreted as evidence strongly favoring the hypothesis.
Exercise 7.36
Which test? We would like to test if students who are in the social sciences, natural sciences, arts and humanities, and other fields spend the same amount of time studying for this course. What type of test should we use? Explain your reasoning.
Exercise 7.37
Chicken diet and weight, Part III. In Exercises 7.27 and 7.29 we compared the effects of two types of feed at a time. A better analysis would first consider all feed types at once: casein, horsebean, linseed, meat meal, soybean, and sunflower. The ANOVA output below can be used to test for differences between the average weights of chicks on different diets.
| Df | Sum Sq | Mean Sq | F value | Pr(F) | |
|---|---|---|---|---|---|
| feed | 5 | 231,129.16 | 46,225.83 | 15.36 | 0.0000 |
| Residuals | 65 | 195,556.02 | 3,008.55 |
Conduct a hypothesis test to determine if these data provide convincing evidence that the average weight of chicks varies across some (or all) groups. Make sure to check relevant conditions. Figures and summary statistics are shown below.

| Mean | SD | n | |
|---|---|---|---|
| casein | 323.58 | 64.43 | 12 |
| horsebean | 160.20 | 38.63 | 10 |
| linseed | 218.75 | 52.24 | 12 |
| meatmeal | 276.91 | 64.90 | 11 |
| soybean | 246.43 | 54.13 | 14 |
| sunflower | 328.92 | 48.84 | 12 |
Exercise 7.38
Teaching descriptive statistics. A study compared five different methods for teaching descriptive statistics. The five methods were traditional lecture and discussion, programmed textbook instruction, programmed text with lectures, computer instruction, and computer instruction with lectures. 45 students were randomly assigned, 9 to each method. After completing the course, students took a 1-hour exam.
What are the hypotheses for evaluating if the average test scores are different for the different teaching methods?
What are the degrees of freedom associated with the -test for evaluating these hypotheses?
Suppose the p-value for this test is 0.0168. What is the conclusion?
Exercise 7.39
Coffee, depression, and physical activity. Caffeine is the world’s most widely used stimulant, with approximately 80% consumed in the form of coffee. Participants in a study investigating the relationship between coffee consumption and exercise were asked to report the number of hours they spent per week on moderate (e.g., brisk walking) and vigorous (e.g., strenuous sports and jogging) exercise. Based on these data the researchers estimated the total hours of metabolic equivalent tasks (MET) per week, a value always greater than 0. The table below gives summary statistics of MET for women in this study based on the amount of coffee consumed. 7
-4em
| Caffeinated coffee consumption | ||||||
| 1 cup/week | 2-6 cups/week | 1 cup/day | 2-3 cups/day | 4 cups/day | Total | |
| Mean | 18.7 | 19.6 | 19.3 | 18.9 | 17.5 | |
| SD | 21.1 | 25.5 | 22.5 | 22.0 | 22.0 | |
| n | 12,215 | 6,617 | 17,234 | 12,290 | 2,383 | 50,739 |
Write the hypotheses for evaluating if the average physical activity level varies among the different levels of coffee consumption.
Check conditions and describe any assumptions you must make to proceed with the test.
Below is part of the output associated with this test. Fill in the empty cells.
Df Sum Sq Mean Sq F value Pr(F) coffee XXXXX XXXXX XXXXX XXXXX 0.0003 Residuals XXXXX 25,564,819 XXXXX Total XXXXX 25,575,327 What is the conclusion of the test?
Exercise 7.40
Student performance across discussion sections. A professor who teaches a large introductory statistics class (197 students) with eight discussion sections would like to test if student performance differs by discussion section, where each discussion section has a different teaching assistant. The summary table below shows the average final exam score for each discussion section as well as the standard deviation of scores and the number of students in each section.
| Sec 1 | Sec 2 | Sec 3 | Sec 4 | Sec 5 | Sec 6 | Sec 7 | Sec 8 | |
|---|---|---|---|---|---|---|---|---|
| 33 | 19 | 10 | 29 | 33 | 10 | 32 | 31 | |
| 92.94 | 91.11 | 91.80 | 92.45 | 89.30 | 88.30 | 90.12 | 93.35 | |
| 4.21 | 5.58 | 3.43 | 5.92 | 9.32 | 7.27 | 6.93 | 4.57 |
The ANOVA output below can be used to test for differences between the average scores from the different discussion sections.
| Df | Sum Sq | Mean Sq | F value | Pr(F) | |
|---|---|---|---|---|---|
| section | 7 | 525.01 | 75.00 | 1.87 | 0.0767 |
| Residuals | 189 | 7584.11 | 40.13 |
Conduct a hypothesis test to determine if these data provide convincing evidence that the average score varies across some (or all) groups. Check conditions and describe any assumptions you must make to proceed with the test.
Exercise 7.41
GPA and major. Undergraduate students taking an introductory statistics course at Duke University conducted a survey about GPA and major. The side-by-side box plots show the distribution of GPA among three groups of majors. Also provided is the ANOVA output.

| Df | Sum Sq | Mean Sq | F value | Pr(F) | |
|---|---|---|---|---|---|
| major | 2 | 0.03 | 0.015 | 0.185 | 0.8313 |
| Residuals | 195 | 15.77 | 0.081 |
Write the hypotheses for testing for a difference between average GPA across majors.
What is the conclusion of the hypothesis test?
How many students answered these questions on the survey, i.e. what is the sample size?
Exercise 7.42
Work hours and education. The General Social Survey collects data on demographics, education, and work, among many other characteristics of US residents. 8 Using ANOVA, we can consider educational attainment levels for all 1,172 respondents at once. Below are the distributions of hours worked by educational attainment and relevant summary statistics that will be helpful in carrying out this analysis.
| Educational attainment | ||||||
| Less than HS | HS | Jr Coll | Bachelor’s | Graduate | Total | |
| Mean | 38.67 | 39.6 | 41.39 | 42.55 | 40.85 | 40.45 |
| SD | 15.81 | 14.97 | 18.1 | 13.62 | 15.51 | 15.17 |
| n | 121 | 546 | 97 | 253 | 155 | 1,172 |

Write hypotheses for evaluating whether the average number of hours worked varies across the five groups.
Check conditions and describe any assumptions you must make to proceed with the test.
Below is part of the output associated with this test. Fill in the empty cells.
Df Sum Sq Mean Sq F-value Pr(F) degree XXXXX XXXXX 501.54 XXXXX 0.0682 Residuals XXXXX 267,382 XXXXX Total XXXXX XXXXX What is the conclusion of the test?
Exercise 7.43
True / False: ANOVA, Part I. Determine if the following statements are true or false in ANOVA, and explain your reasoning for statements you identify as false.
As the number of groups increases, the modified significance level for pairwise tests increases as well.
As the total sample size increases, the degrees of freedom for the residuals increases as well.
The constant variance condition can be somewhat relaxed when the sample sizes are relatively consistent across groups.
The independence assumption can be relaxed when the total sample size is large.
Exercise 7.44
Child care hours. The China Health and Nutrition Survey aims to examine the effects of the health, nutrition, and family planning policies and programs implemented by national and local governments.9 It, for example, collects information on number of hours Chinese parents spend taking care of their children under age 6. The side-by-side box plots below show the distribution of this variable by educational attainment of the parent. Also provided below is the ANOVA output for comparing average hours across educational attainment categories.

| Df | Sum Sq | Mean Sq | F value | Pr(F) | |
|---|---|---|---|---|---|
| education | 4 | 4142.09 | 1035.52 | 1.26 | 0.2846 |
| Residuals | 794 | 653047.83 | 822.48 |
Write the hypotheses for testing for a difference between the average number of hours spent on child care across educational attainment levels.
What is the conclusion of the hypothesis test?
Exercise 7.45
Prison isolation experiment, Part II. Exercise 7.31 introduced an experiment that was conducted with the goal of identifying a treatment that reduces subjects’ psychopathic deviant T scores, where this score measures a person’s need for control or his rebellion against control. In Exercise 7.31 you evaluated the success of each treatment individually. An alternative analysis involves comparing the success of treatments. The relevant ANOVA output is given below, and we have checked for you that there are no meaningful differences in variability across the groups.
| Df | Sum Sq | Mean Sq | F value | Pr(F) | |
|---|---|---|---|---|---|
| treatment | 2 | 639.48 | 319.74 | 3.33 | 0.0461 |
| Residuals | 39 | 3740.43 | 95.91 | ||
| on | |||||
What are the hypotheses? ·anchor·prison_isolation_anova_test_conclusion· What is the conclusion of the test? Use a 5% significance level.
If in part (7.45) you determined that the test is significant, conduct pairwise tests to determine which groups are different from each other. If you did not reject the null hypothesis in part (7.45), recheck your answer. Summary statistics for each group are provided below.
Tr 1 Tr 2 Tr 3 Mean 6.21 2.86 -3.21 SD 12.3 7.94 8.57 n 14 14 14
Exercise 7.46
True / False: ANOVA, Part II. Determine if the following statements are true or false, and explain your reasoning for statements you identify as false.
If the null hypothesis that the means of four groups are all the same is rejected using ANOVA at a 5% significance level, then ...
we can then conclude that all the means are different from one another.
the standardized variability between groups is higher than the standardized variability within groups.
the pairwise analysis will identify at least one pair of means that are significantly different.
the appropriate to be used in pairwise comparisons is 0.05 / 4 = 0.0125 since there are four groups.
Notes
: The average on-base percentage is equal across the three positions. : The average on-base percentage varies across some (or all) groups. ↩
See, for example, statmodeling.stat.columbia.edu/2007/05/18/the_prosecutors. ↩
Let represent the mean of outcomes across all groups. Then the mean square between groups is computed as where is called the sum of squares between groups and is the sample size of group . ↩
Let represent the mean of outcomes across all groups. Then the sum of squares total () is computed as where the sum is over all observations in the data set. Then we compute the sum of squared errors () in one of two equivalent ways: where is the sample variance (square of the standard deviation) of the residuals in group . Then the is the standardized form of : .
additional details on ANOVA calculations, see www.openintro.org/d?file=stat_extra_anova_calculations ↩
There are groups, so . There are total observations, so . Then the statistic is computed as the ratio of and : . ( was computed by using values for and that were not rounded.) ↩
The p-value of the test is 0.0330, less than the default significance level of 0.05. Therefore, we reject the null hypothesis and conclude that the difference in the average midterm scores are not due to chance. ↩
Lucas, M. et al. Coffee, caffeine, and risk of depression among women. Archives of internal medicine. 2011. ↩
National Opinion Research Center, General Social Survey, 2018. ↩
UNC Carolina Population Center, China Health and Nutrition Survey, 2006. ↩