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 ():
      M<em>1=M</em>2=ext…=MkM<em>1 = M</em>2 = ext{…} = M_k

    • 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: MSE=∑<em>j=1k(n</em>j−1)s2<em>jn</em>T−kMSE = \frac{\sum<em>{j=1}^{k} (n</em>j - 1)s^2<em>j}{n</em>T - k}

    • Where nTn_T denotes the total sample size and kk represents the number of groups.

Test for the Equality of k Means

  • Hypotheses:

    • Null Hypothesis (01):
      M<em>1=M</em>2=…=MkM<em>1 = M</em>2 = … = M_k

    • Alternative Hypothesis (00):

    • Not all population means are equal.

  • Test Statistic Formula: F=MSTRMSEF = \frac{MSTR}{MSE}

    • Where MSTR represents the mean square treatment.

    • If H<em>0H<em>0 is valid, the distribution of MSTRMSE\frac{MSTR}{MSE} follows an F distribution, where the degrees of freedom for MSTR is k−1k - 1 and for MSE is n</em>T−kn</em>T - k.

    • Rejection of the null hypothesis occurs when MSTRMSE\frac{MSTR}{MSE} 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:

    1. Navigate to: Analyze > Compare Means > One-Way ANOVA.

    2. 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:

    1. The response variable follows a normal distribution for each population.

    2. The variance (σ2\sigma^2) of the response variable is equal across the populations.

    3. 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 a levels of Factor A and b levels of Factor B, data is collected for abab treatment combinations.

Two-Factor Factorial Experiment

  • Similar to one-factor ANOVA, but sums of squares (SS) are partitioned into the main and interaction effects:
    SST=SSA+SSB+SSAB+SSESST = SSA + SSB + SSAB + SSE

  • The degrees of freedom allocation for each factor is:

    • (a−1)(a - 1) d.f. for Factor A

    • (b−1)(b - 1) d.f. for Factor B

    • (a−1)(b−1)(a-1)(b-1) d.f. for Interaction

    • ab(r−1)ab(r - 1) 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

    a−1a-1

    SSASSA

    MSAMSA




    Factor B

    b−1b-1

    SSBSSB

    MSBMSB




    Interaction

    (a−1)(b−1)(a-1)(b-1)

    SSABSSAB

    MSABMSAB




    Error

    ab(r−1)ab(r-1)

    SSESSE

    MSEMSE




    Total

    nT−1n_T - 1

    SSTSST










    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.