Hypothesis tests for a population mean: VCE Specialist Mathematics Units 3 & 4

Loav · VCE Specialist Mathematics · Units 3 & 4

S34-S04 · Recommended sequence: Unit 4

1. Test a stated population claim

A hypothesis test asks whether observed sample evidence is unusually inconsistent with a specified population claim. For a single population mean, the null hypothesis H₀ gives a reference value μ₀, and the alternative H₁ identifies the departure being investigated. The test does not determine the population mean with certainty. It supplies a decision rule with a stated error risk under its assumptions.

Write hypotheses about μ, not about the observed sample mean x̄. The sample mean is already known once the data are collected; the unknown parameter is what the investigation concerns. A claim that the mean has increased from 50 becomes H₀: μ = 50 against H₁: μ > 50. A decrease uses μ < 50. A change in either direction uses μ ≠ 50.

Choose the alternative from the research question before inspecting the result. Selecting the direction after seeing which way x̄ falls makes unusually favourable evidence easier to obtain than the intended test allows. A two-sided investigation cannot be turned into a one-sided test merely to halve a disappointing p-value.

Define the population and units too. “Mean greater than 50” is incomplete if it is unclear whether μ refers to waiting time, mass, distance or another quantity. The final conclusion must return to that same population, rather than making a claim about every individual observation.

2. Build the null sampling distribution

For an independent random sample from a normal population with known standard deviation σ, assume H₀ temporarily. Then X̄ ∼ N(μ₀, σ²/n), so a standardised test statistic has a standard normal distribution under H₀:

Z = (X̄ − μ₀)/(σ/√n)
Observed statistic: zobs = (x̄ − μ₀)/(σ/√n)

The denominator measures the typical sampling variation of an average, not the spread of individual observations. A deviation of 2 units could be unremarkable when the standard error is 5, but very unusual when it is 0.2. Standardisation measures the discrepancy on the relevant scale.

For a sufficiently large random sample from a nonnormal population, use the normal approximation for X̄. When σ is unknown and a suitable large sample supplies s, use s/√n as an estimated standard error. The resulting z-based inference is approximate. A small unknown-variance sample is not justified by this method merely because a calculator can produce a number.

Check the assumptions before the arithmetic: the sample should represent the intended population, observations should satisfy the independent sampling model, and exact normality or a suitable large-sample approximation must be available. Increasing n reduces sampling variation but cannot remove selection bias or make dependent measurements independent.

3. Translate “as extreme” into the correct tail

The p-value is the probability, calculated under H₀, of a test statistic at least as extreme as the observed statistic in the direction or directions specified by H₁. It measures inconsistency with the null model. It is not the probability that H₀ is true, and it is not the probability that the result happened “by chance” in an undefined sense.

H₁: μ > μ₀ → p = 1 − Φ(zobs)
H₁: μ < μ₀ → p = Φ(zobs)
H₁: μ ≠ μ₀ → p = 2[1 − Φ(|zobs|)]

For a two-sided normal test, the two tails beyond ±|zobs| have equal areas. Double the smaller tail, not any arbitrary cumulative output. For a one-sided test, evidence in the opposite direction produces a large p-value. If H₁ says “greater” but zobs is negative, do not take its absolute value and manufacture evidence for an increase.

The significance level α is chosen before examining the evidence. Reject H₀ when p ≤ α; otherwise do not reject H₀. A non-rejection is a lack of sufficient evidence for H₁ at that level, not proof that the null value is correct. Use unrounded p-values for a close decision and then report sensible final accuracy.

Worked example 1: Investigating underfilling

A machine's normal fill distribution has known standard deviation 12 mL. A random sample of 36 independent fills has mean 496 mL. Test, at the 5% level, whether the population mean is below the stated 500 mL setting.

Let μ be the mean volume of fills from this process. Set H₀: μ = 500 and H₁: μ < 500. Under H₀, X̄ ∼ N(500, 4). Thus zobs = (496 − 500)/(12/6) = −2. The lower-tail p-value is Φ(−2) ≈ 0.02275.

Since 0.02275 < 0.05, reject H₀. There is sufficient evidence at the 5% significance level that the population mean fill volume is below 500 mL. At a 1% significance level the same data would not lead to rejection. The sample has not changed; the preselected strength of evidence required for a rejection has changed.

One-sided and two-sided five percent testsTwo symmetric standard normal densities with accurately shaded five percent rejection regions. 2026-10-16T02:37:59.332268 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ 0.0 0.1 0.2 0.3 0.4 Density Reject: 0.05 −1.645 Lower-tail test: all 5% in the lower tail −4 −3 −2 −1 0 1 2 3 4 Standardised sample mean Z 0.0 0.1 0.2 0.3 0.4 Density -1.960 1.960 0.025 0.025 Two-sided test: 2.5% in each tail
Critical areas depend on the alternative. Both illustrated tests have total null rejection probability 0.05, but they allocate that probability differently.

Worked example 2: Detecting a change in either direction

Independent response times follow a normal distribution with known standard deviation 6 seconds. A sample of 49 has mean 22 seconds. Test H₀: μ = 20 against H₁: μ ≠ 20 at the 5% level.

The standard error is 6/7 seconds and zobs = (22 − 20)/(6/7) = 7/3. Since the alternative is two-sided, p = 2[1 − Φ(7/3)] ≈ 0.01963. This is below 0.05, so reject H₀. There is sufficient evidence that the population mean response time differs from 20 seconds.

The observed sample mean is above 20, but the test was designed to detect either direction. As a check, the matching 95% confidence interval is 22 ± 1.95996…(6/7), approximately (20.32, 23.68) seconds. It excludes the null value 20, agreeing with the two-sided rejection. The calculation does not establish that every response time has increased.

4. A critical region is the same rule written before data arrive

Instead of computing a p-value after sampling, choose a rejection region whose probability under H₀ is α. For an upper-tail test, reject when Z ≥ z1−α, where z1−α = Φ⁻¹(1 − α). For a lower-tail test, reject when Z ≤ zα. For a two-sided test, reject when |Z| ≥ z1−α/2.

These regions can be translated back to sample-mean units. An upper-tail critical value is c = μ₀ + z1−ασ/√n, and rejection occurs for X̄ ≥ c. A lower-tail value uses μ₀ + zασ/√n. In a two-sided test, there are two boundary values. A sketch should label the axis as X̄ or Z, according to the scale actually shown.

For continuous normal models, including or excluding a single boundary point does not change the rejection probability. Nonetheless, keep the algebra and stated decision convention consistent. When a rounded observed value lies extremely close to a boundary, use the original precision rather than deciding from a rough diagram.

Worked example 3: Design and use a rejection threshold

A normal process has σ = 10 units. A sample of 25 will be used to test H₀: μ = 50 against H₁: μ > 50 at α = 0.01. Find the critical region and decide what happens if x̄ = 54.

The standard error is 2. Under H₀, choose c so that Pr(X̄ ≥ c) = 0.01. Hence c = 50 + 2Φ⁻¹(0.99) ≈ 54.65270. The rejection region is X̄ ≥ 54.65270…; 54 is outside it, so do not reject H₀.

Equivalently, zobs = (54 − 50)/2 = 2 and the upper-tail p-value is approximately 0.02275, which exceeds 0.01. There is insufficient evidence at the 1% level that the process mean exceeds 50 units. Writing “the mean is 50” would claim more than the data and test establish.

5. Link tests and intervals only when they match

Away from exact equality at a critical boundary, a two-sided level-α z test rejects μ₀ precisely when μ₀ lies outside the corresponding central 100(1 − α)% confidence interval, using the same standard error and model. This follows by rearranging |x̄ − μ₀|/(σ/√n) > z1−α/2. The interval collects the null values that would not be rejected by that matching procedure.

The word “matching” matters. A one-sided 5% test does not generally give the same decision as checking a central 95% interval, because the test uses z0.95 and the interval uses z0.975. Nor should an interval using one variability estimate be compared as if identical to a test using another. Identify the tail allocation before using interval reasoning as a shortcut.

Statistical significance also differs from practical importance. A very large sample can detect a very small departure from μ₀. Report the estimated difference and its units alongside the test conclusion when context requires judgement. A p-value by itself says nothing about whether the difference is large enough to matter operationally.

6. Use technology to audit the decision

A reliable calculation records the hypotheses, standard error, observed statistic, selected tail, unrounded p-value and comparison with α. Recompute the probability using the sample-mean distribution as a check: for a lower-tail test, Pr(X̄ ≤ x̄ | μ = μ₀) should equal Φ(zobs). A mismatch often reveals that variance was entered where standard deviation was expected.

A non-routine investigation can hold x̄ − μ₀ and σ fixed while varying n. The statistic's magnitude grows like √n, so the evidence against H₀ becomes stronger. Conversely, a fixed statistically significant departure can become non-significant with a smaller sample. This explains why a decision cannot be inferred from the observed difference alone.

For an algorithm, determine the tail from H₁, calculate the corresponding p, and use a single conditional decision: if p ≤ α, reject; otherwise do not reject. The contextual explanation remains necessary after the numerical branch. The next guide explores the errors this decision rule can make.

Practice questions

  1. A manufacturer investigates whether a mean lifetime has increased from 120 hours. State the hypotheses and the tail.
  2. For a normal population with σ = 8, n = 16 and x̄ = 26, test μ = 30 against μ < 30 at 5%.
  3. A suitable large sample gives n = 81, s = 9 and x̄ = 33.8. Test μ = 32 against μ > 32 at 5% using the stated z approximation.
  4. A two-sided normal test gives zobs = −2. Find p and decide at α = 0.01.
  5. Find the lower-tail 5% critical mean for μ₀ = 10, σ = 4 and n = 64.
  6. A matching central 95% confidence interval is (7.2, 8.8). What happens in a two-sided 5% test of μ₀ = 8? What about μ₀ = 9?
  7. A student observes a positive test statistic, changes a planned two-sided alternative to “greater”, and reports half the original p-value. Explain why this is not the planned test.
Fully reasoned answers
  1. Define μ as the population mean lifetime. Use H₀: μ = 120 and H₁: μ > 120, an upper-tail test. A claim of increased lifetime determines the direction before the sample result is examined.
  2. The standard error is 8/4 = 2, giving z = (26 − 30)/2 = −2. The lower-tail p-value is 0.02275…, below 0.05. Reject H₀; there is sufficient evidence that the population mean is below 30.
  3. The estimated standard error is 9/9 = 1, so z = (33.8 − 32)/1 = 1.8. The upper-tail p-value is 1 − Φ(1.8) ≈ 0.03593. Reject at 5%, with an explicitly approximate conclusion that the population mean exceeds 32.
  4. The two-sided p-value is 2Φ(−2) ≈ 0.04550. This exceeds 0.01, so do not reject H₀ at the 1% level. The negative sign identifies the observed direction, but both tails count for this alternative.
  5. The standard error is 4/8 = 0.5. The boundary is 10 + 0.5Φ⁻¹(0.05) ≈ 9.17757. Reject for X̄ ≤ 9.17757…. Under the null, this lower region has probability 0.05.
  6. Eight lies inside the interval, so the matching test does not reject μ₀ = 8. Nine lies outside, so it rejects μ₀ = 9. These are decisions about two different null values under the same two-sided procedure.
  7. The alternative was selected using the observed direction, so it no longer represents the prespecified one-sided procedure. The original two-sided question requires both tails. Tail selection must come from the investigation's purpose, not a desired rejection.

Curriculum and sources

VCE Specialist Mathematics Units 3 and 4, Areas of Study 6 as applicable, with Outcomes 1–3. Scope follows the VCAA Mathematics Study Design 2023–2027 and the current Specialist Mathematics FAQ. Curriculum checked 15 October 2026. Teaching reference: Cambridge Senior Mathematics VCE Specialist Mathematics 3&4, second edition (2023), sections 16B–16D (pp692–711). All teaching prose, examples, practice questions and diagrams are original. Independent teaching material; not a VCAA publication.