Hypothesis Testing for Mean (One Sample) (DP IB Maths: AI HL)

Revision Note

Dan

Author

Dan

Last updated

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 of a sample of size n is calculated x with bar on top and a normal distribution is used to test the test statistic
  • x with bar on top can be used as the test statistic
    • In this case you would use the distribution X with bar on top tilde straight N open parentheses mu comma space sigma squared over n close parentheses
      • Remember when using this distribution that the standard deviation is fraction numerator sigma over denominator square root of n end fraction
  • z equals fraction numerator x with bar on top minus mu over denominator fraction numerator sigma over denominator square root of n end fraction end fraction can be used as the test statistic
    • In this case you would use the distribution Z tilde straight N left parenthesis 0 comma 1 squared right parenthesis
      • 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 with bar on top, σ 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 with bar on top
  • For H1 : μ < μ0 the p-value is straight P invisible function application open parentheses X with bar on top less than x with bar on top vertical line mu equals mu subscript 0 close parentheses
  • For H1 : μ > μ0 the p-value is straight P invisible function application open parentheses X with bar on top greater than x with bar on top vertical line mu equals mu subscript 0 close parentheses
  • For H1 : μμ0 the p-value is straight P invisible function application open parentheses open vertical bar X with bar on top minus mu subscript 0 close vertical bar greater than open vertical bar x minus mu subscript 0 close vertical bar vertical line mu equals mu subscript 0 close parentheses
    • If x with bar on top less than mu subscript 0 then this can be calculated easier by 2 cross times straight P invisible function application open parentheses X with bar on top less than x with bar on top vertical line mu equals mu subscript 0 close parentheses
    • If x with bar on top greater than mu subscript 0 then this can be calculated easier by 2 cross times straight P invisible function application open parentheses X with bar on top greater than x with bar on top vertical line mu equals mu subscript 0 close parentheses

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 with bar on top less than c where straight P invisible function application open parentheses X with bar on top less than c vertical line mu equals mu subscript 0 close parentheses equals alpha percent sign
    • For H1 : μ > μ0 the critical region is X with bar on top greater than c where straight P invisible function application open parentheses X with bar on top greater than c vertical line mu equals mu subscript 0 close parentheses equals alpha percent sign
    • For H1 : μμ0 the critical regions are X with bar on top less than c subscript 1 and X with bar on top greater than c subscript 2 where straight P invisible function application open parentheses X with bar on top less than c subscript 1 vertical line mu equals mu subscript 0 close parentheses equals straight P invisible function application open parentheses X with bar on top greater than c subscript 2 vertical line mu equals mu subscript 0 close parentheses equals 1 half alpha percent sign
  • 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 with bar on top less than c
      • The upper bound for the inequalities X with bar on top greater than c
    • This is so that the probability does not exceed the significance level

Examiner Tip

  • 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.

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.

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.

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 (s subscript n minus 1 end subscript superscript 2)
  • The mean of a sample of size n is calculated x with bar on top 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 with bar on top, 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.

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  s subscript n minus 1 end subscript superscript 2.

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

c)
Calculate the p-value for the test.

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.

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

You've read 0 of your 10 free revision notes

Unlock more, it's free!

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

the (exam) results speak for themselves:

Did this page help you?

Dan

Author: Dan

Expertise: Maths

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.