AgriStats
Agricultural Experimental Design

Analysis workspace

Calculations run on the Cloudflare Worker. Enter trial data below, choose a design, and calculate the ANOVA, no software to install.

Compute

Select experimental design

Randomized Complete Block Design (RBD) Workspace
No values entered yet.
Tip: Download template, fill observations in Excel, and re-upload the same file.
Analysis options & post-hoc tests
ANOVA table, intermediate sum of squares, and significance verdict are calculated for all designs by default.
Optional, plan your field layout

Field Layout Map

A randomised field plan, independent of the analysis workspace above. The layout design here does not have to match the analysis design, layout and analysis are independent. Set the design and size, then generate a map.

Seed: the starting number for the randomisation. The same seed always makes the same map, so record it to reproduce a layout exactly. Each Generate uses a fresh seed, so maps do not repeat. To reuse a seed, type it in and click Generate, a typed seed stays locked until you press Shuffle.

Set the design and size above, then Generate Map. Each Generate uses a fresh seed.

No map yet. Generate a map to see the field layout here.

Three principles of experimental design

  • Replication: each treatment is repeated the same number of times, so its mean can be estimated and compared fairly.
  • Randomization: treatments are assigned to plots by chance, not in order, so no treatment is favoured by its position.
  • Local Control: blocks, rows and columns group similar plots together, so known variation is removed from the experimental error.

Statistical Models & Mathematical Formulations

Reference guide for the linear mathematical models, variance partition equations, and post-hoc criteria used in AgriStats. Short on time? Pick the situation that matches your field:

Three Principles of Experimental Design

Every layout map in AgriStats is built on these three principles, first set out by R. A. Fisher.

  • Replication: each treatment is repeated the same number of times, so its mean can be estimated and compared fairly. In the map, every treatment appears r times.
  • Randomization: treatments are assigned to plots by chance, not in order, so no treatment is favoured by its position. In the map, the assignment is made by a seeded randomisation. The generator checks the whole map and regenerates it, keeping the map with the fewest repeated neighbouring pairs, zero where the number of treatments allows it.
  • Local Control: blocks, rows and columns group similar plots together, so known variation is removed from the experimental error. In the map, blocks in RBD, rows and columns in LSD, and strips in Strip Plot do this job. CRD uses no blocking and is valid only on homogeneous material.
  • Random seed: the starting number for the randomisation. The same seed always makes the same map, so recording the seed lets you reproduce a layout exactly. A fresh seed is used each time a map is generated, so maps do not repeat.

Completely Randomized Design (CRD)

Linear Mathematical Model:

$$Y_{ij} = \mu + \tau_i + \varepsilon_{ij}$$

Assumes complete homogeneity across all experimental units.

  • Correction Factor: $CF = \frac{G^2}{N}$
  • Total SS: $TSS = \sum Y_{ij}^2 - CF \quad (DF = N - 1)$
  • Treatment SS: $TrSS = \sum \frac{T_i^2}{r_i} - CF \quad (DF = t - 1)$
  • Error SS: $ESS = TSS - TrSS \quad (DF = N - t)$
  • Test Ratio: $F_{cal} = \frac{MS_{Tr}}{MS_{Error}}$

Randomized Complete Block Design (RBD)

Linear Mathematical Model:

$$Y_{ij} = \mu + \beta_j + \tau_i + \varepsilon_{ij}$$

Controls for a single fertility or environmental gradient across blocks.

  • Replication SS: $BSS = \sum \frac{B_j^2}{t} - CF \quad (DF = r - 1)$
  • Treatment SS: $TrSS = \sum \frac{T_i^2}{r} - CF \quad (DF = t - 1)$
  • Error SS: $ESS = TSS - BSS - TrSS \quad (DF = (r-1)(t-1))$
  • Standard Error: $SE(d) = \sqrt{\frac{2 \cdot MS_{Error}}{r}}$
  • Critical Difference: $CD = SE(d) \times t_{\alpha, df_{error}}$

Latin Square Design (LSD)

Linear Mathematical Model:

$$Y_{ijk} = \mu + \rho_i + \gamma_j + \tau_k + \varepsilon_{ijk}$$

Controls two orthogonal sources of extraneous variation (Rows and Columns).

  • Row SS: $RowSS = \sum \frac{R_i^2}{m} - CF \quad (DF = m - 1)$
  • Column SS: $ColSS = \sum \frac{C_j^2}{m} - CF \quad (DF = m - 1)$
  • Treatment SS: $TrSS = \sum \frac{T_k^2}{m} - CF \quad (DF = m - 1)$
  • Error DF: (m - 1)(m - 2)

Strip Plot Design (Split-Block)

Linear Mathematical Model:

$$Y_{ijk} = \mu + \rho_k + \alpha_i + (\rho\alpha)_{ik} + \beta_j + (\rho\beta)_{jk} + (\alpha\beta)_{ij} + \varepsilon_{ijk}$$

Applied when both treatments require large continuous machinery strips. Evaluated with 3 distinct error terms:

  • Error (a): Rep x Factor A (tests Factor A main effect)
  • Error (b): Rep x Factor B (tests Factor B main effect)
  • Error (c): Rep x A x B (tests Factor A x B interaction)

Post-Hoc Mean Separation Criteria

  • Fisher's LSD (CD): Fixed studentized t-threshold: $CD = SE(d) \times t_{\alpha, df_e}$
  • Tukey's HSD: Controls experimentwise error rate across all pairs: $HSD = q_{\alpha, k, df_e} \times SE(m)$
  • Duncan's MRT: Variable protection levels based on step rank distance: $R_p = SSR_{\alpha, p, df_e} \times SE(m)$

One-Sided Upper Whisker Method

Agronomic publication standards (e.g. Agronomy Journal) present upper whiskers on positive mean plots:

  • Whiskers extend strictly upwards from the bar height to mean + SE.
  • Prevents clutter inside positive magnitude values.
  • Compact Letter Display (CLD) badges are placed directly above the whisker cap for rapid peer review.

About

AgriStats was designed and created by Aadhar Gohil.

Data is sent to the Worker for calculation and is not stored. When signed in, a copy of each calculation is saved to your own history so you can reopen it later.