Clip 8 Statistics
Knowledge Clip 8: Analysis of Variance and F-test
Prof. Dr. Tammo H.A. Bijmolt
B1 Literature for this Topic
Chapter 13
Research Questions
Goal:
Examine if a continuous variable has different means across groups.
Specifically, this involves testing the effect of one or more categorical variables on a continuous variable.
This method is widely applicable in various domains, notably in experimental research.
Experimental treatment conditions are typically characterized by categorical explanatory variables referred to as factors.
Research Design: Experiments
A factor is defined as a variable selected by an experimenter for investigation.
A treatment refers to a specific level of a factor.
Experimental units: The objects of interest in the experiment.
A completely randomized design is one where experimental units are randomly assigned to treatments, akin to AB-tests commonly used in practice.
Example:
50% of test participants view Variation A (Control).
50% view Variation B (Challenger).
Conversion rates:
Variation A: 15%
Variation B: 36%
Analysis of Variance (ANOVA)
ANOVA is a statistical method used to test the equality of three or more population means.
It can utilize data from observational or experimental studies.
Hypotheses for testing:
Null Hypothesis ():
Alternative Hypothesis (00):
Not all population means are equal.
If the null hypothesis is rejected, it does not imply all means are different; it indicates at least two means differ.
Sampling Distribution
Sampling Distribution when Ho is True:
Sample means tend to cluster closely, indicating a singular sampling distribution when the null hypothesis is true.
Sampling Distribution when Ho is False:
Sample means are derived from various sampling distributions and are more dispersed under the alternative hypothesis.
ANOVA: Testing for Equality of Means
Comparison focuses on:
Within-group variance (Sum of Squares)
Between-group variance (Sum of Squares)
Within-treatments estimate of population variance is expressed by the Mean Square Error (MSE) represented as:
Where denotes the total sample size and represents the number of groups.
Test for the Equality of k Means
Hypotheses:
Null Hypothesis (01):
Alternative Hypothesis (00):
Not all population means are equal.
Test Statistic Formula:
Where MSTR represents the mean square treatment.
If is valid, the distribution of follows an F distribution, where the degrees of freedom for MSTR is and for MSE is .
Rejection of the null hypothesis occurs when is sufficiently large, based on the corresponding F distribution.
Calculation and Software Use
There is no necessity to perform ANOVA computations manually; tools like SPSS can be utilized.
Understanding the underlying method, however, is crucial for making informed decisions regarding the computations involved.
Example with SPSS
A customer survey among 833 respondents regarding furniture purchases explored various variables such as socio-demographic factors and purchase behavior.
Steps in SPSS for conducting One-Way ANOVA include:
Navigate to: Analyze > Compare Means > One-Way ANOVA.
Investigate if mean expenditures differ among the four regions of the Netherlands.
One-Way ANOVA: Options and Assumptions
Available options in SPSS for conducting One-Way ANOVA include:
Descriptive statistics
Fixed and random effects
Homogeneity of variance tests (e.g., Brown-Forsythe test, Welch test)
Visualization of means through plots
Assumptions of ANOVA:
The response variable follows a normal distribution for each population.
The variance () of the response variable is equal across the populations.
Observations must be independent.
ANOVA Descriptive Statistics Example
Example output of expenditures across regions with corresponding descriptive statistics:
North: 91 respondents, Mean: 724.58, Std. Deviation: 520.87
East: 176 respondents, Mean: 897.36, Std. Deviation: 730.49
South: 192 respondents, Mean: 1032.93, Std. Deviation: 791.94
West: 374 respondents, Mean: 1010.16, Std. Deviation: 761.09
Overall Conclusion:
Example indicates overlapping confidence intervals at 95% level violate the assumption of equal variances; thus, it's significant to note that deviations exist.
Multiple Comparison Procedures
Upon rejecting the null hypothesis of equal population means via ANOVA, one can deploy Fisher's Least Significant Difference (LSD) method to identify where differences lie.
This method essentially conducts t-tests on pairs of group means.
Post Hoc Multiple Comparisons
In SPSS, it is possible to select specific factors for post hoc comparisons using our previous analysis, e.g., LSD for regions while avoiding applying it for gender comparisons due to only two groups present.
Factorial Experiments
In situations where conclusions regarding more than one explanatory variable (factors) are drawn, factorial experiments utilize comprehensive designs incorporating all fielded combinations of factors.
For instance, in an experiment with
alevels of Factor A andblevels of Factor B, data is collected for treatment combinations.
Two-Factor Factorial Experiment
Similar to one-factor ANOVA, but sums of squares (SS) are partitioned into the main and interaction effects:
The degrees of freedom allocation for each factor is:
d.f. for Factor A
d.f. for Factor B
d.f. for Interaction
d.f. for Error
ANOVA Table for Two-Factor Factorial Experiment
The ANOVA table setup for two factors includes relevant state variables like source of variation, degrees of freedom, sum of squares, mean square, and F statistic.
Example framework:
Source of Variation
Degrees of Freedom
Sum of Squares
Mean Square
F Value
Factor A
Factor B
Interaction
Error
Total
Conclusion
The conducted analysis indicates empirical evidence that not all regions of the Netherlands display the same average expenditure (F = 4.497, d.f. = 3 and 825, p=.004).
No significant differences were found between gender and education levels regarding furniture expenditures (p-values > 0.05).
Summary of Explained Variance (R-squared):
Results indicate that only 2.3% of the variance in expenditures is attributed to gender, region, and education levels in total, hinting at the influence of numerous other factors in expenditure behavior.
Related Analysis Methods
Comparison of Analysis Methods:
t-test: Compares means between 2 groups.
ANOVA / F-test: Compares means among more than 2 groups.
MANOVA: Examines multiple dependent variables (not covered).
Regression Analysis: Continuous dependent variable explained through other continuous variables.
General Linear Model (ANCOVA): Involves regression analysis with categorical explanatory variables, effectively merging ANOVA with the inclusion of continuous variables.
Thank you! Please check the other knowledge clips for further understanding.