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 and a normal distribution is used to test the test statistic
- can be used as the test statistic
- In this case you would use the distribution
- Remember when using this distribution that the standard deviation is
- can be used as the test statistic
- In this case you would use the distribution
- 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
- H0 : μ = μ0
-
- 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 , σ 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 H0 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
- For H1 : μ < μ0 the p-value is
- For H1 : μ > μ0 the p-value is
- For H1 : μ ≠ μ0 the p-value is
- If then this can be calculated easier by
- If then this can be calculated easier by
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 where
- For H1 : μ > μ0 the critical region is where
- For H1 : μ ≠ μ0 the critical regions are and where
- 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
- The upper bound for the inequalities
- This is so that the probability does not exceed the significance level
Exam 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, , 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.
b)
Using a 5% level of significance, find the critical region for this test.
c)
Kamala calculates the mean of the 25 cats included in her sample to be 4.65 kg. Determine the conclusion of the test.
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 ()
- The mean 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
- H0 : μ = μ0
-
- 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 , 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 H0 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.
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 .
c)
Calculate the p-value for the test.
d)
State whether the headteacher’s suspicion is supported by the test.