A.1.9 - Student's t-test in biological investigations

A.1.9 - Student's t-test in biological investigations

Two groups of seedlings can have different mean growth even when their growing conditions have no real effect. Student's t-test helps judge a difference between suitable independent sample means in relation to variation and sample size. You will work from individual measurements to a significance decision, then decide what that result actually supports biologically.

Choose a test for the biological question

The question being investigated and the way observations are collected determine which statistical test is appropriate.

Suppose a biologist asks whether seedlings grown at two temperatures differ in their mean shoot-length increase over 14 days. Length increase is a quantitative measurement with meaningful intervals, and there are two treatment groups. An independent-samples t-test can address this comparison if its assumptions are reasonable. It assesses the population means represented by the samples, rather than requiring every warmed seedling to grow more than every control seedling.

Independent samples

Two samples are independent when observations are not linked as before-and-after measurements or matched pairs, and one independent experimental or sampling unit does not supply dependent observations counted as separate replicates.

For a temperature experiment, six seedlings sharing one heated cabinet are not six independent applications of the temperature treatment. A cabinet-specific light or humidity difference could explain their response. Repeating a ruler reading on one seedling likewise improves measurement information without creating more independent seedlings. Identify the unit to which the treatment is independently applied before counting the sample size.

Choose among these different biological questions:

Question and dataSuitable approach under its own conditions
Do two independent groups differ in mean shoot-length increase?An independent-samples t-test for suitable quantitative measurements.
Does higher soil water content tend to accompany greater plant cover, with both measured in each independent patch?A correlation test for association between paired variables, such as the taught Spearman rank method for a monotonic pattern.
Do observed numbers of offspring in phenotype categories differ from numbers expected under an inherited ratio?A chi-squared goodness-of-fit test on suitable observed and expected counts.

The word paired has different roles in those examples. A correlation deliberately links two different variables measured on the same patch. A before-and-after measurement of the same organisms creates a paired mean-comparison design, which needs an appropriate paired analysis. It must not be put into the independent t-test taught here. Nor does having equal group sizes make independent observations into matched pairs.

Set the assumptions and hypotheses

A test needs a defensible model of the observations before its numerical result can be trusted.

Here we use the pooled-variance Student independent-samples t-test. This particular version assumes independent observations within and between groups, approximately normal distributions of the response within each population, and a common population variance. A normal distribution is a symmetric bell-shaped distribution; the condition concerns the response within each group, not a requirement that the two groups have the same mean. With small samples, severe skew or extreme outliers can make the simple test unreliable.

The worked investigation below is an original illustrative exercise, not a reported experiment. Twelve independently controlled growth units each contain one seedling of the same cultivar. Seedlings are randomly allocated to six units at 18°C and six at 22°C. Each unit has its own temperature control; positions are randomised, and light, soil, watering and the 14-day interval are kept comparable. One shoot-length increase is recorded per unit. Random allocation helps prevent initial plant differences being systematically assigned to one temperature, while independent units avoid confusing one cabinet with one treatment.

For this exercise, assume that prior pilot work using the same cultivar and protocol supports approximately normal growth responses and similar population variances at these temperatures. Together with the independent design, those stated conditions justify the pooled version. The small illustrative samples will have similar spread, but six observations per group cannot establish normality or prove equal population variances. In a real investigation, inspect the raw data and distribution, check unusual values against the records and consider the design and prior evidence. Do not delete a genuine extreme value just to improve significance.

If a common variance is not reasonable, a suitable unequal-variance method such as Welch's t-test uses its own equation and degrees of freedom. If the design is paired, it needs a paired method. Those are different analyses; do not attach the pooled degrees-of-freedom rule to an unrelated formula. Changing a formula cannot repair a lack of independent replication.

Let μ18\mu_{18} and μ22\mu_{22} denote population mean shoot-length increases over 14 days under the two conditions represented by the experiment. State the hypotheses before examining the results:

  • Null hypothesis, H0H_0: μ18=μ22\mu_{18}=\mu_{22}; the population mean increases do not differ.
  • Alternative hypothesis, H1H_1: μ18≠μ22\mu_{18}\ne\mu_{22}; the population mean increases differ.

This is a two-sided test: either a sufficiently large increase or decrease counts against the null. Choose the significance level in advance, here α=0.05\alpha=0.05, or 5%. A justified directional question set in advance could use a one-sided alternative and its matching rule. Choosing the direction after seeing the data would make that rule misleading. Temperature can accelerate some biological processes but can also damage them, so a difference in either direction is meaningful here.

Calculate means and sample variation

Keep the individual measurements so that an average does not hide spread or an unusual observation.

These are all the original illustrative measurements for the independently replicated design. The columns contain separate seedling groups; rows are only a compact way to display them, not matched pairs. Increase was measured consistently to the nearest millimetre.

Observation within its groupIncrease at 18°C / mmIncrease at 22°C / mm
11823
22025
32025
42227
52227
62429
Sum126156

The sample sizes are n18=6n_{18}=6 and n22=6n_{22}=6. Use the arithmetic mean separately for each group:

xˉ18=1266=21 mm,xˉ22=1566=26 mm.\bar{x}_{18}=\frac{126}{6}=21\,\mathrm{mm},\qquad \bar{x}_{22}=\frac{156}{6}=26\,\mathrm{mm}.

The observed mean difference is 26−21=5 mm26-21=5\,\mathrm{mm}, but this number alone does not establish a population difference. We also need variation within each group.

For a sample of nn observations:

s2=∑(xi−xˉ)2n−1,s=s2.s^2=\frac{\sum(x_i-\bar{x})^2}{n-1},\qquad s=\sqrt{s^2}.

s2s^2 is sample variance, ss is sample standard deviation, xix_i is an individual observation and xˉ\bar{x} is its group's sample mean. Use the sample denominator n−1n-1, not the population-SD denominator nn.

Every deviation and square is shown below. Subtract each group's own mean; subtracting one overall mean would mix the between-group difference into the within-group spread.

Observationx18−21x_{18}-21 / mmSquare / mm2\mathrm{mm}^2x22−26x_{22}-26 / mmSquare / mm2\mathrm{mm}^2
1−39−39
2−11−11
3−11−11
41111
51111
63939
Sum022022

For each group, s2=22/(6−1)=4.4 mm2s^2=22/(6-1)=4.4\,\mathrm{mm}^2, so s=4.4=2.0976… mms=\sqrt{4.4}=2.0976\ldots\,\mathrm{mm}, approximately 2.1 mm. Variance has squared length units; taking the square root gives SD in millimetres. Retain the unrounded variance for later working instead of squaring a prematurely rounded SD.

Both ranges are 6 mm: 24−18=624-18=6 and 29−23=629-23=6. Range depends only on the extremes; SD uses every observation's distance from the mean. Neither summary proves a distribution is normal. These deliberately simple teaching groups have identical sample variances; real independent samples need not have identical observed variances even when their populations share a common variance.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account