Section 3.3 Lecture: Two Way ANOVA Testing (Without Interaction)
Overview
Brad Hall explains two-way ANOVA without interaction as a way to test how two categorical factors relate to a numerical response while accounting for variation from both. He develops the ANOVA table and degrees of freedom, works through examples by hand and with Excel's Data Analysis ToolPak, then extends significant factor results with Tukey pairwise intervals.
Key takeaways
- Two-way ANOVA without interaction tests factor A and factor B separately, producing one F statistic and p-value for each factor while using a shared MSE.
- For a table with R rows, C columns, and N observations, the degrees of freedom are R - 1 for factor B, C - 1 for factor A, N - R - C + 1 for error, and N - 1 total.
- Excel's Data Analysis ToolPak labels the no-interaction procedure ANOVA: Two-Factor Without Replication; factor A is in columns and factor B is in rows.
- Compare each factor's p-value with α independently. A significant factor test supports a difference among at least one pair of its population means, while a nonsignificant result does not establish that all means are equal.
- Use Tukey pairwise intervals only for a factor with a significant overall ANOVA test; an interval excluding zero indicates a significant difference between that pair of means.
Chapters
- One-way ANOVA tests mean differences across levels of one categorical factor; two-way ANOVA accounts for two factors that may explain response variation.
- The motivating example compares employee productivity by training program and department, so ignoring department could leave relevant variation in the error.
- An interaction would mean the training program's effectiveness depends on department; this section assumes no interaction.
- Factor A represents table columns and factor B represents rows; each factor has two or more levels.
- The model separates total variation into SSA, SSB, and SSE, replacing the single treatment sum of squares used in one-way ANOVA.
- Each factor gets its own F test and p-value, with its mean square divided by the shared mean squared error.
- The no-interaction ANOVA table has separate degrees of freedom for A, B, and error, and differs from the table used when interaction is included.
- The processing-time example assigns workflow system to factor A and department to factor B, each with three levels.
- Excel and the course table place factor B before factor A, so the first mean-square row is MSB.
- The partial table supplies sums of squares and degrees of freedom, allowing mean squares to be calculated without the raw observations.
- The example calculates MSB as 12.3, MSA as 60, and MSE as 7.8.
- Each factor's F statistic uses its own mean square over MSE: approximately 1.577 for B and 7.692 for A.
- Right-tail F probabilities use the factor's degrees of freedom and the error degrees of freedom; the example reports p-values of 0.313 for B and 0.043 for A.
- At α = 0.05, department's p-value of 0.313 exceeds the threshold, so the test fails to reject equal department means.
- Workflow system's p-value of 0.043 is below 0.05, providing evidence that at least one pair of workflow-system means differs.
- The factor labels must be matched to the correct ANOVA rows before drawing conclusions.
- A second example uses four runners as rows and three shoe designs as columns, giving 12 observations.
- With SST = 330, SSB = 60, and SSA = 180, the error sum of squares is SSE = 330 - 60 - 180 = 90.
- The degrees of freedom are 3 for B, 2 for A, 6 for error, and 11 total; the corresponding mean squares are 20, 90, and 15.
- At α = 0.05, the example reports p-values of 0.349 for runners and 0.037 for shoe designs.
- A blocking factor accounts for response variation that might otherwise be included in error variation.
- The blocking-factor interpretation does not change the two-way ANOVA calculations or testing procedure.
- Excel's Data Analysis ToolPak calls the no-interaction procedure ANOVA: Two-Factor Without Replication.
- The raw-data example uses processing method as factor A in the columns and distribution center as factor B in the rows.
- Packaging processing time, measured in minutes, is the numerical response; the table contains three methods and four centers.
- In Excel, select the full labeled data range, choose Without Replication, set α = 0.05, and specify an output range.
- The example's p-values are about 0.001 for processing methods and 0.896 for centers, indicating evidence of method differences but not center differences.
- Tukey's method extends ANOVA by checking which pairs of factor-level means differ after the overall factor test is significant.
- The two-way version uses the factor's observation count n in the margin of error, alongside MSE and a studentized-range Q value.
- An interval containing zero indicates no significant pairwise difference; an interval entirely above or below zero indicates a significant difference.
- The final example treats golf-ball design as factor A in the columns and golfer as factor B in the rows.
- At α = 0.05, the design p-value rounds to 0.000 and is significant, while the golfer p-value of 0.311 is not.
- Tukey comparisons are therefore applied to the three designs, not to the five golfers.
- For the displayed μ1 - μ3 comparison, the example uses means 250 and 267.2, MSE = 11.3167, n = 5, and Q = 4.04.
- The resulting interval is approximately [-23.28, -11.12], which excludes zero and indicates a significant difference for that pair.
- The example marks intervals that exclude zero with an asterisk to identify significant pairwise differences.
Transcript excerpt
0:01 Hey everyone. This is the start of module four and we'll start module four with section 3.3 on two-way ANOVA testing, in particular, no interaction. So to motivate this, in section 3.1, we were talking about one-way ANOVA testing to determine whether population means differ across the levels of just a single categorical variable, which we also called a factor. However, we're going to find that a second categorical variable may also explain variation in the response. So this is very important as we slowly make our way deeper into inferential statistics, talking about things like regression analysis. So two-way ANOVA testing is a way to build upon that idea.
0:51 So one example here that you can see in the notes, you might have a company that wants to compare mean employee productivity across several training programs. Productivity may differ across departments as well as training programs. So notice those are both categorical variables. So if one of these categorical variables, such as departments, ignored, then the differences become part of unexplained variation in the analysis. So we try to obtain a more precise comparison of the population means by considering any collection of categorical influences that we may have. So we'll look primarily at two-way ANOVA testing. So a two-way ANOVA test, as it's defined
1:39 here, examines how much the mean of a numerical response variable is affected by two categorical variables instead of just one. So again, they're still called factors, each of which, though, contains two or more levels. So remember, that's the values within the factors. So, we start a discussion with a two-way ANOVA test. But, because we have two factors, we have we generally use um we normally used a contingency table to define how two categorical variables can be spread out as a frequency distribution among these
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.