UNIHIVE

Study Hub UNIPORT STA 260.1

STA 260.1 · Introduction to Probability and Statistics

Tests of hypotheses

Null and alternative hypotheses, test statistics, significance level, p-values, errors, and z and t tests for means and proportions.

Our notes

2 min read

The logic

  1. State H₀ (no effect, a claimed value) and H₁ (what you suspect): one-sided (μ > 70) or two-sided (μ ≠ 70).
  2. Choose the significance level α (often 0.05).
  3. Compute a test statistic from the sample.
  4. Compare with the critical value, or find the p-value (the probability, if H₀ is true, of a result at least as extreme).
  5. Reject H₀ if the statistic falls in the rejection region (p-value ≤ α). State the conclusion in words.

Two kinds of error

H₀ trueH₀ false
Reject H₀Type I error (probability α)correct (power)
Do not rejectcorrectType II error (probability β)

Lowering α raises β for the same n; a larger sample lowers both.

z test for a mean (σ known or n large)

z = (x̄ − μ₀)/(σ/√n).

t test for a mean (σ unknown, small normal sample)

t = (x̄ − μ₀)/(s/√n), with n − 1 degrees of freedom.

Worked example

A manufacturer claims a mean of 70 g of active content per batch. A sample of 16 batches gives x̄ = 74, s = 8. Test at 5% whether the mean differs from 70.

  • H₀: μ = 70, H₁: μ ≠ 70.
  • t = (74 − 70)/(8/√16) = 4/2 = 2.0.
  • Critical value t₀.₀₂₅,₁₅ = 2.131.
  • |2.0| < 2.131: do not reject H₀. The data do not show a difference at 5%.

(A one-sided test with H₁: μ > 70 has critical value 1.753, and 2.0 > 1.753 would reject: the choice of H₁ must be made before looking at the data.)

Test for a proportion

z = (p̂ − p₀)/√[p₀(1 − p₀)/n].
Example: a lecturer believes half the class prefers morning lectures; 64 of 100 do. z = (0.64 − 0.5)/0.05 = 2.8 > 1.96: reject H₀ at 5%.

Two means

  • Large samples: z = (x̄₁ − x̄₂)/√(s₁²/n₁ + s₂²/n₂).
  • Small samples, equal variances: pooled t with n₁ + n₂ − 2 degrees of freedom.
  • Paired data (before and after on the same units): a one-sample t on the differences.

Exams usually ask

  • Set up H₀ and H₁ correctly for a word problem.
  • Carry out a z or t test and state the conclusion in context.
  • Define Type I and II errors, significance level, p-value and power.

Common mistake

Writing "accept H₀" or "H₀ is proved". A test can only fail to reject H₀; the data may simply be too few to show the difference.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All STA 260.1 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.