Expected mean squares

From HandWiki

In statistics, expected mean squares (EMS) are the expected values of certain statistics arising in partitions of sums of squares in the analysis of variance (ANOVA). They can be used for ascertaining which statistic should appear in the denominator in an F-test for testing a null hypothesis that a particular effect is absent.

Definition

When the total corrected sum of squares in an ANOVA is partitioned into several components, each attributed to the effect of a particular predictor variable, each of the sums of squares in that partition is a random variable that has an expected value. That expected value divided by the corresponding number of degrees of freedom is the expected mean square for that predictor variable.

Example

The following example is from Longitudinal Data Analysis by Donald Hedeker and Robert D. Gibbons.[1]

Each of s treatments (one of which may be a placebo) is administered to a sample of (capital) N randomly chosen patients, on whom certain measurements Yhij are observed at each of (lower-case) n specified times, for h=1,,s,i=1,,Nh (thus the numbers of patients receiving different treatments may differ), and j=1,,n. We assume the sets of patients receiving different treatments are disjoint, so patients are nested within treatments and not crossed with treatments. We have

Yhij=μ+γh+τj+(γτ)hj+πi(h)+εhij

where

  • μ = grand mean, (fixed)
  • γh = effect of treatment h, (fixed)
  • τj = effect of time j, (fixed)
  • (γτ)hj = interaction effect of treatment h and time j, (fixed)
  • πi(h) = individual difference effect for patient i nested within treatment h, (random)
  • εhij = error for patient i in treatment h at time j. (random)
  • σπ2 = variance of the random effect of patients nested within treatments,
  • σε = error variance.

The total corrected sum of squares is

hij(YhijY)2where Y=1nhijYhij.

The ANOVA table below partitions the sum of squares (where N=hNh):

source of variability degrees of freedom sum of squares mean square expected mean square
treatment s1 SSTr=nh=1sNh(YhY)2 SSTrs1 σε2+nσπ2+DTr
time n1 SST=Nj=1n(YjY)2 SSTn1 σε2+DT
treatment × time (s1)(n1) SSTr T=h=1sj=1nNh(YhjYhYj+Y)2 SSTr T(n1)(s1) σε2+DTr T
patients within treatments Ns SSS(Tr)=nh=1si=1Nh(YhiYh)2 SSS(Tr)Ns σε2+nσπ2
error (Ns)(n1) SSE=h=1si=1Nhj=1n(YhijYhjYhi+Yh)2 SSE(Ns)(n1) σε2

Use in F-tests

A null hypothesis of interest is that there is no difference between effects of different treatments—thus no difference among treatment means. This may be expressed by saying DTr=0, (with the notation as used in the table above). Under this null hypothesis, the expected mean square for effects of treatments is σε2+nσπ2.

The numerator in the F-statistic for testing this hypothesis is the mean square due to differences among treatments, i.e. it is SSTr/(s1). The denominator, however, is not SSE/((Ns)(n1)). The reason is that the random variable below, although under the null hypothesis it has an F-distribution, is not observable—it is not a statistic—because its value depends on the unobservable parameters σπ2 and σε2.

SSTrσε2+nσπ2/(s1)SSEσε2/((Ns)(n1))SSTr/(s1)SSE/((Ns)(n1))

Instead, one uses as the test statistic the following random variable that is not defined in terms of SSE:

F=SSTrσε2+nσπ2/(s1)SSS(Tr)σε2+nσπ2/(Ns)=SSTr/(s1)SSS(Tr)/(Ns)

Notes and references

  1. Donald Hedeker, Robert D. Gibbons. Longitudinal Data Analysis. Wiley Interscience. 2006. pp. 21–24