Math 2.0

Statistics Definition

Analysis of variance

Builds on General linear modelF-testF-distributionNormal distributionSample mean

Definition

Let k≥2k \ge 2 and n1,…,nk≥1n_1, \dots, n_k \ge 1, with N=n1+⋯+nk>kN = n_1 + \cdots + n_k > k. Let yijy_{ij}, for i=1,…,ki = 1, \dots, k and j=1,…,nij = 1, \dots, n_i, be observations of kk groups. Let yˉi=1ni∑jyij\bar y_i = \frac{1}{n_i} \sum_j y_{ij} be the mean of group ii and yˉ=1N∑i,jyij\bar y = \frac{1}{N} \sum_{i,j} y_{ij} the overall mean. The one-way analysis of variance is the decomposition ∑i=1k∑j=1ni(yij−yˉ)2=∑i=1kni(yˉi−yˉ)2+∑i=1k∑j=1ni(yij−yˉi)2,\sum_{i=1}^k \sum_{j=1}^{n_i} (y_{ij} - \bar y)^2 = \sum_{i=1}^k n_i (\bar y_i - \bar y)^2 + \sum_{i=1}^k \sum_{j=1}^{n_i} (y_{ij} - \bar y_i)^2, written SStot=SSbetween+SSwithinSS_{\mathrm{tot}} = SS_{\mathrm{between}} + SS_{\mathrm{within}}, together with the statistic F=SSbetween/(k−1)SSwithin/(N−k),F = \frac{SS_{\mathrm{between}} / (k - 1)}{SS_{\mathrm{within}} / (N - k)}, defined when SSwithin>0SS_{\mathrm{within}} > 0. Consider the model yij=μi+εijy_{ij} = \mu_i + \varepsilon_{ij} with independent errors εij∼N(0,σ2)\varepsilon_{ij} \sim N(0, \sigma^2). The ANOVA FF-test of level α\alpha rejects the hypothesis μ1=⋯=μk\mu_1 = \cdots = \mu_k when FF is large. The threshold is the upper α\alpha-quantile of the F-distribution with k−1k - 1 and N−kN - k degrees of freedom.

Remarks

The decomposition holds because, inside each group, the deviations yij−yˉiy_{ij} - \bar y_i sum to zero, so the cross term vanishes. Under the hypothesis of equal means and normal errors, FF has the FF-distribution with k−1k - 1 and N−kN - k degrees of freedom.

Example: groups {1,2,3}\{1, 2, 3\} and {4,5,6}\{4, 5, 6\}, so k=2k = 2, N=6N = 6, yˉ1=2\bar y_1 = 2, yˉ2=5\bar y_2 = 5, yˉ=3.5\bar y = 3.5. Then SSbetween=3⋅1.52+3⋅1.52=13.5SS_{\mathrm{between}} = 3 \cdot 1.5^2 + 3 \cdot 1.5^2 = 13.5 and SSwithin=2+2=4SS_{\mathrm{within}} = 2 + 2 = 4. Their sum 17.517.5 equals ∑(y−3.5)2=2(6.25+2.25+0.25)\sum (y - 3.5)^2 = 2(6.25 + 2.25 + 0.25). So F=13.5/(4/4)=13.5F = 13.5 / (4/4) = 13.5 on 11 and 44 degrees of freedom.

Non-example: if the groups have very different error variances, the hypothesis of a common σ2\sigma^2 fails. Then FF no longer has the FF-distribution under equal means, and Welch's test is used instead.

The same idea extends to several factors, with one sum of squares for each main effect and interaction. All these fixed-effects analyses are special cases of the general linear model. With k=2k = 2, the FF statistic is the square of the two-sample tt statistic with pooled variance.

Reading path

To understand this page from the ground up, read these 6 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. F-distribution concept
  2. F-test concept
  3. General linear model concept
  4. Normal distribution concept
  5. Sample mean concept
  6. Analysis of variance definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Analysis_of_variance
About this page
TagGWGFT35TCZ
URIm2://GWGFT35TCZ
Kinddefinition
WritingW0 stub
MSC62J10
DefinesAnalysis of variance
UsesGeneral linear model, F-test, F-distribution, Normal distribution, Sample mean

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.