Population-mean hypothesis tests

Carry out planned one- and two-tailed mean tests, distinguish exact and estimated-spread models, and interpret the evidence in context.

More
Reading settingsKeep track of this lesson

Read offline with Premium

Save lessons and their figures on this device to read without an internet connection. Offline saving is included with Premium.

Connect at least once every 30 days to confirm Premium. Topic checks, coaching and sync need a connection.

Find this activity in your course
On this page

Reading settings

Colour theme, text size, line spacing and reading width for your lessons.

Colour theme
Text size
Line spacing
Reading width
Revision Mode

Keep just the revision notes by hiding embedded questions and activities, including worked examples. Your choice follows your account across both subjects and devices. Turn off to show the full lesson again.

Checking Premium access…

Explore Premium

Live preview

Take a moment to read at your own pace. Choose the text size and spacing that feel comfortable for you.

Pause after each idea, then explain it in your own words before moving on.

Narrower lines take effect when the screen has room.

Enlarged diagram

State a claim about the population parameter

A process is claimed to have mean 50 units. A sample mean can differ from 50 through sampling variation even if that population claim is correct. A hypothesis test asks whether the observed result is sufficiently unusual under a specified null model to provide evidence for a chosen alternative.

The null hypothesis, H₀, states the population value used to calculate the test’s sampling distribution. The alternative hypothesis, H₁, states the change being investigated:

Investigation planned before samplingH₀H₁
An increase in the meanμ = 50μ > 50
A decrease in the meanμ = 50μ < 50
Any change in the meanμ = 50μ ≠ 50

Hypotheses concern the population mean μ, not the observed sample mean x̄. Once the sample is collected, x̄ is already a known number. Also, a population mean of 50 does not claim that every individual measurement equals 50.

Choose the alternative and the significance level α before using the sample result. For an exact test, α specifies the null-model probability of the critical region that leads to rejection. It sets the evidence threshold; it is not the probability that H₀ is true. Switching from a two-tailed test to a favourable one-tailed test after seeing the result changes the question and its planned evidence standard.

Standardise with the null mean and sampling spread

For an independent random sample of size n from a normal population with known variance σ², the null hypothesis H₀:μ = μ₀ gives

X bar ∼ N(μ₀,σ²/n).

The test statistic compares the observed mean with the null value in standard-error units:

z obs = (x bar -μ₀)/(σ/square root of n).

Under H₀, its corresponding random statistic is standard normal. Use the claimed μ₀ in the numerator and the sampling spread σ/√n in the denominator. Replacing σ/√n by σ would compare the mean with individual-observation spread.

Suppose the population is normal with known standard deviation 8, and an independent random sample of 64 has mean 52.2. The planned test is H₀: μ = 50 against H₁: μ > 50, at α = 0.05. The standard error is 8/√64 = 1, so

z obs = (52.2-50)/1 = 2.2.

For the upper-tail alternative, the p-value is

p = P(Z ≥ 2.2) ≈ 0.0139034.

This is the probability, assuming the null model, of a result at least as far in the specified upper direction. Since p < 0.05, reject H₀. There is sufficient evidence at the 5% level that the population mean exceeds 50 units, under the stated sampling and population assumptions.

It is not a 1.39% probability that μ = 50. Nor does it establish that the actual population mean is exactly the observed 52.2.

A critical region is the same decision expressed as a boundary

For the planned 5% upper-tail test, the standard normal boundary with lower-tail area 0.95 is z_(0.95) ≈ 1.64485363. The critical value is that boundary; the critical region is the whole set of statistic values leading to rejection:

z obs ≥ z_(0.95).

In this example the equivalent sample-mean boundary is 50 + z_(0.95)(1) ≈ 51.64485363. An observed mean at or above that boundary leads to rejection. The observed 52.2 is in this region, agreeing with the p-value method.

In general, compare p with α: reject when p ≤ α, otherwise fail to reject. Use unrounded probabilities or critical values for a boundary decision. A displayed 0.050 might conceal a value just above or below 0.05. For a continuous exact model, including an exact critical boundary does not alter the region’s probability.

Let the alternative determine the tail

For a normal test statistic, the planned alternative determines what “at least as extreme” means:

Alternativep-value from observed z
μ > μ₀P(Z ≥ z obs)
μ < μ₀P(Z ≤ z obs)
μ ≠ μ₀2P(Z ≥ |z obs|)

The two-tailed formula includes both equally distant tails by symmetry. At the 5% level, each tail gets 2.5%, giving critical region |z obs| ≥ z_(0.975) ≈ 1.95996398. Using the original observed z = 2.2 with this different, prespecified alternative gives p ≈ 0.0278069. It still leads to rejection at 5%, but answers a different population question.

For a lower-tail test at level α, reject for z obs ≤ zα. At 5%, this lower critical value is approximately −1.64485363. The sign and tail must match the alternative, rather than whichever gives the smaller p-value.

Check your understanding 1 Use the direction chosen before sampling

A test was planned as H₀: μ = 50 against H₁: μ > 50, at the 5% level. With the same known standard deviation 8 and sample size 64, the observed mean is now 47.8. Find the test statistic, the planned p-value and the contextual conclusion. Separately, what would the p-value be if a two-tailed alternative had been planned instead?

Show answer

The standard error is 1, so the statistic is −2.2. The planned upper-tail p-value is P(Z ≥ -2.2) ≈ 0.986097. Fail to reject H₀: there is insufficient evidence of an increase in the population mean. A low observed mean does not support the upper-tail alternative.

If a two-tailed alternative had been planned, its p-value would be 2P(Z ≥ 2.2) ≈ 0.0278069. That test would reject at 5%, providing evidence of a change in the mean. Taking the absolute value of z for the upper-tail test would silently replace the planned event and give the wrong p-value. You cannot choose the new alternative after inspecting the result to obtain a preferred decision.

Check your understanding 2 Account for both equally extreme directions

A planned two-tailed test at 5% gives observed z = −1.8. A calculation reports p = 2P(Z ≥ −1.8) ≈ 1.92814. Repair the tail event, calculate the p-value to three significant figures and give the decision. Explain why using only P(Z ≤ −1.8) would also answer a different test.

Show answer

A p-value cannot exceed one. The equally extreme events are Z ≤ -1.8 and Z ≥ 1.8, not two copies of the large area above −1.8. Their total is 2P(Z ≥ 1.8) ≈ 0.0718606, or 0.0719 to three significant figures.

Since p > 0.05, fail to reject: there is insufficient evidence of a difference from the null population mean. The single lower tail is approximately 0.0359303, but it belongs to a lower-tail alternative, not the planned two-tailed test. Each two-tailed critical tail has probability 0.025 here, and |−1.8| is below the critical value about 1.96.

Say what the decision establishes

A small p-value describes incompatibility with the specified null model in the planned direction or directions. It does not measure the probability that H₀ is true, and it does not by itself measure how important a change is in practice.

If p > α, fail to reject H₀: there is insufficient evidence for the stated alternative. Do not turn that into proof that μ equals μ₀, that the process has not changed, or that two individual measurements must agree. State the population, the direction of the claim and the chosen level in the conclusion.

Check your understanding 3 Compare with the chosen level

An upper-tail test of H₀: μ = 30 against H₁: μ > 30 gives p = 0.032. Give the decision at 1% and at 5%, interpreting each in context. Would either decision justify saying “there is a 3.2% probability that the null claim is true”?

Show answer

At 1%, 0.032 > 0.01, so fail to reject: there is insufficient evidence at that level that the population mean exceeds 30. At 5%, 0.032 < 0.05, so reject: there is sufficient evidence of an increase at that level, under the test’s assumptions.

Neither gives the probability that the null hypothesis is true. The p-value is calculated assuming the null model; it does not reverse that condition. Comparing the levels explains their different evidence thresholds, but a real test’s level must be chosen in advance rather than selected afterward to force a decision.

Check your understanding 4 Keep both boundaries and the decision precision

An independent random sample of 100 comes from a normal population with known standard deviation 10. Before sampling, a two-tailed test of H₀: μ = 20 against H₁: μ ≠ 20 was planned at 5%. Find both critical sample-mean boundaries to three decimal places. Then decide separately for observed means 21.95998 and 21.95995, using unrounded values. Why could a displayed p-value of 0.0500 be insufficient for deciding?

Show answer

The standard error is 10/√100 = 1. Split the planned 5% region equally: each tail has probability 0.025. The two sample-mean boundaries are 20-z_(0.975) and 20 + z_(0.975), approximately 18.040 and 21.960 to three decimal places. These are boundaries, not the full critical region: rejection occurs at or below the exact lower boundary, or at or above the exact upper boundary.

The unrounded upper boundary is about 21.9599639845. The observed 21.95998 lies above it, so reject H₀. The observed 21.95995 lies below it and above the lower boundary, so fail to reject. Both results are close to a boundary; neither decision establishes the population mean’s exact value.

Their two-tailed p-values are about 0.0499981 and 0.0500016, respectively. Both display as 0.0500 to three significant figures. Comparing a rounded p-value with 0.05, or treating the displayed boundary 21.960 as exact, could erase the distinction. Use the unrounded probability or boundary, then report the result at the requested precision.

Use an estimated spread only with its approximation

For a sufficiently large independent random sample from a finite-variance population, the Central Limit Theorem can justify an approximately normal sample mean even when the individual population is not normal. If σ² is unknown, estimate it with

s² = (∑ x²-(∑ x)²/n)/(n-1)

and use estimated standard error s/square root of n. The statistic

z obs = (x bar -μ₀)/(s/square root of n)

then supplies a large-sample approximate normal test. The computed ratio is the observed statistic; the approximation is treating its null distribution as standard normal. It is not made exact by the calculator’s decimal places.

If the estimated standard deviation s is zero, this standardisation cannot be used: its denominator is zero. Identical recorded values do not establish that the population has no variation. Check the measurement resolution and model assumptions rather than reporting an infinite statistic or treating an undefined ratio as evidence.

A small sample from a normal population with unknown variance does not meet the known-variance exact normal-test conditions. Simply replacing σ by s does not make its standardised statistic exactly standard normal. Likewise, a large dependent or systematically biased sample does not acquire a valid test just by using s or citing n ≥ 30.

Try it yourself 1

Investigate a process’s cycle time

Minimal support

Problem

Before collecting data, an engineer plans a 1% test of the claim that a process’s mean cycle time is 30 seconds, against the alternative that it is shorter. A random sample of 64 cycle times represents the process population. Treat the observations as independent, with a common finite-variance distribution. Its shape and population variance are unknown; the sample is sufficiently large for a normal approximation.

For d = x − 30, the sample summaries are Σd = −96 and Σd² = 1152. Carry out the planned test, including the estimated population variance, standard error, statistic, p-value, critical statistic value and contextual conclusion. Explain whether using the same 64 readings during one unmodelled common disturbance would preserve the justification.

Write your answer, then compare it with the solution

Hints

Hint 1

Identify which population direction is being investigated

Translate “shorter” into a claim about the population mean. Decode the mean and estimate the population variance from the centred summaries, then decide which spread and tail belong to that claim.

Show full solution
  1. State the population claim and recover the sample statistics

    Method

    Use H₀: μ = 30 and H₁: μ < 30, where μ is the mean cycle time in seconds.

    Reason

    The direction and 1% level were set before sampling; the sample summaries are coded around 30 but are not population parameters.

    Working

    Answer

    x bar = 30-96/64 = 28.5 seconds. The unbiased population-variance estimate is s² = [1152-(-96)²/64]/63 = 1008/63 = 16 seconds squared. Thus s = 4 seconds and the estimated standard error is 4/square root of 64 = 0.5 seconds.
  2. Calculate the planned lower-tail probability

    Method

    Standardise the observed mean using the null mean and estimated standard error.

    Reason

    The large-sample and independence assumptions support an approximate normal test with estimated spread.

    Working

    Answer

    z obs = (28.5-30)/0.5 = -3. The lower-tail p-value is P(Z ≤ -3) ≈ 0.00134990. The 1% lower critical value is z_(0.01) ≈ -2.32634787; the observed statistic is inside the critical region.
  3. Conclude within the sampling model

    Method

    Reject H₀ at the planned 1% level and review the assumptions.

    Reason

    The approximate p-value is below 0.01 and the test addresses a shorter population mean, rather than an exact value for that mean or an explanation of its cause.

    Working

    Answer

    There is sufficient evidence at the 1% level that the process’s population mean cycle time is below 30 seconds, under the stated model. The test does not establish that the population mean is exactly 28.5 seconds. A common unmodelled disturbance could make the readings dependent and fail to represent the intended process population. Keeping n = 64 would not preserve the independent-sample standard error or validate the same test in that changed setting.

Keep track of this lesson

Mark the lesson done when you have worked through it.

Lesson progress is optional and kept on this device.

Your lesson mark records your own study. Checks are kept separately in My Learning.