Australian National University · FACULTY OF STATISTICS

BIOL2001 Chap.10 Confidence Intervals, t-Tests and Permutation Tests

- one subject, every graph, every model, every mark
8 Chapters5-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 10 of 15 · BIOL2001

Confidence Intervals, t-Tests and Permutation Tests

Intervals and tests for means

A confidence interval adds a range to a point estimate: at 95% confidence, it has that probability of enclosing the true mean. The t statistic divides the difference between means by its standard error, and for small samples with an estimated standard deviation it follows the t distribution.

A worked one-sample test checks whether dragonfly wingspans match a published mean and builds the matching interval.

Choosing and checking the test

A comparison table matches the one-sample, paired, two-sample and Welch t-tests to the design of a study, with the R call for each.

The chapter sets out the assumptions, how to check normality with histograms, QQ plots and the Shapiro-Wilk test, and why one-tailed tests are rarely appropriate. When normality fails, a permutation test builds the null distribution by rearranging the data: a computed figure shows all 252 rearrangements of ten seed masses and the exact p-value they give.

In this chapter

What this chapter covers

  • 01

    Confidence intervals for a mean

  • 02

    The t statistic as signal over noise

  • 03

    One-sample t-test

  • 04

    Paired t-test on differences

  • 05

    Two-sample and Welch t-tests

  • 06

    Normality checks: histogram, QQ plot, Shapiro-Wilk

  • 07

    One-tailed versus two-tailed tests

  • 08

    Permutation tests

Worked example · free

An exact permutation test on seed masses

Q [4 marks]. Seeds from site A weigh 12, 15, 11, 18 and 14 mg and seeds from site B weigh 19, 22, 17, 25 and 20 mg. Using all ways to split the ten masses into two groups of five, find the exact two-sided permutation p-value for the difference in means. The practice weighting is assigned by AskSia and is not an official assessment.
Every one of the 252 ways to split ten seed masses into two groups of five, with the difference in group means for each split.Every one of the 252 ways to split ten seed masses into two groups of five, with the difference in group means for each split. Only the 4 red bars are at least as far from 0 as the observed difference of −6.6 mg, so the two-sided p-value is 4/252 = 0.016.difference in mean seed mass, A minus B (mg)rearrangements-6.6-4-20246.6051015observed−6.64 of 252 as extreme
Every one of the 252 ways to split ten seed masses into two groups of five, with the difference in group means for each split. Only the 4 red bars are at least as far from 0 as the observed difference of −6.6 mg, so the two-sided p-value is 4/252 = 0.016.
  • 1The observed means are 70/5 = 14.0 and 103/5 = 20.6, a difference of −6.6 mg.
  • 1Under H0 the labels are arbitrary, and there are C(10, 5) = 252 ways to split the masses.
  • 1Computing the difference for every split, 4 are at least as far from 0 as −6.6, including the observed split and its mirror.
  • 1p = 4 / 252 = 0.016, below 0.05, so H0 of no difference is rejected.
The exact permutation p-value is 4/252 = 0.016, so the difference in mean seed mass between the sites is statistically significant at alpha = 0.05. A two-sample t-test on the same data gives p = 0.007, the same conclusion under stronger assumptions.
Sia tip — Count the splits at least as extreme in both directions for a two-sided test; counting only the observed side halves the p-value.
Glossary

Key terms

T Statistic
The difference between a sample mean and a hypothesised mean divided by its estimated standard error.
Paired T-Test
A t-test on the differences between two measurements of the same individuals.
Welch's T-Test
A two-sample t-test that does not assume equal variances in the two groups.
QQ Plot
A plot of sample quantiles against theoretical normal quantiles, used to judge normality.
Permutation Test
A test that builds the null distribution by repeatedly rearranging the data between groups.
Two-Tailed Test
A test that counts extreme results in either direction as evidence against the null hypothesis.
FAQ

Confidence Intervals, t-Tests and Permutation Tests FAQ

Which t-test should I use for before and after measurements?

Use a paired t-test, because the same individuals are measured twice. It works on the differences, so each individual acts as its own control and the variation between individuals is removed from the standard error, making real changes easier to detect.

When should I use Welch's t-test?

Use Welch's t-test to compare two independent groups whose standard deviations clearly differ. The ordinary two-sample test assumes equal variances and is sensitive to violations, while Welch's version keeps the variances separate. In R, t.test() uses Welch unless you set var.equal = TRUE.

Why are one-tailed tests rarely appropriate?

A one-tailed test requires the direction of the effect to be fixed before the data are collected and gives up any test of the opposite direction. The lecture describes that as a very strong stance, rarely justified in investigative research, so two-tailed tests are the default.

What is the advantage of a permutation test?

A permutation test does not assume the data follow any particular distribution, so it remains valid when a t-test's normality assumption fails badly. It builds the null distribution directly by rearranging which observations belong to which group and recomputing the difference each time.

Study strategy

Assessment move

For each practice scenario, first name the design: one sample, paired or two independent samples. Run the same small dataset through t.test() with and without paired = TRUE to see how much the design matters. Draw a histogram and a QQ plot before every test, and report each result with its interval as well as its p-value.

If a dataset looks clearly non-normal, run a small permutation test as well and compare its p-value with the t-test's; agreement between the two is reassuring, and disagreement tells you the assumptions matter.

Working through Confidence Intervals, t-Tests and Permutation Tests in BIOL2001? Sia is AskSia’s AI Statistics tutor — ask any BIOL2001 Confidence Intervals, t-Tests and Permutation Tests question and get a clear, step-by-step explanation grounded in how BIOL2001 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 46 of your Australian National University subjects - and 1,000+ Bibles across every Australian university.
Sia - your BIOL2001 tutor, unlimited, worked the way the exam marks it
The full 5-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works