Section 3.1 (Part 1) Lecture: One-Way ANOVA Test
Overview
Brad Hall introduces one-way ANOVA as a test of whether three or more independent population means are all equal, explaining its assumptions and how between-group and within-group variation produce an F statistic. Using Excel and worked examples, he builds ANOVA tables from raw data and summary statistics, including a three-layout example with F ≈ 8.12 and p ≈ 0.0017, then shows how to interpret results without identifying which specific groups differ.
Key takeaways
- One-way ANOVA tests whether all three or more population means are equal; rejecting its null only establishes that at least one pair differs, not which pair.
- The F statistic is the ratio MSTR/MSE, so evidence against equal means grows when between-group variation is large relative to within-group variation.
- For C groups and N total observations, ANOVA uses degrees of freedom C − 1 between groups and N − C within groups; total degrees of freedom are N − 1.
- When group sizes differ but only summary statistics are available, calculate the grand mean as the sample-size-weighted mean of group means.
- In the store-layout example, MSTR ≈ 0.652 and MSE ≈ 0.08 yield F ≈ 8.12 and p ≈ 0.0017, leading to rejection at the 5% significance level.
- A p value above the chosen significance level means the analysis does not establish a difference; it does not prove that all population means are equal.
Chapters
- Brad Hall frames ANOVA as a generalization of the two-sample t test for comparing three or more population means.
- A one-way ANOVA has one categorical independent variable, called a factor, with three or more groups, and a continuous dependent variable.
- The null hypothesis is that all population means are equal; the alternative is that at least one pair differs.
- The method assumes normally distributed populations, unknown but equal population variances, and independent samples.
- Sample means need not be exactly equal under the null; the test asks whether their differences are large relative to within-group variation.
- ANOVA uses variance, or standard deviation squared, to describe variation.
- Between-treatment variation measures how far each group mean is from the grand mean, while within-treatment variation captures variation inside groups.
- Under the null hypothesis, both sources estimate the same common population variance; when means differ, the between-treatment estimate tends to increase.
- The mean square for treatments, MSTR, is SSTR divided by C − 1, where C is the number of groups.
- A recurring example compares three store layouts, each with 10 observations, for 30 values total.
- The grand mean combines observations across all groups, rather than averaging only one layout.
- Excel's SUM and COUNT functions produce the example grand mean of 2.14.
- SSTR adds each group sample size multiplied by the squared difference between its sample mean and the grand mean.
- For the layouts, the group means are 1.92, 2.08, and 2.42, with sample sizes of 10 and grand mean 2.14.
- The worked calculation gives SSTR = 1.304; dividing by 3 − 1 gives MSTR = 0.652.
- The error sum of squares, SSE, combines each group's sample variance weighted by its degrees of freedom: (nᵢ − 1)sᵢ².
- For the layout data, the sample variances are approximately 0.09733, 0.10622, and 0.03733, with 10 observations per group.
- SSE is approximately 2.168; dividing by total sample size minus group count, 30 − 3, gives MSE of about 0.08.
- The ANOVA test statistic is F = MSTR / MSE, comparing between-group variation with within-group variation.
- Large F values provide evidence against equal means, and the one-way ANOVA p value comes from the right tail of the F distribution.
- The p value calculation uses F and two degrees of freedom: C − 1 for the numerator and N − C for the denominator.
- Reject the null when p ≤ α; otherwise, fail to reject it.
- At a 5% significance level, the layout example uses degrees of freedom 2 and 27 and an F statistic of about 8.12.
- The right-tailed F test gives p ≈ 0.0017, which is below α = 0.05, so the equal-means null hypothesis is rejected.
- The result supports a difference between at least one pair of layout means, but does not identify which pair differs.
- The ANOVA table organizes between-groups, within-groups, and total sums of squares alongside their degrees of freedom and mean squares.
- Total sum of squares is SST = SSTR + SSE, and total degrees of freedom equal N − 1.
- The table also reports F and its p value, gathering the calculations used to test the means.
- The example supplies SSTR = 84 and SSE = 420 for three groups with sample sizes 8, 10, and 12.
- Adding the sums of squares gives SST = 504; the degrees of freedom are 2 between groups, 27 within groups, and 29 total.
- MSTR = 84 / 2 = 42 and MSE = 420 / 27 ≈ 15.5556, producing F ≈ 2.7.
- With p ≈ 0.0853 and α = 0.01, the test fails to reject the null and does not establish that population means differ.
- Given SST = 420, SSTR = 42, and degrees of freedom 3 and 36, recover SSE as 420 − 42 = 378.
- The mean squares are MSTR = 42 / 3 = 14 and MSE = 378 / 36 = 10.5, so F ≈ 1.333.
- The right-tailed p value is approximately 0.2789, above α = 0.05, so the null hypothesis is not rejected.
- Method A, B, and C have sample sizes 8, 10, and 12, with sample means 24, 27, and 30.
- Because only summary statistics are supplied, the grand mean is a sample-size-weighted mean: (8×24 + 10×27 + 12×30) / 30 = 27.4.
- Using each group size and mean with the grand mean gives SSTR = 175.2.
- The three sample variances are 9, 16, and 9; applying (nᵢ − 1)sᵢ² gives SSE = 306.
- Adding SSTR = 175.2 and SSE = 306 gives SST = 481.2.
- For three groups and N = 30, the degrees of freedom are 2 between groups and 27 within groups; the remaining table entries follow by dividing sums of squares by their degrees of freedom.
- Brad Hall closes by previewing the next part, which will use Microsoft Excel more extensively to fill ANOVA tables and focus on interpretation.
Transcript excerpt
0:01 Hey everyone, this is the start of the unit 2 material where we deal with the analysis of variance. This deals primarily with what's called ANOVA testing. Now, we'll first start off with the module 3 material which will deal simply with one-way ANOVA testing which we will talk about in this section 3.1. So to motivate what brings us up to this section, we need to recall the previous section where we discussed two sample t tests and this was when we compare two population means. However, we can really generalize this idea from two population means to maybe three population means, four population means or any indefinite number of
0:51 population means. So when we generalize this idea, we used what's known as an analysis of variance, which is normally referred to as a nova. And it's a statistical technique used to determine whether differences exist among the means of three or more populations under independent sampling. So, we're going to break down what ANOVA really refers to, but again, think about it as a generalization of the two sample t test with equal but unknown variances, which is something we discussed in section 2.2. So, in this first module, we simply deal with a one-way ANOVA test. And the next
1:40 module, module four, we will deal with two-way ANOVA tests. A one-way ANOVA test, which we'll go into more detail later on in the section. This is when we have one independent variable, also known as a factor, with three or more levels, which are known as groups, and we have some continuous dependent variable. So again, this will make more sense once we start looking at at everything contextually. So we'll go ahead and define the namesake of this section for a one-way ANOVA test. So this is a one-way analysis of
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Brad Hall.