Hypothesis Testing for Mean (One Sample) (DP IB Applications & Interpretation (AI): HL): Revision Note

Dan Finlay

Written by: Dan Finlay

Reviewed by: Roger B

Updated on

One-sample z-tests

What is a one-sample z-test?

  • A one-sample z-test is used to test the mean (μ) of a normally distributed population

    • You use a z-test when the population variance (σ²) is known

  • The mean, x¯, of a sample of size n is calculated, and a normal distribution is used to test the test statistic

  • x¯ can be used as the test statistic

    • In this case you would use the distribution X¯~N(μ, σ2n)

      • Remember when using this distribution that the standard deviation is σn

  • z=x¯μσn can be also used as the test statistic

    • In this case you would use the distribution Z~N(0,12)

      • This is a more old-fashioned approach but your GDC still might tell you the z-value when you do the test

      • You will not need to use this method in the exam as your GDC should be capable of doing the other method

What are the steps for performing a one-sample z-test on my GDC?

  • STEP 1
    Write the hypotheses

    • H0 : μ = μ0

      • Clearly state that μ represents the population mean

      • μ0  is the assumed population mean

    • For a one-tailed test H1 : μ < μ0 or H1 : μ > μ0

    • For a two-tailed test: H1 : μμ0

      • The alternative hypothesis will depend on what is being tested

  • STEP 2
    Enter the data into your GDC and choose the one-sample z-test

    • If you have the raw data

      • Enter the data as a list

      • Enter the value of σ

    • If you have summary statistics

      • Enter the values of x¯, σ and n

    • Your GDC will give you the p-value

  • STEP 3
    Decide whether there is evidence to reject the null hypothesis

    • If the p-value < significance level then reject H0

  • STEP 4
    Write your conclusion

    • If you reject H0­ then there is evidence to suggest that...

      • The mean has decreased (for H1 : μ < μ0)

      • The mean has increased (for H1 : μ > μ0)

      • The mean has changed (for H1 : μμ0)

    • If you accept H­0 then there is insufficient evidence to reject the null hypothesis which suggests that...

      • The mean has not decreased (for H1 : μ < μ0)

      • The mean has not increased (for H1 : μ > μ0)

      • The mean has not changed (for H1 : μμ0)

How do I find the p-value for a one-sample z-test using a normal distribution?

  • The p-value is determined by the test statistic x¯

    • For H1 : μ < μ0 the p-value is P(X¯<x¯|μ=μ0)

    • For H1 : μ > μ0 the p-value is P(X¯>x¯|μ=μ0)

    • For H1 : μμ0 the p-value is P(|X¯μ0|>|xμ0||μ=μ0)

      • If x¯<μ0 then this can be calculated more easily by 2×P(X¯<x¯|μ=μ0)

      • If x¯>μ0 then this can be calculated more easily by 2×P(X¯>x¯|μ=μ0)

How do I find the critical value and critical region for a one-sample z-test?

  • The critical region is determined by the significance level α%

    • For H1 : μ < μ0 the critical region is X¯<c where P(X¯<c|μ=μ0)=α%

    • For H1 : μ > μ0 the critical region is X¯>c where P(X¯>c|μ=μ0)=α%

    • For H1 : μμ0 the critical regions are X¯<c1 and X¯>c2 where P(X¯<c1|μ=μ0)=P(X¯>c2|μ=μ0)=12α%

  • The critical value(s) can be found using the inverse normal distribution function

    • When rounding the critical value(s) you should choose:

      • The lower bound for the inequalities X¯<c

      • The upper bound for the inequalities X¯>c

    • This is so that the probability does not exceed the significance level

Examiner Tips and Tricks

Exam questions might specify a method for you to use, so practise all methods (using GDC, p-values, critical regions).

If the exam question does not specify a method then use whichever method you want. Make it clear which method you are using.

You can always use a second method as a way of checking your answer.

Worked Example

The mass of a Burmese cat, C , follows a normal distribution with mean 4.2 kg and a standard deviation 1.3 kg.  Kamala, a cat breeder, claims that Burmese cats weigh more than the average if they live in a household which contains young children.  To test her claim, Kamala takes a random sample of 25 cats that live in households containing young children.

a) State the null and alternative hypotheses to test Kamala’s claim.

Answer:

4-12-1-ib-ai-hl-one-sample-z-test-a-we-solution

b) Using a 5% level of significance, find the critical region for this test.

Answer:

4-12-1-ib-ai-hl-one-sample-z-test-b-we-solution

c) Kamala calculates the mean of the 25 cats included in her sample to be 4.65 kg. Determine the conclusion of the test.

Answer:

4-12-1-ib-ai-hl-one-sample-z-test-c-we-solution

One-sample t-tests

What is a one-sample t-test?

  • A one-sample t-test is used to test the mean (μ) of a normally distributed population

    • You use a t-test when the population variance (σ²) is unknown

    • You need to use the unbiased estimate for the population variance (sn12)

  • The mean, x¯, of a sample of size n is calculated, and a t-distribution is used to test it

    • t-distributions are similar to normal distributions

      • As the sample size gets larger the t-distribution tends towards the standard normal distribution

  • You won’t be expected to find the critical value

    • The p-value can be found using the test function on your GDC

What are the steps for performing a one-sample t-test on my GDC?

  • STEP 1
    Write the hypotheses

    • H0 : μ = μ0

      • Clearly state that μ represents the population mean

      • μ0  is the assumed population mean

    • For a one-tailed test H1 : μ < μ0 or H1 : μ > μ0

    • For a two-tailed test: H1 : μμ0

      • The alternative hypothesis will depend on what is being tested

  • STEP 2
    Enter the data into your GDC and choose the one-sample t-test

    • If you have the raw data

      • Enter the data as a list

    • If you have summary statistics

      • Enter the values of x¯, sn-1 (sometimes written as sx on a GDC)   and n

    • Your GDC will give you the p-value

  • STEP 3
    Decide whether there is evidence to reject the null hypothesis

    • If the p-value < significance level then reject H0

  • STEP 4
    Write your conclusion

    • If you reject H0­ then there is evidence to suggest that...

      • The mean has decreased (for H1 : μ < μ0)

      • The mean has increased (for H1 : μ > μ0)

      • The mean has changed (for H1 : μμ0)

    • If you accept H­0 then there is insufficient evidence to reject the null hypothesis which suggests that...

      • The mean has not decreased (for H1 : μ < μ0)

      • The mean has not increased (for H1 : μ > μ0)

      • The mean has not changed (for H1 : μμ0)

Worked Example

The IQ of a student at Calculus High can be modelled as a normal distribution with mean 126. The headteacher decides to play classical music during lunchtimes and suspects that this has caused a change in the average IQ of the students.

a) State the null and alternative hypotheses to test the headteacher’s suspicion.

Answer:

4-12-1-ib-ai-hl-one-sample-t-test-a-we-solution

b) The headteacher selects 15 students and asks them to complete an IQ test.  The mean score for the sample is 127.1 and the sample variance is 14.7. Calculate the unbiased estimate for the population variance  sn12.

Answer:

4-12-1-ib-ai-hl-one-sample-t-test-b-we-solution

c) Calculate the p-value for the test.

Answer:

4-12-1-ib-ai-hl-one-sample-t-test-c-we-solution

d) State whether the headteacher’s suspicion is supported by the test.

Answer:

4-12-1-ib-ai-hl-one-sample-t-test-d-we-solution

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Dan Finlay

Author: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.

Roger B

Reviewer: Roger B

Expertise: Development Editor

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.