{
  "name": "Nested two-level ANOVA: degrees of freedom, sums of squares and F denominators",
  "description": "Compiled for casrai.org from the NIST/SEMATECH two-way nested ANOVA table and the LibreTexts expected-mean-square derivation. Each row gives the source of variation, its degrees of freedom formula, the F denominator when B within A is random, and the values for an illustrative composite example with I=3, J=2, K=3 (sums of squares and mean squares computed by the writer).",
  "page": "https://casrai.org/guides/nested-anova",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-20T05:53:20Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Source of variation",
      "unit": "",
      "description": ""
    },
    {
      "name": "Degrees of freedom formula",
      "unit": "",
      "description": ""
    },
    {
      "name": "Degrees of freedom in example",
      "unit": "",
      "description": ""
    },
    {
      "name": "Sum of squares in example",
      "unit": "",
      "description": ""
    },
    {
      "name": "Mean square in example",
      "unit": "",
      "description": ""
    },
    {
      "name": "F denominator (B within A random)",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Source of variation": "A (main factor)",
      "Degrees of freedom formula": "I - 1",
      "Degrees of freedom in example": 2,
      "Sum of squares in example": 15.96,
      "Mean square in example": 7.98,
      "F denominator (B within A random)": "MS B(A)"
    },
    {
      "Source of variation": "B within A (nested factor)",
      "Degrees of freedom formula": "I(J - 1)",
      "Degrees of freedom in example": 3,
      "Sum of squares in example": 1.44,
      "Mean square in example": 0.48,
      "F denominator (B within A random)": "MS E"
    },
    {
      "Source of variation": "Error (residual)",
      "Degrees of freedom formula": "IJ(K - 1)",
      "Degrees of freedom in example": 12,
      "Sum of squares in example": 0.12,
      "Mean square in example": 0.01,
      "F denominator (B within A random)": "not applicable"
    },
    {
      "Source of variation": "Total",
      "Degrees of freedom formula": "IJK - 1",
      "Degrees of freedom in example": 17,
      "Sum of squares in example": 17.52,
      "Mean square in example": "",
      "F denominator (B within A random)": "not applicable"
    }
  ],
  "sources": [
    {
      "title": "NIST/SEMATECH e-Handbook: Two-Way Nested ANOVA",
      "url": "https://www.itl.nist.gov/div898/handbook/ppc/section2/ppc233.htm",
      "accessed": "2026-11-20"
    },
    {
      "title": "LibreTexts Statistics: 6.03 Random Effects in Factorial and Nested Designs",
      "url": "https://stats.libretexts.org/Bookshelves/Advanced_Statistics/Analysis_of_Variance_and_Design_of_Experiments/06%3A_Random_Effects_and_Introduction_to_Mixed_Models/6.03%3A_Random_Effects_in_Factorial_and_Nested_Designs",
      "accessed": "2026-11-20"
    }
  ]
}