Reference > Glossaries > The Barley Experiment

The Barley Experiment

Many of the examples in the manual use a dataset collected in the 1930s from an experiment to investigate barley yields. Ten varieties of seed were planted at 6 farms over 2 years and the yields from each plot measured to give 120 data points.


This data can be classified and tabulated in many interesting ways, and has been the subject of many papers in the statistical journals. If you want to try out some of the tutorial examples, you will need the numbers and categories, so here they are:

int[] barleyyear = new int[] {1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,
  1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,
  1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,1931,
  1931,1931,1931,1931,1931,1931,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,
  1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,
  1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,1932,
  1932,1932,1932,1932,1932,1932};
  
string[] barleyfarm = new string[] {"University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth",
  "University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris",
  "Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth",
  "University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris",
  "Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth",
  "University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris",
  "Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth",
  "University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris",
  "Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth",
  "University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris",
  "Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth",
  "University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris",
  "Crookston","Grand Rapids","Duluth","University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth",
  "University Farm","Waseca","Morris","Crookston","Grand Rapids","Duluth"};
  
string[] barleyvariety = new string[] {"Manchuria","Manchuria","Manchuria","Manchuria","Manchuria","Manchuria",
  "Glabron","Glabron","Glabron","Glabron","Glabron","Glabron","Svansota","Svansota","Svansota","Svansota","Svansota",
  "Svansota","Velvet","Velvet","Velvet","Velvet","Velvet","Velvet","Trebi","Trebi","Trebi","Trebi","Trebi","Trebi",
  "No. 457","No. 457","No. 457","No. 457","No. 457","No. 457","No. 462","No. 462","No. 462","No. 462","No. 462",
  "No. 462","Peatland","Peatland","Peatland","Peatland","Peatland","Peatland","No. 475","No. 475","No. 475","No. 475",
  "No. 475","No. 475","Wisconsin No. 38","Wisconsin No. 38","Wisconsin No. 38","Wisconsin No. 38","Wisconsin No. 38",
  "Wisconsin No. 38","Manchuria","Manchuria","Manchuria","Manchuria","Manchuria","Manchuria","Glabron","Glabron",
  "Glabron","Glabron","Glabron","Glabron","Svansota","Svansota","Svansota","Svansota","Svansota","Svansota","Velvet",
  "Velvet","Velvet","Velvet","Velvet","Velvet","Trebi","Trebi","Trebi","Trebi","Trebi","Trebi","No. 457","No. 457",
  "No. 457","No. 457","No. 457","No. 457","No. 462","No. 462","No. 462","No. 462","No. 462","No. 462","Peatland",
  "Peatland","Peatland","Peatland","Peatland","Peatland","No. 475","No. 475","No. 475","No. 475","No. 475","No. 475",
  "Wisconsin No. 38","Wisconsin No. 38","Wisconsin No. 38","Wisconsin No. 38","Wisconsin No. 38","Wisconsin No. 38"};

double[] yield = new double[] {27,48.87,27.43,39.93,32.97,28.97,43.07,55.2,28.77,38.13,29.13,29.67,35.13,47.33,
  25.77,40.47,29.67,25.7,39.9,50.23,26.13,41.33,23.03,26.3,36.57,63.83,43.77,46.93,29.77,33.93,43.27,58.1,28.7,45.67,
  32.17,33.6,36.6,65.77,30.37,48.57,24.93,28.1,32.77,48.57,29.87,41.6,34.7,32,24.67,46.77,22.6,44.1,19.7,33.07,39.3,
  58.8,29.47,49.87,34.47,31.6,26.9,33.47,34.37,32.97,22.13,22.57,36.8,37.73,35.13,26.17,14.43,25.87,27.43,38.5,35.03,
  20.63,16.63,22.23,26.8,37.4,38.83,32.07,32.23,22.47,29.07,49.23,46.63,41.83,20.63,30.6,26.43,42.2,43.53,34.33,19.47,
  22.7,25.57,44.7,47,30.53,19.9,22.5,28.07,36.03,43.2,25.23,26.77,31.37,30,41.27,44.23,32.13,15.23,27.37,38,58.17,
  47.17,35.9,20.67,29.33};

The yields have been rounded off to 2 decimal places to save on byte count, but otherwise the data is entirely as collected.


Send comments on this topic
© Dyalog Ltd 2013