Skip to content

Hypothesis Testing I: Principles and One-Sample Tests

A test is a structured way to ask whether data are compatible with a specified claim. Process specifications, target means, and claimed defect rates are typical one-sample questions.

We write \(H_0\) and \(H_1\), compute a test statistic, and interpret the \(p\)-value as a tail probability under \(H_0\), not as \(P(H_0 \mid \text{data})\). Significance level \(\alpha\), type I and type II errors, and power are introduced at an intuitive level. The working procedures are the one-sample \(t\)-test and a one-sample test of a proportion. A two-sided test and a confidence interval are two views of the same comparison.

Key Concepts

  • \(H_0\), \(H_1\), one-sided and two-sided tests
  • Test statistics and \(p\)-values
  • \(\alpha\), type I error, type II error, and power
  • One-sample \(t\)-test and one-sample proportion test
  • Duality between a confidence interval and a two-sided test

Learning Objectives

  • Write \(H_0\) and \(H_1\) for a one-sample problem, one-sided or two-sided.
  • Interpret a \(p\)-value as a tail probability under \(H_0\), not as \(P(H_0 \mid \text{data})\).
  • Explain \(\alpha\), type I error, type II error, and power at an intuitive level.
  • Perform a one-sample \(t\)-test and a one-sample test of a proportion in SciPy.
  • Use the duality between a confidence interval and a two-sided test.

Session Preparation:

Brooks: Chapter 7

Resources

Session material

Session notes

Tutorial 7: Does the process meet the specification?

Assignment 4 — One- and Two-Sample Tests — due 3 Nov. 2026, 12:45