How a hypothesis test works: four steps from claim to decision
A test has four steps: state H₀ (with the equals sign) and the alternative; pick the test statistic and its distribution; set the significance level α; then reject H₀ if the statistic is beyond the critical value. A large test statistic is bad news for the null.
Before this: The central limit theorem and the standard error of the mean
On the exam
- Explain hypothesis testing and its components, including statistical significance, Type I and Type II errors, and the power of a test; construct appropriate hypothesis tests; and interpret the results
Explain hypothesis testing and its components and construct the right test. Expect hypotheses to write from a claim, the choice of t, Z, chi-square or F, one- versus two-tailed critical values, and the decision 'reject' or 'fail to reject'.
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.
You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.
What is a hypothesis test?
A hypothesis is a statement about a population that we can check against data, such as “this strategy earns a positive excess return”. Hypothesis testing is the procedure that uses a sample to decide whether such a statement is plausible or whether the sample is too far from it to be chance. It answers one question: is the result real, or just sampling noise?
What are the four steps?
Memorize
Every test follows the same path, whatever statistic it uses.
- State the null and alternative hypotheses.
- Identify the test statistic and its distribution, and compute it.
- Specify the level of significance, α (the confidence level is 1 − α).
- Establish the decision rule: reject if the test statistic is beyond the critical value; otherwise fail to reject it.
- 1. State the hypotheses Memorize H₀ with the equals sign; Hₐ is the claim
- 2. Identify the test statistic Memorize and its distribution; compute it
- 3. Specify the significance level Memorize α; confidence level 1 − α
- 4. Establish the decision rule Memorize reject H₀ if the statistic is beyond the critical value
What are the null and the alternative?
The null hypothesis () is the statement we try to reject. It is assumed true until the sample gives convincing evidence otherwise, and it always contains the equals sign (=, ≤ or ≥). The alternative hypothesis () is the claim to be proven, and the one the data support if we reject the null. The null is the status quo, no effect or no difference. The two are mutually exclusive and together cover every possibility.
The practical rule: what you hope to show goes in . If an analyst suspects a fund beats 8%, the claim “above 8%” is the alternative, and the null is “at most 8%”.
Exam tip Write first, straight from the claim. Then is whatever is left over, with the equals sign.
What kinds of test are there?
Tests fall into three families, by what they compare.
- Against a known value Memorize a mean or variance vs a target, such as an 8% return
- Two unknown values Memorize two means or two variances, such as two funds
- Association Memorize a relationship, such as a correlation or independence
- Tests against a known value compare a mean or variance with a target: “does the fund’s mean return beat its 8% target?”
- Tests comparing two unknown values compare two means or two variances: “is fund A more volatile than fund B?”
- Tests of association ask whether a relationship exists: “do bond returns move with changes in the policy rate?”
One-tailed or two-tailed?
The wording of sets the number of tails. A two-tailed test asks whether the parameter is different from the hypothesized value in either direction, so the rejection region is split between both tails. A one-tailed test asks about one direction only and puts all of the rejection region in that tail: the right-tail test when the claim is “greater than”, the left-tail test when it is “less than”.
- Two-tailed test Memorize the claim is "different from"
- H₀: μ = μ₀ versus Hₐ: μ ≠ μ₀ Memorize α split across both tails; z at 5%: ±1.96
-
- One-tailed test, right Memorize the claim is "greater than"
- H₀: μ ≤ μ₀ versus Hₐ: μ > μ₀ Memorize all of α in the right tail; z at 5%: +1.645
-
- One-tailed test, left Memorize the claim is "less than"
- H₀: μ ≥ μ₀ versus Hₐ: μ < μ₀ Memorize all of α in the left tail; z at 5%: −1.645
-
| Form | Example claim | Hypotheses |
|---|---|---|
| Right-tail | a fund’s mean return is above its 8% target | : μ ≤ 8%; : μ > 8% |
| Left-tail | a new trading algorithm lowers the average cost per trade | : μ ≥ current cost; : μ < current cost |
| Two-tailed | a share’s beta is different from 1 | : β = 1; : β ≠ 1 |
The one-tailed critical value is smaller in absolute terms than the two-tailed value at the same significance level, which makes a one-tailed test easier to pass in the direction you predicted. That is why the direction must come from the claim, not from the data.
How do you build the test statistic and the decision rule?
Memorize
The test statistic measures how far the sample result is from the hypothesized value, counted in standard errors.
For a mean with an unknown population variance, the statistic follows a t-distribution with n − 1 degrees of freedom (df).
Every test in this module has its own statistic, and each has a lesson. This table is the map.
| Test | Statistic | Degrees of freedom | Order matters? | Lesson |
|---|---|---|---|---|
| Single mean | t = (x̄ − μ₀) ÷ (s ÷ √n) | n − 1 | no | t-tests |
| Single variance | χ² = (n − 1)s² ÷ σ₀² | n − 1 | no | variance tests |
| Difference in means | t (pooled variance) | n₁ + n₂ − 2 | no | t-tests |
| Difference in variances | F = s₁² ÷ s₂² | n₁ − 1 and n₂ − 1 | no | variance tests |
| Paired differences | t = (d̄ − μ₀) ÷ (s_d ÷ √n) | n − 1 | yes | t-tests |
| Correlation | t = r√(n − 2) ÷ √(1 − r²) | n − 2 | yes | correlation test |
| Independence | χ² = ΣΣ(O − E)² ÷ E | (r − 1)(c − 1) | yes | independence test |
The “order matters” column splits the tests in two. An order-independent test treats each sample as a set: shuffle the dates and the statistic does not change. An order-dependent test rests on how observations are paired, so re-pairing them changes the result.
The level of significance (α) is the probability of rejecting a true null that you are willing to accept, usually 5%. It fixes the critical values : the cut-off points that separate the rejection region from the rest. The confidence level is its complement.
The decision rule is the final step. Reject if the statistic falls beyond a critical value. Otherwise fail to reject it.
“Big is bad for the null”: a test statistic far from zero means the data sit badly with . In a two-tailed test, compare the absolute value of the statistic with the critical value; in a one-tailed test, the statistic must also lie in the tail named by .
- Critical-value rule Memorize the test statistic is beyond the critical value
- p-value rule Memorize the p-value is less than α
Exam tip Critical values come from tables or, more often in practice, from software such as a spreadsheet. The p-value lesson shows the functions.
A sample of 36 monthly excess returns has a mean of 0.45% and a standard deviation of 1.20%. For H₀: μ = 0.00%, the t-statistic is closest to:
(0.45% − 0.00%) ÷ (1.20% ÷ √36) = 2.25
Test statistic, t2.25
- (0.45−0)÷(1.2÷36√x)=
√x square root
- 0.45ENTER0−1.2ENTER36g√x÷÷
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Try this 0 of 3
- Keep t = 2.25 on the right tail and pick a significance level at which you fail to reject H₀.
- Switch to two tails at 5% and drag t onto the edge of the rejection region.
- Keep t = 2.25 and switch to a left-tail test. Read the p-value.
t distribution with 35 degrees of freedom, right tail test at α 5%: critical value 1.690. Test statistic 2.25, p-value 0.0154: reject h₀. Reject when the statistic falls in the tail; the p-value is the tail beyond your statistic.
Drag the Test statistic t, tap the chart, or focus the handle and use the arrow keys.
- Rejection region (α 5%)
- p-value 0.0154
Show working
Worked example: 36 monthly excess returns average 0.45% with s = 1.2%. t = 0.45 ÷ (1.2 ÷ √36) = 0.45 ÷ 0.2 = 2.25, with 36 − 1 = 35 degrees of freedom.
Hypotheses for this tail: H₀: μ ≤ 0 against Hₐ: μ > 0.
Decision rule at α = 5%, df 35: reject if t > 1.690.
t = 2.25: inside the rejection region, so reject H₀.
p-value = the area to the right of 2.25 = 0.0154. Below α = 5%, the same decision.
The p-value is the smallest α at which you would reject H₀. It is not the probability that H₀ is true.
- 0.45÷(1.2÷36√x)=2.25
√x square root
- 0.45ENTER1.2ENTER36g√x÷÷2.25
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Display: 2.25
Slide the statistic into the shaded tail and watch the decision flip. Then switch from one-tailed to two-tailed and see the critical value move out.
t or Z?
Use it
When the population standard deviation is unknown, which is almost always, the sample mean follows a t-distribution with n − 1 degrees of freedom; with σ known it is Z. The t-distribution approaches the normal as n grows, so the curriculum uses Z for large samples (n of 30 or more), a known σ or a normal population, and t for small samples (under 30) or an unknown σ. These sample-size rules do not apply to chi-square and F tests.
What does the p-value add?
The p-value is the smallest significance level at which would be rejected. In the example, t = 2.25 with 35 degrees of freedom has a one-tailed p-value of 0.015: reject at 5%, not at 1% (critical value 2.438). Reject whenever p < α. The p-value lesson covers its forms, its misuse (p-hacking) and how to get it from software.
A result that clears the bar is statistically significant : it is unlikely to be chance alone at the chosen level. That says nothing yet about whether it matters in money terms.
Go deeper Statistical versus economic significance
An edge of 0.05% a month can be statistically significant in a long enough sample, yet vanish once trading costs, taxes and the risk of the strategy are counted. After the four steps, ask whether the effect is large enough to act on after costs, and whether it would survive in a different period.
Go deeper Confidence intervals and two-tailed tests agree
A two-tailed test at 5% rejects : μ = μ₀ exactly when μ₀ lies outside the 95% confidence interval for μ. The two tools make the same decision from different angles: the interval shows the range of plausible values, the test gives a yes or no.
Go deeper z or t? A quick example
Eighteen monthly returns of a new fund, σ unknown, returns roughly normal: use t with 17 degrees of freedom. The t critical values are larger than the z values for small samples, so the test is more cautious.
Memorize this
Memorizez critical values
| Significance level α | One-tailed | Two-tailed |
|---|---|---|
| 10% | 1.28 | 1.645 |
| 5% | 1.645 | 1.96 |
| 1% | 2.33 | 2.576 |
Memory hook Two-tailed at α is one-tailed at α ÷ 2. So the two-tailed 5% value (1.96) is the one-tailed 2.5% value, and 1.645 appears twice: one-tailed 5% and two-tailed 10%. 2.33 and 2.576 are the values the curriculum prints.
Know it cold One-tailed values are smaller than two-tailed values at the same α. Smaller α pushes the critical value farther out.
MemorizeDecision rules and wording
| Item | Rule |
|---|---|
| Reject when | statistic beyond the critical value, or p-value less than |
| Equals sign | always in (, or ) |
| Claim to prove | goes in |
| Confidence level | |
| p-value | smallest at which is rejected |
| Wording | "reject" or "fail to reject", never "accept" |
Memory hook The null is innocent until proven guilty: the evidence either convicts it or fails to convict it. It is never declared proven innocent.
Know it cold A p-value is not the probability that is true.
MemorizeWhich test statistic?
| Test | Statistic | Degrees of freedom | Order matters? |
|---|---|---|---|
| Single mean | t = (x̄ − μ₀) ÷ (s ÷ √n) | n − 1 | no |
| Single variance | χ² = (n − 1)s² ÷ σ₀² | n − 1 | no |
| Difference in means | t (pooled variance) | n₁ + n₂ − 2 | no |
| Difference in variances | F = s₁² ÷ s₂² | n₁ − 1 and n₂ − 1 | no |
| Paired differences | t = (d̄ − μ₀) ÷ (s_d ÷ √n) | n − 1 | yes |
| Correlation | t = r√(n − 2) ÷ √(1 − r²) | n − 2 | yes |
| Independence | χ² = ΣΣ(O − E)² ÷ E | (r − 1)(c − 1) | yes |
Memory hook Means use t, one variance uses chi-square, two variances use F; relationships use t (correlation) or chi-square (independence).
Know it cold Order-independent: shuffling the dates leaves the statistic unchanged. Order-dependent: the pairing of observations is the point.
- 1. State the hypotheses Memorize H₀ with the equals sign; Hₐ is the claim
- 2. Identify the test statistic Memorize and its distribution; compute it
- 3. Specify the significance level Memorize α; confidence level 1 − α
- 4. Establish the decision rule Memorize reject H₀ if the statistic is beyond the critical value
- Against a known value Memorize a mean or variance vs a target, such as an 8% return
- Two unknown values Memorize two means or two variances, such as two funds
- Association Memorize a relationship, such as a correlation or independence
- Two-tailed test Memorize the claim is "different from"
- H₀: μ = μ₀ versus Hₐ: μ ≠ μ₀ Memorize α split across both tails; z at 5%: ±1.96
-
- One-tailed test, right Memorize the claim is "greater than"
- H₀: μ ≤ μ₀ versus Hₐ: μ > μ₀ Memorize all of α in the right tail; z at 5%: +1.645
-
- One-tailed test, left Memorize the claim is "less than"
- H₀: μ ≥ μ₀ versus Hₐ: μ < μ₀ Memorize all of α in the left tail; z at 5%: −1.645
-
- Critical-value rule Memorize the test statistic is beyond the critical value
- p-value rule Memorize the p-value is less than α
Quick example
A sample mean of 7.2% against a hypothesized 6%, with a standard error of 0.8%: (7.2 − 6) ÷ 0.8 = 1.50 standard errors above the null.
- (7.2−6)÷0.8= 1.5
- 7.2ENTER6−0.8÷ 1.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
16 returns average 1.5% with s = 3%. For H₀: μ = 0.5%, t = (1.5 − 0.5) ÷ (3 ÷ √16) = 1 ÷ 0.75 = 1.33, with 15 degrees of freedom.
- (1.5−0.5)÷(3÷16√x)= 1.3333
√x square root
- 1.5ENTER0.5−3ENTER16g√x÷÷ 1.3333
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
A 1% significance level is a 99% confidence level.
How it is asked
-
Write the hypotheses from a claim
An analyst wants to show a fund beats 8%. Which hypotheses?
Claim in Hₐ: H₀: μ ≤ 8%; Hₐ: μ > 8%. Traps: two-tailed with "=", or the claim placed in the null.
-
Compute t and compare
64 observations, mean 1.3, s 3.2, H₀: μ = 0. Statistic?
1.3 ÷ (3.2 ÷ √64) = 3.25. Traps: 0.41 (forgot √n), 26.00 (divided by n).
-
Read a p-value
p-value = 0.02. Conclusion?
Reject at 5%, not at 1%. Trap: "2% chance H₀ is true".
-
Negative statistic, two-tailed
Two-tailed 5% z-test, z = −2.31. Conclusion?
|−2.31| is greater than 1.96, so reject. Compare the absolute value.
-
Pick the statistic
20 observations, σ unknown, test of a mean.
t with 19 degrees of freedom. Z is the trap; chi-square tests a variance.
Exam traps
- Putting the claim you want to prove in the null. The claim goes in the alternative; the null keeps the equals sign.
- Using a two-tailed critical value for a one-tailed test, or the reverse. Check the sign in Hₐ first.
- Saying 'accept H₀'. The correct wording is 'fail to reject', because a sample can never prove the null.
- Reading the p-value as the probability that H₀ is true. It is the probability of a result at least this extreme if H₀ were true.
- Applying 'compare the absolute value' to a one-tailed test: the statistic must also be in the tail named by Hₐ.
Checkpoint
6 exam-style questions. About 90 seconds each.
1An analyst wants to show that a fund's mean return exceeds 6%. The hypotheses are best stated as:
2A test of 49 daily returns gives a mean of 1.1 basis points and a standard deviation of 2.4 basis points. For H₀: μ = 0, the t-statistic is closest to:
3A test statistic has a p-value of 0.03. The analyst should most appropriately:
4In a two-tailed z-test at the 5% level (critical values ±1.96), the test statistic is −2.05. The analyst should:
5An analyst tests whether the mean monthly return of a new fund exceeds 0.5%, using 15 monthly returns. The returns are roughly normal and the population standard deviation is unknown. The most appropriate test statistic is a:
6Which of the following tests is order-dependent, so that its result changes if the observations are re-paired at random?
Key takeaways
- Four steps: hypotheses, test statistic, significance level, decision rule.
- Claim goes in Hₐ; the equals sign goes in H₀.
- Test statistic = (sample statistic − hypothesized value) ÷ standard error.
- Reject if the statistic is beyond the critical value, or if the p-value is less than α.
- Statistical significance is not economic significance.
Quick example
A sample mean of 7.2% against a hypothesized 6%, with a standard error of 0.8%: (7.2 − 6) ÷ 0.8 = 1.50 standard errors above the null.
- (7.2−6)÷0.8= 1.5
- 7.2ENTER6−0.8÷ 1.5
ENTER enter (on the HP, puts the number on the stack)
Quick example
16 returns average 1.5% with s = 3%. For H₀: μ = 0.5%, t = (1.5 − 0.5) ÷ (3 ÷ √16) = 1 ÷ 0.75 = 1.33, with 15 degrees of freedom.
- (1.5−0.5)÷(3÷16√x)= 1.3333
√x square root
- 1.5ENTER0.5−3ENTER16g√x÷÷ 1.3333
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
A 1% significance level is a 99% confidence level.
All Quantitative Methods formulas, every lesson
Practice exam-style questions on Estimation and Hypothesis Testing
Questions about this lesson?
Where this comes back
- Type I and Type II errors and the power of a test Estimation and Hypothesis Testing
- t-tests of a mean, a difference in means and paired differences Estimation and Hypothesis Testing
- P-values, p-hacking and critical values from software Estimation and Hypothesis Testing
Questions candidates ask
What is a p-value in simple terms?
It is the probability of getting a sample result at least as extreme as yours if the null hypothesis were true. Equivalently, it is the smallest significance level at which you could reject the null. A small p-value means the result would be rare under the null.
How do you know whether to use a one-tailed or two-tailed test?
Look at the claim. If it says 'greater than' or 'less than', put it in the alternative and use a one-tailed test with all of α in that tail. If it says 'different from' or 'changed', use a two-tailed test with α split between both tails.
Why do we 'fail to reject' rather than 'accept' the null hypothesis?
A sample that fails to show a difference has not proved there is none. The evidence may simply be too thin. The test can reject the null with a stated error risk, but it can never establish that the null is true, so we say 'fail to reject'.
Spotted an error? Tell us and we will fix it.