Skip to content

Search topics

Practise for free Sign in

Worked example

Statistical hypothesis tests worked example

In one sentence

6 worked examples on Statistical hypothesis tests, each solved step by step.

Last checked Source: Statistical hypothesis tests Source: Statistical hypothesis tests qualifications.pearson.com (opens in a new tab)

Statistical hypothesis tests for your study of A-level maths: where it comes from and what it covers.

Related pages include Secant, cosecant and cotangent, Solve trigonometric equations, Trigonometric proof and Graphs of trigonometric functions.

Points to check

  • Taking the first value above 5% instead of the last one at or below it.
  • Writing 'accept H₀'; a non-significant result only fails to reject it.

Study brief

  • Statistical hypothesis testing involves using a sample to make inferences regarding a population parameter p. Learners must understand various components of this process, including the null hypothesis, the alternative hypothesis, and the significance level. The significance level represents the probability of incorrectly rejecting a hypothesis. During testing, one might use a test statistic, a critical value, or a p-value, which will be provided. Tests can be designed as a 1-tail test or a 2-tail test, involving either a critical region or an acceptance region. Specifically, one may conduct a test for a proportion within a binomial distribution. In the binomial model, the expected value is calculated as np. Students must also be able to interpret results in context. Additionally, regarding correlation, the correlation coefficient r satisfies the condition that its absolute value is less than or equal to 1. When r equals ±1, all data points lie on a straight line. While understanding binomial or Normal distributions is necessary for selecting appropriate models, students are not expected to perform significance tests other than those specified in Section 5.

Worked examples

Example 1

Problem

X ~ B(25, 0.5) under H₀: p = 0.5. Find the critical region for a one-tailed test of H₁: p < 0.5 at the 5% level.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Find the largest c with P(X ≤ c) ≤ 0.05.
  2. 2 P(X ≤ 7) = 0.0216 ≤ 0.05 but P(X ≤ 8) = 0.0539 > 0.05.
  3. 3 Critical region: X ≤ 7.

Answer

X ≤ 7 (actual significance 2.16%)

Example 2

Problem

X ~ B(20, 0.3) under H₀: p = 0.3. Find the critical region for a one-tailed test of H₁: p < 0.3 at the 5% level.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Find the largest c with P(X ≤ c) ≤ 0.05.

    Why: The critical region is the set of values unlikely under H₀.

  2. 2 P(X ≤ 2) = 0.0355 ≤ 0.05 but P(X ≤ 3) = 0.1071 > 0.05.

    Why: Step up until the 5% limit is passed.

  3. 3 Critical region: X ≤ 2.

    Why: Report the region and the actual significance level.

Answer

X ≤ 2 (actual significance 3.55%)

Example 3

Problem

X ~ B(30, p). Test H₀: p = 0.5 against H₁: p < 0.5 at the 5% level, given x = 9 observed successes.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Under H₀, X ~ B(30, 0.5). The test is one-tailed.
  2. 2 p-value = P(X ≤ 9) = 0.0214.
  3. 3 Compare 0.0214 with 0.05: smaller.
  4. 4 Conclusion: reject H₀; there is sufficient evidence that p < 0.5.

Answer

p-value 0.0214, reject H₀

Example 4

Problem

X ~ B(15, p). Test H₀: p = 0.4 against H₁: p > 0.4 at the 5% level, given x = 11 observed successes.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Under H₀, X ~ B(15, 0.4). The test is one-tailed.
  2. 2 p-value = P(X ≥ 11) = 0.0093.
  3. 3 Compare 0.0093 with 0.05: smaller.
  4. 4 Conclusion: reject H₀; there is sufficient evidence that p > 0.4.

Answer

p-value 0.0093, reject H₀

Example 5

Problem

X ~ B(25, p). Test H₀: p = 0.2 against H₁: p > 0.2 at the 5% level, given x = 9 observed successes.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Under H₀, X ~ B(25, 0.2). The test is one-tailed.
  2. 2 p-value = P(X ≥ 9) = 0.0468.
  3. 3 Compare 0.0468 with 0.05: smaller.
  4. 4 Conclusion: reject H₀; there is sufficient evidence that p > 0.2.

Answer

p-value 0.0468, reject H₀

Example 6

Problem

X ~ B(20, p). Test H₀: p = 0.3 against H₁: p < 0.3 at the 5% level, given x = 3 observed successes.

Solution, step by step

Try it yourself first, then open a step to see why it works.

  1. 1 Under H₀, X ~ B(20, 0.3). The test is one-tailed.

    Why: H₁ gives the direction.

  2. 2 p-value = P(X ≤ 3) = 0.1071.

    Why: Use the binomial cumulative function.

  3. 3 Compare 0.1071 with 0.05: larger.

    Why: Reject H₀ if the p-value is below the significance level.

  4. 4 Conclusion: do not reject H₀; there is insufficient evidence that p < 0.3.

    Why: Say it in context, not just 'reject'.

Answer

p-value 0.1071, do not reject H₀

Practise for free

Test yourself with exam-style questions and see why each answer is right or wrong.

Start practising
Free practice, no card Start without an account Sources checked Every fact names its official source
Works on any device Phone, tablet or desktop
Contact us Questions or a correction