Porisma

Hypothesis tests for a mean

Learn one idea at a time

Choose a unit. Each has worked examples and practice.

  1. Set up the test

    Choose hypotheses, a tail and a statistic whose assumptions fit the problem.

  2. Use a critical region

    Interpret significance across repeated samples and allocate the correct rejection tails.

  3. Use a p-value

    Compare the observed tail probability with significance and reconcile both methods.

  4. Work backwards from a test

    Recover an unknown from a stated rejection or non-rejection conclusion.

Read or print the complete chapter

By the end, you can

  • Formulate hypotheses before examining a result
  • Choose one-sided or two-sided evidence
  • Interpret p-values and conclusions in context

4 focused units · about 30 minutes for the full chapter. Allow extra time for practice.

The central idea

A test asks how unusual the observed statistic would be if the null model were true. State H₀, H₁ and significance level first. For a normal population with known variance, the standardised sample mean uses z=(xˉ−μ0)/(σ/n)z=(\bar x-\mu_0)/(\sigma/\sqrt n). A p-value measures a tail probability under H₀, not the probability that H₀ is true.

Organise a z-test around the claim

The source’s eight steps are: define X and population mean μ; state the distributions of X and the sample mean under H0H_0 (including CLT justification if needed); state hypotheses; state the test statistic; state α; specify rejection using a p-value or critical value; calculate; conclude in context.

Its scenario assumes normal masses with variance 80 kg280\ \mathrm{kg}^2, samples 100 men and observes mean 77.2 kg. The claim “more than 75 kg” at 5% gives H0:μ=75H_0:\mu=75, H1:μ>75H_1:\mu>75 and Xˉ∼N(75,80/100)\bar X\sim N(75,80/100) under H0H_0, with an upper-tail test.

Here μ0=75\mu_0=75 is the hypothesised population mean, not the observed sample mean 77.2; the source paragraph calling μ₀ a sample mean is inaccurate. A test assesses how unusual the observation is under the null model, not the probability that H0H_0 is true. The full mass scenario is worked below; the later examples below apply the large-sample approximation and reverse test decisions to find unknowns.

Why take a sample?

The source contrasts testing a whole population with drawing a practical sample. Its introductory contexts are mean filtration efficiency in product-quality checks and a school mean-height claim of 1.6 metres assessed with a sample of 50 students.

A sample can supply evidence about a population parameter while leaving uncertainty; it cannot prove or disprove a claim with certainty.

The source also lists one-sample, two-sample and paired t-tests, ANOVA and chi-squared tests as examples of other test families. This chapter concentrates on a population mean using a z-test, with the exact or approximate reference model justified for the case.

Open the chapter exploration

Worked example

A machine is intended to fill bottles to a population mean of 500 ml. Independent fills are normally distributed with known standard deviation 8 ml. A random sample of 16 bottles has mean 504 ml. Before taking the sample, the inspector chose a 5% test for an increase.

Define μ\mu as the mean fill volume and state H0:μ=500H_0:\mu=500, H1:μ>500H_1:\mu>500. Under H0H_0, Xˉ∼N(500,82/16)=N(500,4)\bar X\sim N(500,8^2/16)=N(500,4) exactly.

The standard error is 2 ml, so the observed z=(504−500)/2=2z=(504-500)/2=2.

The upper-tail probability is approximately 0.0228. Reject at 5%: there is evidence that the population mean fill exceeds 500 ml.

The test concerns the mean, not whether every bottle exceeds 500 ml.

A p-value is calculated under the null model. It is neither the probability that the claim is true nor a measure of the practical size of the difference.

Check your understanding

A supplier claims that the population mean lifetime of its lamps is 1200 hours. An inspector suspects a decrease and chooses a 5% test before collecting data. Lifetimes are normally distributed with known standard deviation 80 hours; 25 independent randomly selected lamps have mean lifetime 1176 hours. Set up and carry out the test, explain the p-value in context, and state what the conclusion can and cannot establish.

Full mastery checklist
Complete source practice map

Practice questions

26 examples and practice questions, in 5 sections.

Ready to try this on your own?

For “Hypothesis tests for a mean”, try a question without the working and explain your method. This records your confidence, saved in this browser only.

Ready to practise?Chapter practice