Lesson 9 of 23 · All lessons in this module
  1. The central limit theorem
  2. The standard error of the sample meanVideo lesson
  3. Confidence intervals for the mean
  4. Value at risk: a one-sided confidence interval
  5. Populations, samples and sampling error
  6. Stratified and cluster sampling
  7. Good estimators, and the CLT across sampling designs
  8. Convenience and judgmental sampling, and choosing a method
  9. The four steps and stating the hypotheses
  10. Type I and Type II errors, significance and powerVideo lesson
  11. Critical values, p-values and the decision ruleVideo lesson
  12. p-values and p-hacking
  13. Testing a single mean
  14. Two means: independent vs paired samplesVideo lesson
  15. Testing variances: chi-square and FVideo lesson
  16. The t-test for a Pearson correlation
  17. Sample size, p-values and many correlations at once
  18. Parametric vs nonparametric tests
  19. The Spearman rank correlation testVideo lesson
  20. Contingency tables and the chi-square test of independenceVideo lesson
  21. Interpreting the result: standardized residuals and mosaics
  22. Choosing the test: four steps and a map of every test
  23. Integrated cases: testing whether a new strategy beats the old one

This lesson is part of the 2027 curriculum. You are following the 2026 curriculum, where it is not taught in this form. Switch if you are sitting the exam under the 2027 curriculum.

Free lesson: the first lesson of every module is open to everyone.

Lesson 9 of 23 · 13 min

The four steps and stating the hypotheses

A hypothesis test asks whether a sample result lies so far from a claimed population value that chance alone is a poor explanation.

In short

  • A hypothesis is a claim about a population parameter (a mean, a variance). We judge it with a sample statistic.
  • The null hypothesis H0H_0 is presumed true until the data argue strongly against it. It always holds the equality: =, ≤ or ≥.
  • The alternative hypothesis HaH_a holds the suspected or hoped-for condition. Together the two cover every possible value of the parameter.
  • Four steps: state the hypotheses → identify the test statistic and its distribution, and compute it → specify the significance level → establish the decision rule and decide.
  • The only outcomes are reject H0H_0 or fail to reject H0H_0. A test never proves the null.

What a hypothesis test is for

Statistical inference means judging a whole population from a sample. It has two branches. Estimation gives point estimates and confidence intervals (see the confidence-interval lesson earlier in this module). Hypothesis testing checks whether the sample is consistent with one specific claimed value.

A hypothesis is a statement about one or more populations, written in terms of population parameters such as μ\mu or σ2\sigma^2. We never test a sample value: the sample mean is known exactly, so there is nothing to test about it.

The core question never changes. If the claimed value were true, how surprising would our sample be? A small gap between the sample statistic and the claim is easily explained by sampling luck. A large gap is not, and we then reject the claim.

The conclusion is about probabilities, never certainty. A test can only say whether the evidence is strong enough at a level of risk we chose in advance.

Think of a courtroom. The defendant (the null) is presumed innocent. The prosecutor (the analyst) must bring enough evidence to convict (reject). A not-guilty verdict does not prove innocence; it says the evidence fell short. That is exactly what 'fail to reject' means.

Stating the null and the alternative

The null hypothesis H0H_0 is the claim being tested. It stands until the sample gives convincing evidence against it, and it always contains the equal sign: =, ≤ or ≥.

The alternative hypothesis HaH_a is what we conclude if the null is rejected. Analysts put the condition they suspect or hope to show in the alternative, because rejecting the null is a much stronger statement than failing to reject it.

The two must be mutually exclusive (no value belongs to both) and collectively exhaustive (every possible value belongs to one of them). So if H0:μ≤5%H_0: \mu \leq 5\%, the alternative must be Ha:μ>5%H_a: \mu > 5\%.

The wording of the question sets the form. 'Different from' gives a two-sided (two-tailed) test. 'Greater than', 'exceeds', 'less than' or 'below' give a one-sided (one-tailed) test. A one-sided test reflects a firmer belief about the direction of the effect.

The three forms of a test of a mean
Question askedNullAlternativeRejection region
Is μ\mu different from μ0\mu_0?H0:μ=μ0H_0: \mu = \mu_0Ha:μ≠μ0H_a: \mu \neq \mu_0Both tails
Is μ\mu greater than μ0\mu_0?H0:μ≤μ0H_0: \mu \leq \mu_0Ha:μ>μ0H_a: \mu > \mu_0Right tail only
Is μ\mu less than μ0\mu_0?H0:μ≥μ0H_0: \mu \geq \mu_0Ha:μ<μ0H_a: \mu < \mu_0Left tail only
00.10.20.30.4-4-2024t-statistic (8 df)Density1.860t = 2.20Fail to rejectReject: right 5%
For Ha:μ>2%H_a: \mu > 2\% (the retailer's claim) the whole 5% rejection region sits in the right tail. The sample's t of 2.20 lands beyond 1.860, so the null is rejected; a large negative t could never reject this null.

The four steps

The 2027 reading frames every test in four steps. Learn the order: exam questions ask which step a given task belongs to, and the common slip is putting the calculation in the wrong place.

Older materials split the same logic into six steps by separating 'calculate the statistic' from step 2 and 'decide' from step 4. Nothing changes except the numbering. Either way, the hypotheses, the significance level and the shape of the decision rule are fixed before the data are examined, which stops an analyst from picking a level or a tail that happens to give the answer they want.

  • Step 1: State the hypotheses. Write H0H_0 and HaH_a in terms of the population parameter.
  • Step 2: Identify the test statistic and its distribution, and compute it. Choose the formula that fits what is tested (one mean, two means, a variance…), note its distribution and degrees of freedom, and calculate it from the sample.
  • Step 3: Specify the significance level α\alpha: the risk of rejecting a true null you are willing to take, typically 10%, 5% or 1%.
  • Step 4: Establish the decision rule and decide. Turn α\alpha into critical values, compare the statistic with them (or the p-value with α\alpha), and say in plain words what the result means.
1. HypothesesH₀ and Hₐ on a2. Teststatisticidentify, find3. Significanceαe.g. 10%, 5%, 1%4. Decisionrulecompare, reject
The four steps in the 2027 reading. The statistic is computed inside step 2, and step 4 both sets the critical value and applies it.

Choosing the test statistic

A test statistic is a number calculated from the sample that, together with the decision rule, decides whether we reject the null. Most share one shape: (sample statistic − hypothesised value) ÷ standard error. It measures how many standard errors the sample result sits from the claim.

Which formula you use depends on what is being tested. The table lists the tests in this module; each gets its own lesson. Two more tests from the same family, for a correlation and for independence in a contingency table, come later in this module.

Which test for which question
What is testedStatisticDistributionDegrees of freedom
One meant=Xˉ−μ0s/nt = \frac{\bar X - \mu_0}{s/\sqrt{n}}tn−1n - 1
Difference between two means (independent samples)Pooled ttn1+n2−2n_1 + n_2 - 2
Mean of differences (paired samples)t=dˉ−μd0sd/nt = \frac{\bar d - \mu_{d0}}{s_d/\sqrt{n}}tn−1n - 1
One varianceχ2=(n−1)s2σ02\chi^2 = \frac{(n-1)s^2}{\sigma_0^2}Chi-squaren−1n - 1
Two variances (independent samples)F=s12s22F = \frac{s_1^2}{s_2^2}Fn1−1n_1 - 1 and n2−1n_2 - 1

Formula

General form of a test statistic
Test statistic=Sample statistic−Hypothesised valueStandard error of the sample statistic\text{Test statistic} = \dfrac{\text{Sample statistic} - \text{Hypothesised value}}{\text{Standard error of the sample statistic}}

Measures the distance between the sample result and the claim in standard-error units. The further out, the stronger the evidence against H0H_0.

Worked examples

Example 1 Writing the hypotheses

A credit analyst suspects that the mean loan-loss rate of Danish regional banks has risen above 1.5%. Which hypotheses should she test, and where is the rejection region?

Example 2 Matching the test to the question

Name the test statistic and degrees of freedom. (a) 30 monthly returns: is the mean return zero? (b) 20 weekly returns: is volatility above 2%? (c) Two unrelated samples of 12 and 18 firms: are mean margins equal? (d) Two independent samples of 25 and 31 returns: are the variances equal?

Example 3 All four steps in one test

A Swedish retailer claims a new strategy lifted mean quarterly sales growth above 2%. Over 9 quarters growth averaged 3.1% with a sample standard deviation of 1.5%. Test the claim at 5% (one-tailed critical t with 8 df = 1.860).

On the exam

Expect questions that turn a sentence into H0H_0 and HaH_a, ask which step a task belongs to, or ask which statistic and degrees of freedom fit a situation.

  • Putting the analyst's belief in the null. The null is what you try to reject; the suspected condition goes in HaH_a.
  • Writing a null without equality, such as H0:μ>0H_0: \mu > 0. The null always holds =, ≤ or ≥.
  • Saying the null is 'accepted' or 'proved'. The only outcomes are reject or fail to reject.
  • Treating step 2 as 'identify only' and leaving the calculation for later. In the four-step frame the statistic is computed in step 2; step 4 compares it with the critical value.

Check yourself

  1. Q1An analyst wants to test whether mean excess returns have fallen below 1%. Which hypotheses are most appropriate?

  2. Q2Which statement about the null and alternative hypotheses is most accurate?

  3. Q3Two unrelated samples of 14 and 20 funds are used to test whether their mean returns differ. The degrees of freedom are:

  4. Q4In the four-step process, the test statistic is computed in:

  5. Q5Sixteen returns have a mean of 2.4% and a standard deviation of 1.6%. The t-statistic for H0:μ=2%H_0: \mu = 2\% is closest to:

  6. Q6A test fails to reject H0:μ=0H_0: \mu = 0. The most accurate conclusion is that:

0/6Check yourself

Answer the 6 questions: +10 XP for each one you get right first time.

Liked this lesson? Get the rest free for 7 days

Create a free account to open the other 22 lessons in this module, with videos, flashcards that come back before you forget them, the question bank and full mocks. No card needed.