badge

Calculating MS and F - Between subjects ANOVA

1. Compute the total sum of squared (SS) - square the sum of every individual score’s difference from the overall mean

  • SStotal=∑(Xij−Xbar..)2SS_{total} = \sum(X_{ij} - Xbar_{..} )^2
  • SS contains within and between group differences

2. Find out what part can be attributed to the groups and what can be attributed to the individuals (within the group) - this calculates the between group differences

  • SSgroup=n∗∑(Xbar.j−Xbar..)2SS_{group} = n* \sum(Xbar_{.j} - Xbar_{..})^2
  • i.e. compute for each group the difference from the overall mean, and square that value and add them all together

3. Subtract SSGroup_{Group} by SSTotal_{Total} to get SSerror_{error}

4. Transform SS to MS by dividing SS values by df associates with them

  • dfGroup=k−1df_{Group} = k-1
  • dfError=k(n−1)df_{Error} = k(n-1)
  • Divide SSgroup by df(group) and SSerror by df(error)
  • We divide by df to correct for the SS being larger for larger sample sizes and number of groups
  • MSError=SSError/dfErrorMS_{Error} = SS_{Error} / df_{Error}
  • MSGroup=SSGroup/dfgroupMS_{Group} = SS_{Group} / df_{group}

5. Calculate F

  • F=MSGroup/MSErrorF = MS_{Group} / MS_{Error}
  • image.png
    • A = large between group differences / small within group differences = large F
    • B = small between group differences / small within group differences =
    • C = large between group differences / large within group differences =
    • D = small between group differences / large within group differences = very small F