Chapter 1 of 22 Statistics guide · Part 1: The basics

What Is Statistics? Populations, Samples, Variables and Types of Data

Statistics is how we learn from data when no two plants, plots or animals are alike. This first chapter explains what statistics does, the difference between a population and a sample, the kinds of variables you measure in a trial, and why the type of data decides the analysis.

  • Plant and animal examples
  • Worked by hand and in R
  • Sources cited
  • Free tools to try it

Quick answers

What is statistics in simple words?
Statistics is the science of collecting, summarizing and interpreting data so you can reach conclusions despite natural variation, and say how sure you are.
What are the two main types of statistics?
Descriptive statistics summarize the data you have (means, standard deviations, graphs). Inferential statistics use a sample to draw conclusions about a larger population (tests, confidence intervals).
What is the difference between a population and a sample?
The population is every unit you want to draw conclusions about, such as all pigs of a genetic line. The sample is the part you actually measure, such as 24 pigs in one trial.
What is the difference between a parameter and a statistic?
A parameter describes the population and is usually unknown (the true mean μ). A statistic is calculated from the sample (the sample mean x̄) and estimates the parameter.
What are independent and dependent variables?
The independent variable is what you control or compare, such as diet or nitrogen rate. The dependent (response) variable is what you measure, such as daily gain or grain yield.
What are the types of data in statistics?
Qualitative (categories: nominal, ordinal, binary) and quantitative (numbers: discrete counts or continuous measurements). The type of data decides which analysis fits.
On this page
  1. Quick answers
  2. Why agricultural research needs statistics
  3. The two trials used throughout this guide
  4. Population vs sample, parameter vs statistic
  5. Variables: independent, dependent and the rest
  6. Types of data, and why they decide the analysis
  7. What comes next
  8. Key takeaways
  9. Questions people ask
  10. Sources

Why agricultural research needs statistics

Put two pigs on the same diet and they will not gain the same weight. Sow one wheat variety across a field and every plot yields a little differently. This natural variation is the reason statistics exists: if every animal and plot responded identically, one observation would be enough and nobody would need a test.

Evidence can come from anecdotes, from authorities, from observational studies or from experiments. Only a planned experiment, where you assign the treatments yourself and at random, lets you say that a treatment caused a difference. Statistics supports every stage of that process:

  1. Ask a question and state a hypothesis that could turn out to be wrong.
  2. Design the experiment: treatments, replicates, randomization and blocks.
  3. Collect the data, then explore and check it.
  4. Analyze it with a model that matches the design.
  5. Interpret and report the results, including how uncertain they are.

The answers often raise new questions, so the process repeats. This guide follows that order: the basics first, then inference, then design, then the analyses.

The two trials used throughout this guide

Each chapter returns to these trials, so you can watch one dataset go from raw numbers to a finished analysis.

Population vs sample, parameter vs statistic

The population is the whole group you want your conclusion to apply to. The sample is the part you measure. In the pig trial, the population is weaned pigs of that genetic line raised under similar conditions; the sample is the 24 pigs in the barn. In the wheat trial, the population is the yields the two varieties would give across similar fields and seasons; the sample is 40 plots in one field in one year.

Numbers that describe a population are parameters. They are fixed but unknown. Numbers calculated from a sample are statistics, and they change from sample to sample. Statistics are written with Latin letters and parameters with Greek ones:

QuantityPopulation parameterSample statistic
Meanμ (mu)x̄ (x-bar)
Standard deviationσ (sigma)s or SD
Varianceσ²s²
Proportionπ or pp̂ (p-hat)
Correlationρ (rho)r

A sample only tells you about its population if it represents it. Random sampling, and in experiments random assignment of treatments, is what protects you from a sample that is unrepresentative in ways you never noticed. Results also apply only to the population sampled: one field in one year says little about other soils and seasons, which is why crop trials are repeated across locations and years.

Variables: independent, dependent and the rest

A variable is anything that changes from one unit to the next. In an experiment, variables play different roles:

  • Independent variable (treatment, factor, explanatory variable): what you set or compare. Diet is a factor with four levels; nitrogen rate is a factor with five.
  • Dependent variable (response, outcome): what you measure to judge the treatments: ADG, yield, emergence.
  • Blocking variable: a known source of variation that is not of interest but is built into the design, such as litter or field block.
  • Covariate: a measured number that may explain part of the response, such as a pig's start weight.

Types of data, and why they decide the analysis

Qualitative (categorical) data put units into groups: nominal categories with no order (breed, variety), ordinal categories with an order (body condition score 1 to 5, disease score), and binary data with two outcomes (pregnant or not, emerged or not).

Quantitative data are numbers. Discrete data are counts (piglets born, weeds per square meter, days with scours). Continuous data can take any value in a range (weight, yield, protein percentage). Continuous data are further split into interval scales, with no true zero (temperature in °C), and ratio scales, with a true zero (weight, yield).

The type of response steers you to the analysis, and to the chapter of this guide that covers it:

Your responseExampleUsual analysis
Continuous, roughly normalADG, yield, milk yieldt-test, ANOVA, regression
Two groups onlyControl vs one supplementt-test
Measured repeatedly over timeWeekly weightsRepeated measures
Numeric treatment levelsNitrogen rate, lysine levelDose-response regression
Yes/no or proportionsScours, emergence, pregnancyLogistic regression (GLM)
CountsDays with scours, weed countsPoisson or negative binomial
Scores or ranksDisease score 1 to 9Rank tests

What comes next

With the vocabulary in place, chapter 2 explains the step at the heart of statistics: going from a sample you measured to a conclusion about a population you did not. Then chapter 3 shows how to summarize the pig data with means, medians and standard deviations.

Key takeaways

  • Statistics exists because of variation: no two animals or plots respond alike.
  • Only randomized experiments let you conclude that a treatment caused a difference.
  • A sample stands in for a population; statistics (x̄, s) estimate parameters (μ, σ).
  • Name each variable's role: treatment, response, block or covariate.
  • The type of response (continuous, count, yes/no, score) decides the analysis.

Questions people ask

Why is statistics important in agriculture?

Field and animal trials vary a lot from plot to plot and animal to animal. Statistics separates real treatment effects from that background noise, so recommendations to farmers rest on evidence rather than chance.

Is statistics the same as mathematics?

No. Statistics uses mathematics, but its goal is reasoning from data under uncertainty. Most of the skill is in design, choosing the right model and interpreting results, not in arithmetic.

What is biostatistics?

Statistics applied to living things: medicine, biology, and plant and animal science. Agricultural statistics is the branch focused on crop and livestock experiments.

What is a variable vs a value?

A variable is the characteristic (yield); a value is one observation of it (5.2 t/ha in plot 7).

Do I need software to learn statistics?

Not to learn the ideas, but real analyses use software such as R or SAS. aStat runs R in your browser, and every chapter here shows the R and SAS code.

Sources

  • Kaps, M., and Lamberson, W. R. (2017). Biostatistics for Animal Science (3rd ed.). CABI.
  • Gomez, K. A., and Gomez, A. A. (1984). Statistical Procedures for Agricultural Research (2nd ed.). Wiley.
  • Seltman, H. J. (2015). Experimental Design and Analysis. Carnegie Mellon University (free online text).