Statistics for the Behavioral Sciences Lecture Notes
Analysis of Variance One-Way Within-Subjects (Repeated-Measures) Design
Chapter Outline
- Observing the Same Participants Across Groups
- Selecting Related Samples: The Within-Subjects Design
- Sources of Variation and the Test Statistic
- Degrees of Freedom
- The One-Way Within-Subjects ANOVA
- Post Hoc Comparisons: Bonferroni Procedure
- Measuring Effect Size
- The Within-Subjects Design: Consistency and Power
- APA in Focus: Reporting the F Statistic, Significance, and Effect Size
Observing the Same Participants Across Groups
- One-Way Within-Subjects ANOVA
- A statistical procedure used to test hypotheses for one factor with two or more levels regarding the variance among group means.
- Utilized when the same participants are observed at each level of a factor and the variance in any one population is undefined.
- The term “one-way” indicates that one factor is being tested.
- The term “within-subjects” implies that the same participants are observed across each group.
- Figure 13.1: The Within-Subjects Design
- In this design, a researcher assigns the same participants to each level of one factor or group.
- Every participant in the sample is observed at each level of a factor, ensuring related samples.
Sources of Variation and the Test Statistic
- The test statistic for any one-way ANOVA follows a general form applicable to within-subjects designs.
- There are three sources of variation in a one-way within-subjects design:
- Between Groups
- Within Groups
- Between Persons
Degrees of Freedom
- The total degrees of freedom (df) for a one-way within-subjects ANOVA are calculated as:
extTotaldf=(kimesn)−1
- Where:
- k = number of groups
- n = number of participants per group
- The total df is divided into three parts corresponding to each source of variation:
- Degrees of Freedom Between Groups (dfBG)
- dfBG=k−1
- Degrees of Freedom Between Persons (dfBP)
- dfBP=n−1
- Degrees of Freedom Error (dfE)
- dfE=dfBGimesdfBP=(k−1)(n−1)
The One-Way Within-Subjects ANOVA
- The hypotheses are consistent with those for a between-subjects ANOVA:
- Null hypothesis (H0): Mean ratings for each advertisement do not vary in the population.
- Alternative hypothesis (H1): Mean ratings for each advertisement do vary in the population.
- Four assumptions must be made to compute the one-way within-subjects ANOVA:
- Normality
- Data in the population from which samples are taken are normally distributed.
- Independence Within Groups
- Participants are independently observed within groups.
- Homogeneity of Variance
- The variance within each population is equal.
- Homogeneity of Covariance
- Participant scores across groups are related, as the same participants are used in multiple conditions.
Example 13.1: The One-Way Within-Subjects ANOVA
- Scenario: Assessing the impact of three ads on teenage smoking cessation. Ratings on a scale from 1 (not at all effective) to 7 (very effective) are gathered from participants viewing each ad:
- No cues condition: Ad that only uses words.
- Generic cues condition: Ad featuring an abstract picture.
- Smoking-related cues condition: Ad showing a teenager smoking and coughing.
- Conduct a one-way within-subjects ANOVA at a significance level of .05.
Step 1: State the Hypotheses
- H0: Mean ratings for each advertisement do not vary in the population.
- H1: Mean ratings for each advertisement do vary in the population.
Step 2: Set the Criteria for a Decision
- Significance level: extα=0.05
- Calculate the degrees of freedom:
- dfBG=k−1=3−1=2
- dfBP=n−1=7−1=6
- dfE=2imes6=12
- Critical value is 3.89.
Step 3: Compute the Test Statistic
- The test statistic follows specific stages to compute the mean square.
- Preliminary Calculations
- Intermediate Calculations
- Compute the Sum of Squares
- Complete the F Table
Example 13.1: Preliminary Calculations
- Table 13.3: Preliminary Calculations for the One-Way Within-Subjects ANOVA in Example 13.1:
- Blank table with participant ratings for ads leading to calculated sums, such as:
- extΣxextNoCues=21
- extΣxextGenericCues=28
- extΣxextSmoking−RelatedCues=42
- extΣxextTotal=91
- Calculating sums and means using derived values from preliminary calculations such as:
- For k × n:
- rac{( ext{Σ}x_{+})^2}{k imes n} = rac{(91)^2}{3 imes 7} = 394.33
- Further calculations yield intermediate values leading to mean squares.
Example 13.1: Compute the Sum of Squares (SS)
- Between Groups (SSBG):
- SSBG=[2]−[1]=427−394.33=32.67
- Total (SST):
- SST=[3]−[1]=451−394.33=56.67
- Between Persons (SSBP):
- SSBP=[4]−[1]=407−394.33=12.67
- Within Groups (Error, SSE):
- SSE=SST−SSBG−SSBP=56.67−32.67−12.67=11.33
Example 13.1: Complete the F Table
- Table 13.4: Tracking variations, mean squares, and F obtained values leading to a completed table.
- Example values for each source of variation recorded with significance indicated by an asterisk (*) in the table.
Example 13.1: Step 4: Make a Decision
- Compare obtained value to critical value:
- Obtained value (17.30) exceeds critical value (3.89).
- Decision: Reject the null hypothesis as it falls in the rejection region.
Post Hoc Comparisons: Bonferroni Procedure
- Purpose: Post hoc tests are conducted after a significant one-way ANOVA to determine which specific group means differ.
- The Bonferroni procedure adjusts the alpha level (Type I error rate) for multiple comparisons:
- Testwise alpha: The adjusted alpha for each comparison made on the same dataset. - Formula: Testwise alpha = racextαm, where m is the number of pairwise comparisons.
Using the Bonferroni Procedure
- Steps to compute the Bonferroni Post Hoc comparisons:
- Calculate the testwise alpha and find critical values.
- Compute related-samples t-tests for each pairwise comparison.
Example 13.1: Pairwise Comparisons
- Comparison results detailed for pairs such as:
- Generic Cue and No Cue: 4.0−3.0=1.0
- Smoking Cue and Generic Cue: 6.0−4.0=2.0
- Smoking Cue and No Cue: 6.0−3.0=3.0
- Testwise alpha computed as:
- ext{α} = rac{0.05}{3} = 0.0167
- Critical value from Table B.2 based on df = 6 is ±3.143.
- Calculating t-values for comparisons such as:
- Generic Cue and No Cue: tobt calculation leading to retain the null hypothesis.
- Smoking-Related Cue and Generic Cue: tobt calculated as -3.378 leading to rejecting the null hypothesis.
- Smoking-Related Cue and No Cue: tobt calculated as -9.709, also rejecting the null hypothesis.
Measuring Effect Size
- An ANOVA assesses if group means vary significantly, but effect size measures how much of this variability can be accounted for by different levels of a factor.
- Two Key Measures of Effect Size:
- Partial Eta-Squared (extηp2)
- Partial Omega-Squared (extω2)
Computing Effect Sizes
- For Partial Eta-Squared:
- Remove the sum of squares between persons in the total sum of squares for denominator calculations.
- For Partial Omega-Squared:
- Similar approach as above with adjustments made post hoc.
The Within-Subjects Design: Consistency and Power
- The within-subjects design offers increased power to detect effects compared to between-subject designs.
- Power is enhanced due to reduced error terms in the test statistic denominator when factors lead to consistent responding between groups.
- Rules governing power in relation to sample size and variations:
- Increasing levels of a factor (k) increases power.
- Decreasing error variance (σ2) increases power.
- Increasing the number of repeated measures(n) increases power.
APA in Focus: Reporting Results
- Reporting results from a one-way within-subjects ANOVA should follow specific guidelines:
- Summarize test statistics, df, and p-value.
- Report effect sizes for significant findings.
- Present means and standard deviations in a figure or summarized table.
Example of APA Reporting
- For findings in Example 13.1:
- A one-way analysis of variance showed significant variations in ratings of effectiveness among advertisements, F(2,12) = 17.38, p < .05 ext{ (} η^2 = 0.69).
- Using the Bonferroni post hoc test, significant differences were found for ads with smoking-related cues against other ads (p < .05).
- Means and standard deviations should also be referenced in conclusion tables rendered in APA style.